Dali 3D User Interface Engine
dummy-control.h
Go to the documentation of this file.
1 #ifndef __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__
2 #define __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 // INTERNAL INCLUDES
23 
24 namespace Dali
25 {
26 
27 namespace Toolkit
28 {
29 
30 class DummyControlImpl;
31 
35 class DummyControl : public Control
36 {
37 public:
38 
39  DummyControl();
40  DummyControl(const DummyControl& control);
41  ~DummyControl();
42 
43  static DummyControl New( bool override = false );
44 
45  static DummyControl DownCast( BaseHandle handle );
46 
47 
48  DummyControl& operator=(const DummyControl& control);
49 
50 public: // Not intended for application developers
51 
52  DummyControl( DummyControlImpl& implementation );
54 };
55 
61 {
62 public:
63 
64  static DummyControl New();
65 
66 public:
73 
74  // Used to test signal connections
75  void CustomSlot1( Actor actor );
76 
78 
79 protected:
80 
82 
83  virtual ~DummyControlImpl();
84 };
85 
91 {
92 public:
93 
94  static DummyControl New();
95 
96 private:
97 
99 
100  virtual ~DummyControlImplOverride();
101 
102 private: // From Internal::Control
103 
104  virtual void OnInitialize();
105  virtual bool OnAccessibilityActivated();
106  virtual void OnStyleChange( Toolkit::StyleManager styleManager, StyleChange::Type change );
107  virtual void OnPinch(const PinchGesture& pinch);
108  virtual void OnPan(const PanGesture& pan);
109  virtual void OnTap(const TapGesture& tap);
110  virtual void OnLongPress(const LongPressGesture& longPress);
111 
112 private: // From CustomActorImpl
113 
114  virtual void OnStageConnection( int depth );
115  virtual void OnStageDisconnection();
116  virtual void OnChildAdd(Actor& child);
117  virtual void OnChildRemove(Actor& child);
118  virtual void OnSizeSet(const Vector3& targetSize);
119  virtual void OnSizeAnimation(Animation& animation, const Vector3& targetSize);
120  virtual bool OnTouchEvent(const TouchEvent& event);
121  virtual bool OnHoverEvent(const HoverEvent& event);
122  virtual bool OnWheelEvent(const WheelEvent& event);
123  virtual bool OnKeyEvent(const KeyEvent& event);
124  virtual void OnKeyInputFocusGained();
125  virtual void OnKeyInputFocusLost();
126 
127 public:
128 
134  bool panCalled;
135  bool tapCalled;
149 };
150 
151 } // namespace Toolkit
152 
153 } // namespace Dali
154 
155 #endif // __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__
Dali Docs Home
Read more about Dali