1 #ifndef __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_PAINTER_H__
2 #define __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_PAINTER_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.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
11 // http://floralicense.org/license/
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.
21 #include "button-painter-impl.h"
26 // Forward declarations
33 // Forward declarations
40 // Forward declarations
42 class CheckBoxButtonPainter;
45 * CheckBoxButtonPainter methods should be implemented in a subclass.
47 class CheckBoxButtonPainter : public ButtonPainter
53 virtual ~CheckBoxButtonPainter() {}
56 * This method is called when the Dali::Toolkit::Internal::CheckBoxButton, in which this
57 * object is registered, changes its state.
58 * @param[inout] button The Dali::Toolkit::CheckBoxButton, linked to the internal
59 * implementation, in which this object is registered.
61 virtual void Checked( Toolkit::CheckBoxButton& button ) = 0;
63 /////////////////////////////////////////////////////////////////////////////
64 // ButtonPainter interface
65 /////////////////////////////////////////////////////////////////////////////
68 * @copydoc ButtonPainter::Initialize( Toolkit::Button& button )
70 virtual void Initialize( Toolkit::Button& button ) = 0;
73 * @copydoc ButtonPainter::SetSize( Toolkit::Button& button, const Vector3& size )
75 virtual void SetSize( Toolkit::Button& button, const Vector3& size ) = 0;
78 * @copydoc ButtonPainter::SetDimmed( Toolkit::Button& button, bool dimmed )
80 virtual void SetDimmed( Toolkit::Button& button, bool dimmed ) = 0;
83 * @copydoc ButtonPainter::SetAnimationTime()
85 virtual void SetAnimationTime( float animationTime ) = 0;
88 * @copydoc ButtonPainter::GetAnimationTime()
90 virtual float GetAnimationTime() const = 0;
93 } // namespace Internal
95 } // namespace Toolkit
99 #endif // __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_PAINTER_H__