X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-demo.git;a=blobdiff_plain;f=examples%2Ftransitions%2Fshadow-button.cpp;h=32bb8cb8863062b0d1a9116fcda49d83c5cc3291;hp=13de599c853eefd3a4b63280621eb419f58bcea5;hb=1b19fd140ff139b5854a1a62447faf31b175d8f6;hpb=b26d446b0cb6a316abc3a79d4fc70d0ae1b7994c diff --git a/examples/transitions/shadow-button.cpp b/examples/transitions/shadow-button.cpp index 13de599..32bb8cb 100644 --- a/examples/transitions/shadow-button.cpp +++ b/examples/transitions/shadow-button.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 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. @@ -19,21 +19,20 @@ namespace Demo { - ShadowButton::ShadowButton() { } -ShadowButton::ShadowButton( const ShadowButton& control ) -: Control( control ) +ShadowButton::ShadowButton(const ShadowButton& control) +: Control(control) { } -ShadowButton& ShadowButton::operator= ( const ShadowButton& rhs ) +ShadowButton& ShadowButton::operator=(const ShadowButton& rhs) { - if( &rhs != this ) + if(&rhs != this) { - Control::operator=( rhs ); + Control::operator=(rhs); } return *this; } @@ -48,20 +47,20 @@ ShadowButton ShadowButton::New() return control; } -ShadowButton ShadowButton::New( const std::string& url ) +ShadowButton ShadowButton::New(const std::string& url) { ShadowButton control = Internal::ShadowButton::New(); return control; } -ShadowButton ShadowButton::DownCast( BaseHandle handle ) +ShadowButton ShadowButton::DownCast(BaseHandle handle) { - return Control::DownCast< ShadowButton, Internal::ShadowButton > ( handle ); + return Control::DownCast(handle); } -void ShadowButton::SetActiveState( bool active ) +void ShadowButton::SetActiveState(bool active) { - GetImpl(*this).SetActiveState( active ); + GetImpl(*this).SetActiveState(active); } bool ShadowButton::GetActiveState() @@ -69,9 +68,9 @@ bool ShadowButton::GetActiveState() return GetImpl(*this).GetActiveState(); } -void ShadowButton::SetCheckState( bool checkState ) +void ShadowButton::SetCheckState(bool checkState) { - GetImpl(*this).SetCheckState( checkState ); + GetImpl(*this).SetCheckState(checkState); } bool ShadowButton::GetCheckState() @@ -79,16 +78,15 @@ bool ShadowButton::GetCheckState() return GetImpl(*this).GetCheckState(); } -ShadowButton::ShadowButton( Internal::ShadowButton& implementation ) -: Control( implementation ) +ShadowButton::ShadowButton(Internal::ShadowButton& implementation) +: Control(implementation) { } -ShadowButton::ShadowButton( Dali::Internal::CustomActor* internal ) -: Control( internal ) +ShadowButton::ShadowButton(Dali::Internal::CustomActor* internal) +: Control(internal) { - VerifyCustomActorPointer< Internal::ShadowButton >( internal ) ; + VerifyCustomActorPointer(internal); } - } //namespace Demo