79bd57297d6e826fe7d20f10c5e9b794e7735202
[platform/core/uifw/dali-toolkit.git] / base / dali-toolkit / internal / controls / buttons / check-box-button-painter-impl.h
1 #ifndef __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_PAINTER_H__
2 #define __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_PAINTER_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
22 #include "button-painter-impl.h"
23
24 namespace Dali
25 {
26
27 // Forward declarations
28
29 class Image;
30
31 namespace Toolkit
32 {
33
34 // Forward declarations
35
36 class CheckBoxButton;
37
38 namespace Internal
39 {
40
41 // Forward declarations
42
43 class CheckBoxButtonPainter;
44
45 /**
46  * CheckBoxButtonPainter methods should be implemented in a subclass.
47  */
48 class CheckBoxButtonPainter : public ButtonPainter
49 {
50 public:
51   /**
52    * Destructor.
53    */
54   virtual ~CheckBoxButtonPainter() {}
55
56   /**
57    * This method is called when the Dali::Toolkit::Internal::CheckBoxButton, in which this
58    * object is registered, changes its state.
59    * @param[inout] button The Dali::Toolkit::CheckBoxButton, linked to the internal
60    * implementation, in which this object is registered.
61    */
62   virtual void Checked( Toolkit::CheckBoxButton& button ) = 0;
63
64   /////////////////////////////////////////////////////////////////////////////
65   // ButtonPainter interface
66   /////////////////////////////////////////////////////////////////////////////
67
68   /**
69    * @copydoc ButtonPainter::Initialize( Toolkit::Button& button )
70    */
71   virtual void Initialize( Toolkit::Button& button ) = 0;
72
73   /**
74    * @copydoc ButtonPainter::SetSize( Toolkit::Button& button, const Vector3& size )
75    */
76   virtual void SetSize( Toolkit::Button& button, const Vector3& size ) = 0;
77
78   /**
79    * @copydoc ButtonPainter::SetDimmed( Toolkit::Button& button, bool dimmed )
80    */
81   virtual void SetDimmed( Toolkit::Button& button, bool dimmed ) = 0;
82
83   /**
84    * @copydoc ButtonPainter::SetAnimationTime()
85    */
86   virtual void SetAnimationTime( float animationTime ) = 0;
87
88   /**
89    * @copydoc ButtonPainter::GetAnimationTime()
90    */
91   virtual float GetAnimationTime() const = 0;
92 };
93
94 } // namespace Internal
95
96 } // namespace Toolkit
97
98 } // namespace Dali
99
100 #endif // __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_PAINTER_H__