Property refactor in dali-core: Core changes
[platform/core/uifw/dali-core.git] / dali / public-api / render-tasks / render-task.h
index 8f71f52..5003b24 100644 (file)
@@ -21,6 +21,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/math/viewport.h>
 #include <dali/public-api/object/handle.h>
+#include <dali/public-api/object/property-index-ranges.h>
 #include <dali/public-api/signals/dali-signal.h>
 
 namespace Dali
@@ -77,16 +78,25 @@ class RenderTask;
 class DALI_IMPORT_API RenderTask : public Handle
 {
 public:
+
+  /**
+   * @brief An enumeration of properties belonging to the RenderTask class.
+   */
+  struct Property
+  {
+    enum
+    {
+      ViewportPosition = DEFAULT_DERIVED_HANDLE_PROPERTY_START_INDEX, ///< name "viewport-position", type Vector2
+      ViewportSize,                                                   ///< name "viewport-size",     type Vector2
+      ClearColor,                                                     ///< name "clear-color",       type Vector4
+    };
+  };
+
   /**
    * @brief Typedef for signals sent by this class.
    */
   typedef Signal< void (RenderTask& source) > RenderTaskSignalType;
 
-  // Default Properties
-  static const Property::Index VIEWPORT_POSITION;    ///< Property  0, name "viewport-position",   type VECTOR2
-  static const Property::Index VIEWPORT_SIZE;        ///< Property  1, name "viewport-size",       type VECTOR2
-  static const Property::Index CLEAR_COLOR;          ///< Property  2, name "clear-color",         type VECTOR4
-
   /**
    * @brief A pointer to a function for converting screen to frame-buffer coordinates.
    * @param[in,out] coordinates The screen coordinates to convert where (0,0) is the top-left of the screen.