X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fvisuals%2Fimage-visual-properties.h;h=0f5d58bd42a16fd9d52fcb6687cdacfd8b1e56ba;hp=93902cf0b5670694f2638c982b5700307321ffa9;hb=4365dab5fd64788ab0c1215ac6f14619cfb9a67d;hpb=23062be13c5b821a99ac1c4263d9abf7536894b1 diff --git a/dali-toolkit/public-api/visuals/image-visual-properties.h b/dali-toolkit/public-api/visuals/image-visual-properties.h index 93902cf..0f5d58b 100644 --- a/dali-toolkit/public-api/visuals/image-visual-properties.h +++ b/dali-toolkit/public-api/visuals/image-visual-properties.h @@ -232,10 +232,78 @@ enum * @note If this is false, then the mask is scaled to fit the image before being applied. */ CROP_TO_MASK, + + /** + * @brief The policy to determine when an image should be loaded. + * @details Name "loadPolicy", Type LoadPolicy::Type (Property::INTEGER)or Property::STRING. + * @SINCE_1_3_5 + * @note Default LoadPolicy::ATTACHED + * @see LoadPolicy::Type + */ + + LOAD_POLICY, + + /** + * @brief The policy to determine when an image should no longer be cached. + * @details Name "releasePolicy", Type ReleasePolicy::Type (Property::INTEGER) or Property::STRING + * @SINCE_1_3_5 + * @note Default ReleasePolicy::DESTROYED + * @see ReleasePolicy::Type + */ + RELEASE_POLICY, + + /** + * @brief Determines if image orientation should be corrected so the image displays as it was intended. + * @details Name "orientationCorrection", Type Property::BOOLEAN, if true the image's orientation will be corrected. + * @SINCE_1_3_5 + * @note Default true + */ + ORIENTATION_CORRECTION, + }; } // namespace Property +/** + * @brief The policy determining if the image is loaded when the visual is staged or created. + * @SINCE_1_3_5 + */ +namespace LoadPolicy +{ + +/** + * @brief The available named elements that define the LoadPolicy. + * @SINCE_1_3_5 + */ +enum Type +{ + IMMEDIATE = 0, ///< The image is loaded when the ImageVisual is created. + ATTACHED ///< The image is loaded when the ImageVisual is attached to the stage. +}; + +} // namespace LoadPolicy + +/** + * @brief The policy determining when a image is deleted from the cache in relation to the ImageVisual lifetime. + * @SINCE_1_3_5 + * @note If the texture is being shared by another visual it persist if still required. + */ +namespace ReleasePolicy +{ + +/** + * @brief The available named elements that define the ReleasePolicy. + * @SINCE_1_3_5 + */ +enum Type +{ + DETACHED = 0, ///< Image deleted from cache when ImageVisual detached from stage. + DESTROYED, ///< Image deleted from cache when ImageVisual destroyed. + NEVER ///< Image is never deleted, will survive the lifetime of the application. +}; + +} // namespace ReleasePolicy; + } // namespace ImageVisual /**