/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace Dali
{
-
namespace Toolkit
{
-
CheckBoxButton::CheckBoxButton()
: Button()
{
}
-CheckBoxButton::CheckBoxButton( const CheckBoxButton& checkBox )
-: Button( checkBox )
-{
-}
+CheckBoxButton::CheckBoxButton(const CheckBoxButton& checkBox) = default;
-CheckBoxButton& CheckBoxButton::operator=( const CheckBoxButton& checkBox )
-{
- if( &checkBox != this )
- {
- Button::operator=( checkBox );
- }
- return *this;
-}
+CheckBoxButton::CheckBoxButton(CheckBoxButton&& rhs) noexcept = default;
+
+CheckBoxButton& CheckBoxButton::operator=(const CheckBoxButton& checkBox) = default;
+
+CheckBoxButton& CheckBoxButton::operator=(CheckBoxButton&& rhs) noexcept = default;
CheckBoxButton::~CheckBoxButton()
{
return Internal::CheckBoxButton::New();
}
-CheckBoxButton CheckBoxButton::DownCast( BaseHandle handle )
+CheckBoxButton CheckBoxButton::DownCast(BaseHandle handle)
{
return Control::DownCast<CheckBoxButton, Internal::CheckBoxButton>(handle);
}
-void CheckBoxButton::SetBackgroundImage( Image image )
-{
- Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( image );
-}
-
-void CheckBoxButton::SetBackgroundImage( Actor image )
-{
- Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( image );
-}
-
-Actor CheckBoxButton::GetBackgroundImage() const
-{
- return Dali::Toolkit::GetImplementation( *this ).GetBackgroundImage();
-}
-
-void CheckBoxButton::SetSelectedImage( Image image )
-{
- Dali::Toolkit::GetImplementation( *this ).SetSelectedImage( image );
-}
-
-void CheckBoxButton::SetSelectedImage( Actor image )
-{
- Dali::Toolkit::GetImplementation( *this ).SetSelectedImage( image );
-}
-
-
-Actor CheckBoxButton::GetSelectedImage() const
-{
- return Dali::Toolkit::GetImplementation( *this ).GetSelectedImage();
-}
-
-void CheckBoxButton::SetDisabledBackgroundImage( Image image )
-{
- Dali::Toolkit::GetImplementation( *this ).SetDisabledBackgroundImage( image );
-}
-
-void CheckBoxButton::SetDisabledBackgroundImage( Actor image )
-{
- Dali::Toolkit::GetImplementation( *this ).SetDisabledBackgroundImage( image );
-}
-
-Actor CheckBoxButton::GetDisabledBackgroundImage() const
-{
- return Dali::Toolkit::GetImplementation( *this ).GetDisabledBackgroundImage();
-}
-
-void CheckBoxButton::SetDisabledSelectedImage( Image image )
-{
- Dali::Toolkit::GetImplementation( *this ).SetDisabledSelectedImage( image );
-}
-
-void CheckBoxButton::SetDisabledSelectedImage( Actor image )
-{
- Dali::Toolkit::GetImplementation( *this ).SetDisabledSelectedImage( image );
-}
-
-Actor CheckBoxButton::GetDisabledSelectedImage() const
-{
- return Dali::Toolkit::GetImplementation( *this ).GetDisabledSelectedImage();
-}
-
-CheckBoxButton::CheckBoxButton( Internal::CheckBoxButton& implementation )
-: Button( implementation )
+CheckBoxButton::CheckBoxButton(Internal::CheckBoxButton& implementation)
+: Button(implementation)
{
}
-CheckBoxButton::CheckBoxButton( Dali::Internal::CustomActor* internal )
-: Button( internal )
+CheckBoxButton::CheckBoxButton(Dali::Internal::CustomActor* internal)
+: Button(internal)
{
VerifyCustomActorPointer<Internal::CheckBoxButton>(internal);
}