X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fbuttons%2Fpush-button.cpp;h=e8ae5a17a1921e11e34340f0159dac0539592c1f;hb=49d793abda445643e4b3b270c10af70aed3d2f52;hp=d2ae939b0765b2dc84aa05bc5b6d7431b0f6f4fd;hpb=928136dbb9e23970f3894eabc7c8b224003b77be;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/buttons/push-button.cpp b/dali-toolkit/public-api/controls/buttons/push-button.cpp index d2ae939..e8ae5a1 100644 --- a/dali-toolkit/public-api/controls/buttons/push-button.cpp +++ b/dali-toolkit/public-api/controls/buttons/push-button.cpp @@ -1,5 +1,5 @@ /* - * 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. @@ -16,13 +16,14 @@ */ // CLASS HEADER - #include -// INTERNAL INCLUDES +// EXTERNAL INCLUDES +#include + +// INTERNAL INCLUDES #include -#include namespace Dali { @@ -74,81 +75,6 @@ PushButton PushButton::DownCast( BaseHandle handle ) return Control::DownCast(handle); } -void PushButton::SetButtonImage( Image image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetButtonImage( ImageActor::New( image ) ); -} - -void PushButton::SetButtonImage( Actor image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetButtonImage( image ); -} - -Actor PushButton::GetButtonImage() const -{ - return Dali::Toolkit::GetImplementation( *this ).GetButtonImage(); -} - -void PushButton::SetBackgroundImage( Image image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( ImageActor::New( image ) ); -} - -void PushButton::SetBackgroundImage( Actor image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( image ); -} - -Actor PushButton::GetBackgroundImage() const -{ - return Dali::Toolkit::GetImplementation( *this ).GetBackgroundImage(); -} - -void PushButton::SetSelectedImage( Image image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetSelectedImage( ImageActor::New( image ) ); -} - -void PushButton::SetSelectedImage( Actor image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetSelectedImage( image ); -} - -Actor PushButton::GetSelectedImage() const -{ - return Dali::Toolkit::GetImplementation( *this ).GetSelectedImage(); -} - -void PushButton::SetDisabledBackgroundImage( Image image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetDisabledBackgroundImage( ImageActor::New( image ) ); -} - -void PushButton::SetDisabledBackgroundImage( Actor image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetDisabledBackgroundImage( image ); -} - -Actor PushButton::GetDisabledBackgroundImage() const -{ - return Dali::Toolkit::GetImplementation( *this ).GetDisabledBackgroundImage(); -} - -void PushButton::SetDisabledImage( Image image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetDisabledImage( ImageActor::New( image ) ); -} - -void PushButton::SetDisabledImage( Actor image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetDisabledImage( image ); -} - -Actor PushButton::GetDisabledImage() const -{ - return Dali::Toolkit::GetImplementation( *this ).GetDisabledImage(); -} - } // namespace Toolkit } // namespace Dali