2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 #include "check-box-button.h"
24 #include <dali-toolkit/internal/controls/buttons/check-box-button-impl.h>
32 const char* const CheckBoxButton::ACTION_CHECK_BOX_BUTTON_CLICK = "check-box-button-click";
34 const std::string CheckBoxButton::USE_FADE_ANIMATION_PROPERTY_NAME( "use-fade-animation" );
35 const std::string CheckBoxButton::USE_CHECK_ANIMATION_PROPERTY_NAME( "use-check-animation" );
38 CheckBoxButton::CheckBoxButton()
43 CheckBoxButton::CheckBoxButton( const CheckBoxButton& checkBox )
48 CheckBoxButton& CheckBoxButton::operator=( const CheckBoxButton& checkBox )
50 if( &checkBox != this )
52 Button::operator=( checkBox );
57 CheckBoxButton::~CheckBoxButton()
61 CheckBoxButton CheckBoxButton::New()
63 return Internal::CheckBoxButton::New();
66 CheckBoxButton CheckBoxButton::DownCast( BaseHandle handle )
68 return Control::DownCast<CheckBoxButton, Internal::CheckBoxButton>(handle);
71 void CheckBoxButton::SetChecked( bool checked )
73 Dali::Toolkit::GetImplementation( *this ).SetChecked( checked );
76 bool CheckBoxButton::IsChecked() const
78 return Dali::Toolkit::GetImplementation( *this ).IsChecked();
81 void CheckBoxButton::SetBackgroundImage( Image image )
83 Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( image );
86 void CheckBoxButton::SetBackgroundImage( Actor image )
88 Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( image );
91 Actor CheckBoxButton::GetBackgroundImage() const
93 return Dali::Toolkit::GetImplementation( *this ).GetBackgroundImage();
96 void CheckBoxButton::SetCheckedImage( Image image )
98 Dali::Toolkit::GetImplementation( *this ).SetCheckedImage( image );
101 void CheckBoxButton::SetCheckedImage( Actor image )
103 Dali::Toolkit::GetImplementation( *this ).SetCheckedImage( image );
107 Actor CheckBoxButton::GetCheckedImage() const
109 return Dali::Toolkit::GetImplementation( *this ).GetCheckedImage();
112 void CheckBoxButton::SetDimmedBackgroundImage( Image image )
114 Dali::Toolkit::GetImplementation( *this ).SetDimmedBackgroundImage( image );
117 void CheckBoxButton::SetDimmedBackgroundImage( Actor image )
119 Dali::Toolkit::GetImplementation( *this ).SetDimmedBackgroundImage( image );
122 Actor CheckBoxButton::GetDimmedBackgroundImage() const
124 return Dali::Toolkit::GetImplementation( *this ).GetDimmedBackgroundImage();
127 void CheckBoxButton::SetDimmedCheckedImage( Image image )
129 Dali::Toolkit::GetImplementation( *this ).SetDimmedCheckedImage( image );
132 void CheckBoxButton::SetDimmedCheckedImage( Actor image )
134 Dali::Toolkit::GetImplementation( *this ).SetDimmedCheckedImage( image );
137 Actor CheckBoxButton::GetDimmedCheckedImage() const
139 return Dali::Toolkit::GetImplementation( *this ).GetDimmedCheckedImage();
142 CheckBoxButton::CheckBoxButton( Internal::CheckBoxButton& implementation )
143 : Button( implementation )
147 CheckBoxButton::CheckBoxButton( Dali::Internal::CustomActor* internal )
150 VerifyCustomActorPointer<Internal::CheckBoxButton>(internal);
153 } // namespace Toolkit