9c43fe913c85ee360e984dfced1998f4b1cc5463
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / buttons / push-button-painter-impl.h
1 #ifndef __DALI_TOOLKIT_INTERNAL_PUSH_BUTTON_PAINTER_H__
2 #define __DALI_TOOLKIT_INTERNAL_PUSH_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 PushButton;
37
38 namespace Internal
39 {
40
41 // Forward declarations
42
43 class PushButtonPainter;
44
45 /**
46  * PushButtonPainter methods should be implemented in a subclass.
47  */
48 class PushButtonPainter : public ButtonPainter
49 {
50 public:
51   /**
52    * Destructor.
53    *
54    */
55   virtual ~PushButtonPainter() {}
56
57   /////////////////////////////////////////////////////////////////////////////
58   // ButtonPainter interface
59   /////////////////////////////////////////////////////////////////////////////
60
61   /**
62    * @copydoc ButtonPainter::Initialize( Toolkit::Button& button )
63    */
64   virtual void Initialize( Toolkit::Button& button ) = 0;
65
66   /**
67    * @copydoc ButtonPainter::SetSize( Toolkit::Button& button, const Vector3& size )
68    */
69   virtual void SetSize( Toolkit::Button& button, const Vector3& size ) = 0;
70
71   /**
72    * @copydoc ButtonPainter::SetDisabled( Toolkit::Button& button, bool disabled )
73    */
74   virtual void SetDisabled( Toolkit::Button& button, bool disabled ) = 0;
75
76   /**
77    * @copydoc ButtonPainter::SetAnimationTime()
78    */
79   virtual void SetAnimationTime( float animationTime ) = 0;
80
81   /**
82    * @copydoc ButtonPainter::GetAnimationTime()
83    */
84   virtual float GetAnimationTime() const = 0;
85 };
86
87 } // namespace Internal
88
89 } // namespace Toolkit
90
91 } // namespace Dali
92
93 #endif // __DALI_TOOLKIT_INTERNAL_PUSH_BUTTON_PAINTER_H__