Merge "Toolkit - Fixes TC build issues and compile warnings." into tizen
[platform/core/uifw/dali-toolkit.git] / base / dali-toolkit / public-api / controls / control-impl.h
1 #ifndef __DALI_TOOLKIT_CONTROL_IMPL_H__
2 #define __DALI_TOOLKIT_CONTROL_IMPL_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 // EXTERNAL INCLUDES
22 #include <dali/public-api/common/vector-wrapper.h>
23
24 // INTERNAL INCLUDES
25 #include <dali-toolkit/public-api/controls/control.h>
26
27 namespace Dali DALI_IMPORT_API
28 {
29
30 namespace Toolkit
31 {
32
33 class StyleManager;
34
35 namespace Internal DALI_INTERNAL
36 {
37 class RelayoutControllerImpl;
38 class KeyInputFocusManager;
39 }
40
41 typedef std::pair< Actor, Vector2 > ActorSizePair;       ///< Pair of actor and size
42 typedef std::vector< ActorSizePair > ActorSizeContainer; ///< Container of actors and their sizes
43
44 namespace Internal
45 {
46
47 /**
48  * @brief This is the internal base class for all controls.
49  *
50  * It will provide some common functionality required by all controls.
51  * Implements ConnectionTrackerInterface so that signals (typically connected to member functions) will
52  * be disconnected automatically when the control is destroyed.
53  */
54 class DALI_IMPORT_API Control : public CustomActorImpl, public ConnectionTrackerInterface
55 {
56 public:
57
58   // Properties
59   enum
60   {
61     CONTROL_PROPERTY_START_INDEX = PROPERTY_REGISTRATION_START_INDEX,
62     CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000 ///< Reserving 1000 property indices
63   };
64
65   // Creation
66
67   /**
68    * @brief Create a new ControlImpl instance that does not require touch by default.
69    *
70    * If touch is required then the user can connect to this class' touch signal.
71    * @return A handle to the ConntrolImpl instance.
72    */
73   static Toolkit::Control New();
74
75   // Destruction
76
77   /**
78    * @brief Virtual destructor.
79    */
80   virtual ~Control();
81
82   // Actions
83
84   /**
85    * @brief This method should be overridden by deriving classes when they wish to be notified when they
86    * are activated.
87    */
88   virtual void OnActivated() { }
89
90   /**
91    * @brief This method should be overridden by deriving classes when they wish to respond the accessibility
92    * pan gesture.
93    *
94    * @param[in] gesture The pan gesture.
95    * @return true if the pan gesture has been consumed by this control
96    */
97   virtual bool OnAccessibilityPan(PanGesture gesture);
98
99   /**
100    * @brief This method should be overridden by deriving classes when they wish to respond the accessibility
101    * touch event.
102    *
103    * @param[in] touchEvent The touch event.
104    * @return true if the touch event has been consumed by this control
105    */
106   virtual bool OnAccessibilityTouch(const TouchEvent& touchEvent);
107
108   /**
109    * @brief This method should be overridden by deriving classes when they wish to respond
110    * the accessibility up and down action (i.e. value change of slider control).
111    *
112    * @param[in] isIncrease Whether the value should be increased or decreased
113    * @return true if the value changed action has been consumed by this control
114    */
115   virtual bool OnAccessibilityValueChange(bool isIncrease);
116
117   /**
118    * @brief Sets whether this control supports two dimensional
119    * keyboard navigation (i.e. whether it knows how to handle the
120    * keyboardn focus movement between its child actors).
121    *
122    * The control doesn't support it by default.
123    * @param[in] isSupported Whether this control supports two dimensional keyboard navigation.
124    */
125   void SetKeyboardNavigationSupport(bool isSupported);
126
127   /**
128    * @brief Gets whether this control supports two dimensional keyboard navigation.
129    *
130    * @return true if this control supports two dimensional keyboard navigation.
131    */
132   bool IsKeyboardNavigationSupported();
133
134   /**
135    * @brief Sets whether this control is a focus group for keyboard navigation.
136    *
137    * (i.e. the scope of keyboard focus movement
138    * can be limitied to its child actors). The control is not a focus group by default.
139    * @param[in] isFocusGroup Whether this control is set as a focus group for keyboard navigation.
140    */
141   void SetAsKeyboardFocusGroup(bool isFocusGroup);
142
143   /**
144    * @brief Gets whether this control is a focus group for keyboard navigation.
145    *
146    * @return true if this control is set as a focus group for keyboard navigation.
147    */
148   bool IsKeyboardFocusGroup();
149
150   /**
151    * @brief Gets the next keyboard focusable actor in this control towards the given direction.
152    *
153    * A control needs to override this function in order to support two dimensional keyboard navigation.
154    * @param[in] currentFocusedActor The current focused actor.
155    * @param[in] direction The direction to move the focus towards.
156    * @param[in] loopEnabled Whether the focus movement should be looped within the control.
157    * @return the next keyboard focusable actor in this control or an empty handle if no actor can be focused.
158    */
159   virtual Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, Toolkit::Control::KeyboardFocusNavigationDirection direction, bool loopEnabled);
160
161   /**
162    * @brief Informs this control that its chosen focusable actor will be focused.
163    *
164    * This allows the application to preform any actions if wishes
165    * before the focus is actually moved to the chosen actor.
166    *
167    * @param[in] commitedFocusableActor The commited focusable actor.
168    */
169   virtual void OnKeyboardFocusChangeCommitted(Actor commitedFocusableActor) { }
170
171   /**
172    * @brief Performs actions as requested using the action name.
173    *
174    * @param[in] object The object on which to perform the action.
175    * @param[in] actionName The action to perform.
176    * @param[in] attributes The attributes with which to perfrom this action.
177    * @return true if action has been accepted by this control
178    */
179   static bool DoAction(BaseObject* object, const std::string& actionName, const std::vector<Property::Value>& attributes);
180
181   /**
182    * @brief If deriving classes wish to fine tune pinch gesture
183    * detection then they can access the gesture detector through this
184    * API and modify the detection.
185    *
186    * @return The pinch gesture detector.
187    * @pre Pinch detection should have been enabled via EnableGestureDetection().
188    * @see EnableGestureDetection
189    */
190   PinchGestureDetector GetPinchGestureDetector() const;
191
192   /**
193    * @brief If deriving classes wish to fine tune pan gesture
194    * detection then they can access the gesture detector through this
195    * API and modify the detection.
196    *
197    * @return The pan gesture detector.
198    * @pre Pan detection should have been enabled via EnableGestureDetection().
199    * @see EnableGestureDetection
200    */
201   PanGestureDetector GetPanGestureDetector() const;
202
203   /**
204    * @brief If deriving classes wish to fine tune tap gesture
205    * detection then they can access the gesture detector through this
206    * API and modify the detection.
207    *
208    * @return The tap gesture detector.
209    * @pre Tap detection should have been enabled via EnableGestureDetection().
210    * @see EnableGestureDetection
211    */
212   TapGestureDetector GetTapGestureDetector() const;
213
214   /**
215    * @brief If deriving classes wish to fine tune long press gesture
216    * detection then they can access the gesture detector through this
217    * API and modify the detection.
218    *
219    * @return The long press gesture detector.
220    * @pre Long press detection should have been enabled via EnableGestureDetection().
221    * @see EnableGestureDetection
222    */
223   LongPressGestureDetector GetLongPressGestureDetector() const;
224
225   // Background
226
227   /**
228    * @copydoc Dali::Toolkit::Control::SetBackgroundColor
229    */
230   void SetBackgroundColor( const Vector4& color );
231
232   /**
233    * @copydoc Dali::Toolkit::Control::GetBackgroundColor
234    */
235   Vector4 GetBackgroundColor() const;
236
237   /**
238    * @copydoc Dali::Toolkit::Control::SetBackground
239    */
240   void SetBackground( Image image );
241
242   /**
243    * @copydoc Dali::Toolkit::Control::ClearBackground
244    */
245   void ClearBackground();
246
247   /**
248    * @copydoc Dali::Toolkit::Control::GetBackgroundActor
249    */
250   Actor GetBackgroundActor() const;
251
252 public:
253
254   /**
255    * @copydoc Dali::Toolkit::Control::KeyEventSignal()
256    */
257   Toolkit::Control::KeyEventSignalV2& KeyEventSignal();
258
259 protected:
260
261   // Construction
262
263   /**
264    * @brief Second phase initialization.
265    */
266   void Initialize();
267
268   // Gesture Detection
269
270   /**
271    * @brief Allows deriving classes to enable any of the gesture detectors that are available.
272    *
273    * Gesture detection can be enabled one at a time or in bitwise format as shown:
274    * @code
275    * EnableGestureDetection(Gesture::Type(Gesture::Pinch | Gesture::Tap | Gesture::Pan));
276    * @endcode
277    * @param[in]  type  The gesture type(s) to enable.
278    */
279   void EnableGestureDetection(Gesture::Type type);
280
281   /**
282    * @brief Allows deriving classes to disable any of the gesture detectors.
283    *
284    * Like EnableGestureDetection, this can also be called using bitwise or.
285    * @param[in]  type  The gesture type(s) to disable.
286    * @see EnableGetureDetection
287    */
288   void DisableGestureDetection(Gesture::Type type);
289
290 private: // For derived classes to override
291
292   /**
293    * @brief This method is called after the Control has been initialized.
294    *
295    * Derived classes should do any second phase initialization by
296    * overriding this method.
297    */
298   virtual void OnInitialize() { }
299
300   /**
301    * @brief This method should be overridden by deriving classes when
302    * they wish to be notified when the style manager changes the theme.
303    *
304    * @param[in] styleManager  The StyleManager object.
305    */
306   virtual void OnThemeChange( Toolkit::StyleManager styleManager );
307
308   /**
309    * @brief This method should be overridden by deriving classes when
310    * they wish to be notified when the style changes the default font.
311    *
312    * @param[in] defaultFontChange  Information denoting whether the default font has changed.
313    * @param[in] defaultFontSizeChange Information denoting whether the default font size has changed.
314    */
315   virtual void OnFontChange( bool defaultFontChange, bool defaultFontSizeChange ){ }
316
317   /**
318    * @deprecated Use OnFontChange() instead.
319    * Before the using of StyleManager, the StyleChange only deals with font change.
320    *
321    * @brief This method should be overridden by deriving classes when
322    * they wish to be notified when the style changes.
323    *
324    * @param[in] change  Information denoting what has changed.
325    */
326   virtual void OnStyleChange( StyleChange change ) { }
327
328   /**
329    * @brief Called whenever a pinch gesture is detected on this control.
330    *
331    * This can be overridden by deriving classes when pinch detection
332    * is enabled.  The default behaviour is to scale the control by the
333    * pinch scale.
334    *
335    * @note If overridden, then the default behaviour will not occur.
336    * @note Pinch detection should be enabled via EnableGestureDetection().
337    * @param[in]  pinch  The pinch gesture.
338    * @see EnableGestureDetection
339    */
340   virtual void OnPinch(PinchGesture pinch);
341
342   /**
343    * @brief Called whenever a pan gesture is detected on this control.
344    *
345    * This should be overridden by deriving classes when pan detection
346    * is enabled.
347    *
348    * @note There is no default behaviour with panning.
349    * @note Pan detection should be enabled via EnableGestureDetection().
350    * @param[in]  pan  The pan gesture.
351    * @see EnableGestureDetection
352    */
353   virtual void OnPan(PanGesture pan) { }
354
355   /**
356    * @brief Called whenever a tap gesture is detected on this control.
357    *
358    * This should be overridden by deriving classes when tap detection
359    * is enabled.
360    *
361    * @note There is no default behaviour with a tap.
362    * @note Tap detection should be enabled via EnableGestureDetection().
363    * @param[in]  tap  The tap gesture.
364    * @see EnableGestureDetection
365    */
366   virtual void OnTap(TapGesture tap) { }
367
368   /**
369    * @brief Called whenever a long press gesture is detected on this control.
370    *
371    * This should be overridden by deriving classes when long press
372    * detection is enabled.
373    *
374    * @note There is no default behaviour associated with a long press.
375    * @note Long press detection should be enabled via EnableGestureDetection().
376    * @param[in]  longPress  The long press gesture.
377    * @see EnableGestureDetection
378    */
379   virtual void OnLongPress(LongPressGesture longPress) { }
380
381   /**
382    * @brief Called whenever the control is added to the stage.
383    *
384    * Could be overridden by derived classes.
385    */
386   virtual void OnControlStageConnection() { }
387
388   /**
389    * @brief Called whenever the control is removed from the stage.
390    *
391    * Could be overridden by derived classes.
392    */
393   virtual void OnControlStageDisconnection() { }
394
395   /**
396    * @brief Called whenever an Actor is added to the control.
397    *
398    * Could be overridden by derived classes.
399    *
400    * @param[in] child The added actor.
401    */
402   virtual void OnControlChildAdd( Actor& child ) { }
403
404   /**
405    * @brief Called whenever an Actor is removed from the control.
406    *
407    * Could be overridden by derived classes.
408    *
409    * @param[in] child The removed actor.
410    */
411   virtual void OnControlChildRemove( Actor& child ) { }
412
413   /**
414    * @brief Called whenever the Control's size is set.
415    *
416    * Could be overridden by derived classes.
417    *
418    * @param[in] size The new size.
419    */
420   virtual void OnControlSizeSet( const Vector3& size ) { }
421
422   /**
423    * @brief Called after the Dali::Stage::SignalMessageQueueFlushed()
424    * signal is emitted if this control requested to be relaid-out.
425    *
426    * Should be overridden by derived classes if they need to layout
427    * actors differently after certain operations like add or remove
428    * actors, resize or after changing especific properties.
429    *
430    * @param[in]      size       The allocated size.
431    * @param[in,out]  container  The control should add actors to this container that it is not able
432    *                            to allocate a size for.
433    */
434   virtual void OnRelaidOut( Vector2 size, ActorSizeContainer& container );
435
436 private: // From CustomActorImpl, derived classes can override these.
437
438   /**
439    * @brief Sends a request to relayout this control.
440    *
441    * The control will be relaid out after the
442    * Dali::Stage::SignalMessageQueueFlushed() signal is emitted.
443    *
444    * It calls OnControlStageConnection() to notify derived classes.
445    *
446    * @see Dali::CustomActorImpl::OnStageConnection()
447    */
448   virtual void OnStageConnection();
449
450   /**
451    * @brief Calls OnControlStageDisconnection() to notify derived classed.
452    *
453    * @see Dali::CustomActorImpl::OnStageDisconnection()
454    */
455   virtual void OnStageDisconnection();
456
457   /**
458    * @brief Sends a request to relayout this control.
459    *
460    * The control will be relaid out after the
461    * Dali::Stage::SignalMessageQueueFlushed() signal is emitted.  It
462    * calls OnControlChildAdd() to notify derived classes.
463    *
464    * @note This method shouldn't be overridden by derived classes.
465    *
466    * @param[in] child The added actor.
467    *
468    * @see Dali::CustomActorImpl::OnChildAdd(Actor&)
469    */
470   virtual void OnChildAdd(Actor& child);
471
472   /**
473    * @brief Sends a request to relayout this control.
474    *
475    * The control will be relaid out after the
476    * Dali::Stage::SignalMessageQueueFlushed() signal is emitted.  It
477    * calls OnControlChildRemove() to notify derived classes.
478    *
479    * @note This method shouldn't be overridden by derived classes.
480    *
481    * @param[in] child The removed actor.
482    *
483    * @see Dali::CustomActorImpl::OnChildRemove(Actor&)
484    */
485   virtual void OnChildRemove(Actor& child);
486
487   /**
488    * @brief It stores the size set by size negotiation and relayout.
489    *
490    * It also keeps a backup of the size set through the Actor's API used in the size negotiation.
491    * It calls the OnControlSizeSet() to notify derived classes.
492    *
493    * @param[in] targetSize The new size.
494    *
495    * @see Dali::CustomActorImpl::OnSizeSet(const Vector3&)
496    */
497   virtual void OnSizeSet(const Vector3& targetSize);
498
499   /**
500    * @copydoc Dali::CustomActorImpl::OnSizeAnimation(Animation&, const Vector3&)
501    */
502   virtual void OnSizeAnimation(Animation& animation, const Vector3& targetSize);
503
504   /**
505    * @copydoc Dali::CustomActorImpl::OnTouchEvent(const TouchEvent&)
506    */
507   virtual bool OnTouchEvent(const TouchEvent& event);
508
509   /**
510    * @copydoc Dali::CustomActorImpl::OnKeyEvent(const KeyEvent&)
511    */
512   virtual bool OnKeyEvent(const KeyEvent& event);
513
514   /**
515    * @copydoc Dali::CustomActorImpl::OnMouseWheelEvent(const MouseWheelEvent&)
516    */
517   virtual bool OnMouseWheelEvent(const MouseWheelEvent& event);
518
519   /**
520    * @copydoc Dali::CustomActorImpl::OnKeyInputFocusGained()
521    */
522   virtual void OnKeyInputFocusGained();
523
524   /**
525    * @copydoc Dali::CustomActorImpl::OnKeyInputFocusLost()
526    */
527   virtual void OnKeyInputFocusLost();
528
529   /**
530    * @copydoc Dali::CustomActorImpl::GetChildByAlias(const std::string& actorAlias)
531    */
532   virtual Actor GetChildByAlias(const std::string& actorAlias);
533
534 private:
535
536   /**
537    * @brief This method is the callback for the StyleChangeSignal from StyleManager
538    *
539    * @param[in] styleManager The StyleManager Object
540    * @param[in] change  Information denoting what has changed.
541    */
542   void DoStyleChange( Toolkit::StyleManager styleManager, StyleChange change );
543
544 protected: // Construction
545
546   // Flags for the constructor
547   enum ControlBehaviour
548   {
549     CONTROL_BEHAVIOUR_NONE        = 0,
550     REQUIRES_TOUCH_EVENTS         = 1<<1,     ///< True if the OnTouchEvent() callback is required.
551     REQUIRES_STYLE_CHANGE_SIGNALS = 1<<2,     ///< True if needs to monitor style change signals such as theme/font change
552     NO_SIZE_NEGOTIATION           = 1<<3      ///< True if control does not need size negotiation, i.e. it can be skipped in the algorithm
553   };
554
555   /**
556    * @deprecated Use the constructor taking flags instead
557    * @brief Create a Control.
558    *
559    * @param[in] requiresTouchEvents True if the OnTouchEvent() callback is required.
560    */
561   Control(bool requiresTouchEvents);
562
563   /**
564    * @brief Create a Control.
565    *
566    * @param[in] behaviourFlags Behavioural flags from ControlBehaviour enum
567    */
568   Control(ControlBehaviour behaviourFlags);
569
570 public:
571
572   // Size negotiation
573
574   /**
575    * @copydoc Toolkit::Control::SetSizePolicy()
576    */
577   void SetSizePolicy( Toolkit::Control::SizePolicy widthPolicy, Toolkit::Control::SizePolicy heightPolicy );
578
579   /**
580    * @copydoc Toolkit::Control::GetSizePolicy()
581    */
582   void GetSizePolicy( Toolkit::Control::SizePolicy& widthPolicy, Toolkit::Control::SizePolicy& heightPolicy ) const;
583
584   /**
585    * @copydoc Toolkit::Control::SetMinimumSize()
586    */
587   void SetMinimumSize( const Vector3& size );
588
589   /**
590    * @copydoc Toolkit::Control::GetMinimumSize()
591    */
592   const Vector3& GetMinimumSize() const;
593
594   /**
595    * @copydoc Toolkit::Control::SetMaximumSize()
596    */
597   void SetMaximumSize( const Vector3& size );
598
599   /**
600    * @copydoc Toolkit::Control::GetMaximumSize()
601    */
602   const Vector3& GetMaximumSize() const;
603
604   /**
605    * @copydoc Toolkit::Control::GetNaturalSize()
606    */
607   virtual Vector3 GetNaturalSize();
608
609   /**
610    * @copydoc Toolkit::Control::GetHeightForWidth()
611    */
612   virtual float GetHeightForWidth( float width );
613
614   /**
615    * @copydoc Toolkit::Control::GetWidthForHeight()
616    */
617   virtual float GetWidthForHeight( float height );
618
619   /**
620    * @brief Retrieves the current Control's size.
621    *
622    * @return The control's size.
623    */
624   const Vector3& GetControlSize() const;
625
626   /**
627    * @brief Retrieves the Control's size set by the Application / Control.
628    *
629    * @return The control's size.
630    */
631   const Vector3& GetSizeSet() const;
632
633   //KeyInput
634
635   /**
636    * @copydoc Toolkit::Control::SetKeyInputFocus()
637    */
638   void SetKeyInputFocus();
639
640   /**
641    * @copydoc Toolkit::Control::HasKeyInputFocus()
642    */
643   bool HasKeyInputFocus();
644
645   /**
646    * @copydoc Toolkit::Control::ClearKeyInputFocus()
647    */
648   void ClearKeyInputFocus();
649
650   /**
651    * @copydoc ConnectionTrackerInterface::SignalConnected
652    */
653   virtual void SignalConnected( SlotObserver* slotObserver, CallbackBase* callback );
654
655   /**
656    * @copydoc ConnectionTrackerInterface::SignalDisconnected
657    */
658   virtual void SignalDisconnected( SlotObserver* slotObserver, CallbackBase* callback );
659
660   /**
661    * @copydoc ConnectionTrackerInterface::GetConnectionCount
662    */
663   virtual std::size_t GetConnectionCount() const;
664
665 protected:
666
667   /**
668    * @brief Sends a request to be relaid-out.
669    *
670    * This method is called from OnStageConnection(), OnChildAdd(),
671    * OnChildRemove(), SetSizePolicy(), SetMinimumSize() and
672    * SetMaximumSize().
673    *
674    * This method could also be called from derived classes every time
675    * a control's poperty change and it needs to be relaid-out.  After
676    * the Dali::Stage::SignalMessageQueueFlushed() is emitted a
677    * relayout process starts and all controls which called this method
678    * will be relaid-out.
679    *
680    * @note RelayoutRequest() only sends a request per Control before
681    * the Dali::Stage::SignalMessageQueueFlushed() signal is
682    * emitted. That means a control will be relaid-out only once, even
683    * if more than one request is sent between two consecutive signals.
684    */
685   void RelayoutRequest();
686
687   /**
688    * @brief Helper method for controls to Relayout their children if
689    * they do not know whether that child is a control or not.
690    *
691    * @param[in]      actor      The actor to relayout.
692    * @param[in]      size       The size to allocate to the actor.
693    * @param[in,out]  container  The container that holds actors that have not been allocated a size yet.
694    */
695   static void Relayout( Actor actor, Vector2 size, ActorSizeContainer& container );
696
697 private: // Used by the RelayoutController
698
699   /**
700    * @brief Called by the RelayoutController to negotiate the size of a control.
701    *
702    * The size allocated by the the algorithm is passed in which the
703    * control must adhere to.  A container is passed in as well which
704    * the control should populate with actors it has not / or does not
705    * need to handle in its size negotiation.
706    *
707    * @param[in]      size       The allocated size.
708    * @param[in,out]  container  The container that holds actors that are fed back into the
709    *                            RelayoutController algorithm.
710    */
711   void NegotiateSize( Vector2 size, ActorSizeContainer& container );
712
713 private:
714
715   /**
716    * @brief Called by NegotiateSize when the size to allocate to the control has been calculated.
717    *
718    * It calls the OnRelaidOut() method which can be overridden by derived classes.
719    *
720    * @param[in]      size       The allocated size.
721    * @param[in,out]  container  The control should add actors to this container that it is not able
722    *                            to allocate a size for.
723    */
724   void Relayout( Vector2 size, ActorSizeContainer& container );
725
726   /**
727    * @brief Used by the KeyInputFocusManager to emit key event signals.
728    *
729    * @param[in] event The key event.
730    * @return True if the event was consumed.
731    */
732   bool EmitKeyEventSignal(const KeyEvent& event);
733
734 private:
735
736   // Undefined
737   Control(const Control&);
738   Control& operator=(const Control&);
739
740   class Impl;
741   Impl* mImpl;
742
743   friend class Internal::RelayoutControllerImpl;   ///< Relayout controller needs to call Relayout() which is private.
744   friend class Internal::KeyInputFocusManager;     ///< KeyInputFocusManager needs to call which is private.
745 };
746
747 } // namespace Internal
748
749 typedef Internal::Control ControlImpl; ///< @deprecated, Use Internal::Control
750
751 } // namespace Toolkit
752
753 } // namespace Dali
754
755 #endif // __DALI_TOOLKIT_CONTROL_IMPL_H__