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 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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include "button-painter-impl.h"
27 // Forward declarations
34 // Forward declarations
41 // Forward declarations
43 class CheckBoxButtonPainter;
46 * CheckBoxButtonPainter methods should be implemented in a subclass.
48 class CheckBoxButtonPainter : public ButtonPainter
54 virtual ~CheckBoxButtonPainter() {}
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.
62 virtual void Checked( Toolkit::CheckBoxButton& button ) = 0;
64 /////////////////////////////////////////////////////////////////////////////
65 // ButtonPainter interface
66 /////////////////////////////////////////////////////////////////////////////
69 * @copydoc ButtonPainter::Initialize( Toolkit::Button& button )
71 virtual void Initialize( Toolkit::Button& button ) = 0;
74 * @copydoc ButtonPainter::SetSize( Toolkit::Button& button, const Vector3& size )
76 virtual void SetSize( Toolkit::Button& button, const Vector3& size ) = 0;
79 * @copydoc ButtonPainter::SetDisabled( Toolkit::Button& button, bool disabled )
81 virtual void SetDisabled( Toolkit::Button& button, bool disabled ) = 0;
84 * @copydoc ButtonPainter::SetAnimationTime()
86 virtual void SetAnimationTime( float animationTime ) = 0;
89 * @copydoc ButtonPainter::GetAnimationTime()
91 virtual float GetAnimationTime() const = 0;
94 } // namespace Internal
96 } // namespace Toolkit
100 #endif // __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_PAINTER_H__