X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fbuttons%2Fpush-button.cpp;h=24b98b5754208b4978470fc346a0ef4a03ecc897;hb=refs%2Fchanges%2F00%2F44400%2F3;hp=b3d4dd224ea4af313c1a5e2f748bed1942243225;hpb=dc3613bb6248908c267a76e378b04962bce85664;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 b3d4dd2..24b98b5 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) 2015 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. @@ -22,6 +22,7 @@ // INTERNAL INCLUDES #include +#include namespace Dali { @@ -73,54 +74,26 @@ PushButton PushButton::DownCast( BaseHandle handle ) return Control::DownCast(handle); } -void PushButton::SetButtonImage( Image image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetButtonImage( image ); -} +// Deprecated API 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( 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( image ); -} - void PushButton::SetSelectedImage( Actor image ) { Dali::Toolkit::GetImplementation( *this ).SetSelectedImage( image ); } -Actor PushButton::GetSelectedImage() const +void PushButton::SetSelectedBackgroundImage( Actor image ) { - return Dali::Toolkit::GetImplementation( *this ).GetSelectedImage(); -} - -void PushButton::SetDisabledBackgroundImage( Image image ) -{ - Dali::Toolkit::GetImplementation( *this ).SetDisabledBackgroundImage( image ); + Dali::Toolkit::GetImplementation( *this ).SetSelectedBackgroundImage( image ); } void PushButton::SetDisabledBackgroundImage( Actor image ) @@ -128,24 +101,14 @@ 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( image ); -} - void PushButton::SetDisabledImage( Actor image ) { Dali::Toolkit::GetImplementation( *this ).SetDisabledImage( image ); } -Actor PushButton::GetDisabledImage() const +void PushButton::SetDisabledSelectedImage( Actor image ) { - return Dali::Toolkit::GetImplementation( *this ).GetDisabledImage(); + Dali::Toolkit::GetImplementation( *this ).SetDisabledSelectedImage( image ); } } // namespace Toolkit