1 #ifndef __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H__
2 #define __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H__
5 * Copyright (c) 2016 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 <dali/public-api/common/dali-vector.h>
25 #include <dali-toolkit/public-api/controls/buttons/check-box-button.h>
27 #include "button-impl.h"
39 * CheckBoxButton implementation class.
41 * \sa Dali::Toolkit::CheckBoxButton
43 class CheckBoxButton : public Button
48 * Create a new CheckBoxButton.
49 * @return A smart-pointer to the newly allocated CheckBoxButton.
51 static Dali::Toolkit::CheckBoxButton New();
56 * Construct a new CheckBoxButton.
61 * A reference counted object may only be deleted by calling Unreference()
63 virtual ~CheckBoxButton();
65 private: // From Button
69 * @copydoc Toolkit::Internal::Button::OnInitialize
71 virtual void OnInitialize();
74 * @copydoc Toolkit::Internal::Button::PrepareForTranstionIn( Actor actor )
76 virtual void PrepareForTransitionIn( Actor actor );
79 * @copydoc Toolkit::Internal::Button::PrepareForTranstionOut( Actor actor )
81 virtual void PrepareForTransitionOut( Actor actor );
84 * @copydoc Toolkit::Internal::Button::OnTransitionInImage( Actor actor )
86 virtual void OnTransitionIn( Actor actor );
89 * @copydoc Toolkit::Internal::Button::OnTransitionOut( Actor actor )
91 virtual void OnTransitionOut( Actor actor );
94 * @copydoc Toolkit::Internal::Button::OnButtonVisualRemoval( Property::Index visualIndex )
96 // virtual void OnButtonVisualRemoval( Property::Index visualIndex );
101 CheckBoxButton( const CheckBoxButton& );
104 CheckBoxButton& operator=( const CheckBoxButton& );
108 } // namespace Internal
110 // Helpers for public-api forwarding methods
112 inline Toolkit::Internal::CheckBoxButton& GetImplementation( Toolkit::CheckBoxButton& button )
114 DALI_ASSERT_ALWAYS( button );
116 Dali::RefObject& handle = button.GetImplementation();
118 return static_cast<Toolkit::Internal::CheckBoxButton&>( handle );
121 inline const Toolkit::Internal::CheckBoxButton& GetImplementation( const Toolkit::CheckBoxButton& button )
123 DALI_ASSERT_ALWAYS( button );
125 const Dali::RefObject& handle = button.GetImplementation();
127 return static_cast<const Toolkit::Internal::CheckBoxButton&>( handle );
130 } // namespace Toolkit
134 #endif // __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H__