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 CheckBoxButton::CheckBoxButton()
39 CheckBoxButton::CheckBoxButton( const CheckBoxButton& checkBox )
44 CheckBoxButton& CheckBoxButton::operator=( const CheckBoxButton& checkBox )
46 if( &checkBox != this )
48 Button::operator=( checkBox );
53 CheckBoxButton::~CheckBoxButton()
57 CheckBoxButton CheckBoxButton::New()
59 return Internal::CheckBoxButton::New();
62 CheckBoxButton CheckBoxButton::DownCast( BaseHandle handle )
64 return Control::DownCast<CheckBoxButton, Internal::CheckBoxButton>(handle);
67 void CheckBoxButton::SetChecked( bool checked )
69 Dali::Toolkit::GetImplementation( *this ).SetChecked( checked );
72 bool CheckBoxButton::IsChecked() const
74 return Dali::Toolkit::GetImplementation( *this ).IsChecked();
77 void CheckBoxButton::SetBackgroundImage( Image image )
79 Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( image );
82 void CheckBoxButton::SetBackgroundImage( Actor image )
84 Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( image );
87 Actor CheckBoxButton::GetBackgroundImage() const
89 return Dali::Toolkit::GetImplementation( *this ).GetBackgroundImage();
92 void CheckBoxButton::SetCheckedImage( Image image )
94 Dali::Toolkit::GetImplementation( *this ).SetCheckedImage( image );
97 void CheckBoxButton::SetCheckedImage( Actor image )
99 Dali::Toolkit::GetImplementation( *this ).SetCheckedImage( image );
103 Actor CheckBoxButton::GetCheckedImage() const
105 return Dali::Toolkit::GetImplementation( *this ).GetCheckedImage();
108 void CheckBoxButton::SetDisabledBackgroundImage( Image image )
110 Dali::Toolkit::GetImplementation( *this ).SetDisabledBackgroundImage( image );
113 void CheckBoxButton::SetDisabledBackgroundImage( Actor image )
115 Dali::Toolkit::GetImplementation( *this ).SetDisabledBackgroundImage( image );
118 Actor CheckBoxButton::GetDisabledBackgroundImage() const
120 return Dali::Toolkit::GetImplementation( *this ).GetDisabledBackgroundImage();
123 void CheckBoxButton::SetDisabledCheckedImage( Image image )
125 Dali::Toolkit::GetImplementation( *this ).SetDisabledCheckedImage( image );
128 void CheckBoxButton::SetDisabledCheckedImage( Actor image )
130 Dali::Toolkit::GetImplementation( *this ).SetDisabledCheckedImage( image );
133 Actor CheckBoxButton::GetDisabledCheckedImage() const
135 return Dali::Toolkit::GetImplementation( *this ).GetDisabledCheckedImage();
138 CheckBoxButton::CheckBoxButton( Internal::CheckBoxButton& implementation )
139 : Button( implementation )
143 CheckBoxButton::CheckBoxButton( Dali::Internal::CustomActor* internal )
146 VerifyCustomActorPointer<Internal::CheckBoxButton>(internal);
149 } // namespace Toolkit