X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fbutton-impl.cpp;h=3af81bb12f8a5df32b73de10386481098ca5f508;hb=1bc820d549c05404f8aabdbeec61d403a72ef0ac;hp=dd722a44a95f006cb52f534fcd0b9e3b8e8eb03f;hpb=8fe1bf0b0dd961603229d658f132f6279a53fe19;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/buttons/button-impl.cpp b/dali-toolkit/internal/controls/buttons/button-impl.cpp index dd722a4..3af81bb 100644 --- a/dali-toolkit/internal/controls/buttons/button-impl.cpp +++ b/dali-toolkit/internal/controls/buttons/button-impl.cpp @@ -722,6 +722,32 @@ std::string Button::GetSelectedImageFilename() const return std::string(); } +std::string Button::GetBackgroundImageFilename() const +{ + if( mBackgroundContent ) + { + ResourceImage image = ResourceImage::DownCast( mBackgroundContent ); + if( image ) + { + return image.GetUrl(); + } + } + return std::string(); +} + +std::string Button::GetSelectedBackgroundImageFilename() const +{ + if( mSelectedBackgroundContent ) + { + ResourceImage image = ResourceImage::DownCast( mSelectedBackgroundContent ); + if( image ) + { + return image.GetUrl(); + } + } + return std::string(); +} + std::string Button::GetDisabledImageFilename() const { if( mDisabledContent ) @@ -735,6 +761,32 @@ std::string Button::GetDisabledImageFilename() const return std::string(); } +std::string Button::GetDisabledSelectedImageFilename() const +{ + if( mDisabledSelectedContent ) + { + ResourceImage image = ResourceImage::DownCast( mDisabledSelectedContent ); + if( image ) + { + return image.GetUrl(); + } + } + return std::string(); +} + +std::string Button::GetDisabledBackgroundImageFilename() const +{ + if( mDisabledBackgroundContent ) + { + ResourceImage image = ResourceImage::DownCast( mDisabledBackgroundContent ); + if( image ) + { + return image.GetUrl(); + } + } + return std::string(); +} + bool Button::DoAction( BaseObject* object, const std::string& actionName, const Property::Map& attributes ) { bool ret = false;