b15f67d60bda23baf6aa145f2952f416cf1e1b89
[platform/core/uifw/dali-demo.git] / examples / text-overlap / text-overlap-example.h
1 #pragma once
2
3 namespace Demo
4 {
5
6 class TextOverlapController : public Dali::ConnectionTracker
7 {
8 public:
9   TextOverlapController( Dali::Application& app );
10
11 private:
12   void Create( Dali::Application& app );
13   void Create2();
14   void Destroy( Dali::Application& app );
15   void OnPan( Dali::Actor actor, const Dali::PanGesture& gesture );
16   void OnKeyEvent( const Dali::KeyEvent& keyEvent );
17   bool OnClicked( Dali::Toolkit::Button button );
18
19 private:
20   Dali::Application& mApplication;
21   Dali::Toolkit::TextLabel mLabels[2];
22   Dali::PanGestureDetector mPanDetector;
23   Dali::Actor mGrabbedActor;
24   Dali::Toolkit::Button mSwapButton;
25   int mTopmostLabel;
26 };
27
28 }