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