[Tizen] Support to use NPatchImage in brokenImage
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / styling / style-manager-impl.h
index b6eaff5..ef10d9a 100644 (file)
@@ -46,6 +46,17 @@ class StyleManager : public Dali::BaseObject, public ConnectionTracker
 {
 public:
   /**
+   * @brief The Type of BrokenImage
+   */
+  enum BrokenImageType
+  {
+    SMALL,
+    NORMAL,
+    LARGE
+  };
+
+public:
+  /**
    * Singleton access
    *
    * @return The StyleManager object
@@ -95,6 +106,16 @@ public: // Public API
   const Property::Map GetConfigurations();
 
   /**
+   * @copydoc Toolkit::DevelStyleManager::SetBrokenImageUrl
+   */
+  void SetBrokenImageUrl(BrokenImageType brokenImageType, const std::string& brokenImageUrl);
+
+  /**
+   * @copydoc Toolkit::DevelStyleManager::GetBrokenImageUrl
+   */
+  std::string GetBrokenImageUrl(BrokenImageType brokenImageType);
+
+  /**
    * @brief Apply the theme style to a control.
    *
    * @param[in] control The control to apply style.
@@ -233,6 +254,8 @@ private:
 
   Toolkit::Internal::FeedbackStyle* mFeedbackStyle; ///< Feedback style
 
+  std::vector<std::string> mBrokenImageUrls; ///< For brokenImage
+
   // Signals
   Toolkit::StyleManager::StyleChangedSignalType mControlStyleChangeSignal; ///< Emitted when the style( theme/font ) changes for the controls to style themselves
   Toolkit::StyleManager::StyleChangedSignalType mStyleChangedSignal;       ///< Emitted after the controls have been styled