Revert "[3.0] Removing unused internal button functions"
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / buttons / button-impl.cpp
index dd722a4..3af81bb 100644 (file)
@@ -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;