1 #ifndef DALI_TOOLKIT_DEVEL_API_VISUALS_IMAGE_VISUAL_PROPERTIES_DEVEL_H
2 #define DALI_TOOLKIT_DEVEL_API_VISUALS_IMAGE_VISUAL_PROPERTIES_DEVEL_H
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali-toolkit/public-api/visuals/image-visual-properties.h>
30 namespace DevelImageVisual
34 * @brief The policy determining if the image is loaded when the visual is staged or created.
40 * @brief The available named elements that define the LoadPolicy.
44 IMMEDIATE = 0, ///< The image is loaded when the ImageVisual is created.
45 ATTACHED ///< The image is loaded when the ImageVisual is attached to the stage.
48 } // namespace LoadPolicy
51 * @brief The policy determining when a image is deleted from the cache in relation to the ImageVisual lifetime.
52 * @note If the texture is being shared by another visual it persist if still required.
54 namespace ReleasePolicy
58 * @brief The available named elements that define the ReleasePolicy.
62 DETACHED = 0, ///< Image deleted from cache when ImageVisual detached from stage.
63 DESTROYED, ///< Image deleted from cache when ImageVisual destroyed.
64 NEVER ///< Image is never deleted, will survive the lifetime of the application.
67 } // namespace ReleasePolicy;
74 URL = Dali::Toolkit::ImageVisual::Property::URL,
75 FITTING_MODE = Dali::Toolkit::ImageVisual::Property::FITTING_MODE,
76 SAMPLING_MODE = Dali::Toolkit::ImageVisual::Property::SAMPLING_MODE,
77 DESIRED_WIDTH = Dali::Toolkit::ImageVisual::Property::DESIRED_WIDTH,
78 DESIRED_HEIGHT = Dali::Toolkit::ImageVisual::Property::DESIRED_HEIGHT,
79 SYNCHRONOUS_LOADING = Dali::Toolkit::ImageVisual::Property::SYNCHRONOUS_LOADING,
80 BORDER_ONLY = Dali::Toolkit::ImageVisual::Property::BORDER_ONLY,
81 PIXEL_AREA = Dali::Toolkit::ImageVisual::Property::PIXEL_AREA,
82 WRAP_MODE_U = Dali::Toolkit::ImageVisual::Property::WRAP_MODE_U,
83 WRAP_MODE_V = Dali::Toolkit::ImageVisual::Property::WRAP_MODE_V,
84 BORDER = Dali::Toolkit::ImageVisual::Property::BORDER,
85 ATLASING = Dali::Toolkit::ImageVisual::Property::ATLASING,
86 ALPHA_MASK_URL = Dali::Toolkit::ImageVisual::Property::ALPHA_MASK_URL,
87 BATCH_SIZE = Dali::Toolkit::ImageVisual::Property::BATCH_SIZE,
88 CACHE_SIZE = Dali::Toolkit::ImageVisual::Property::CACHE_SIZE,
89 FRAME_DELAY = Dali::Toolkit::ImageVisual::Property::FRAME_DELAY,
90 MASK_CONTENT_SCALE = Dali::Toolkit::ImageVisual::Property::MASK_CONTENT_SCALE,
91 CROP_TO_MASK = Dali::Toolkit::ImageVisual::Property::CROP_TO_MASK,
94 * @brief The policy to determine when an image should be loaded.
95 * @details Name "loadPolicy", Type LoadPolicy::Type (Property::INTEGER)or Property::STRING.
96 * @note Default LoadPolicy::ATTACHED
97 * @see LoadPolicy::Type
99 LOAD_POLICY = CROP_TO_MASK + 1,
102 * @brief The policy to determine when an image should no longer be cached.
103 * @details Name "releasePolicy", Type ReleasePolicy::Type (Property::INTEGER) or Property::STRING
104 * @note Default ReleasePolicy::DESTROYED
105 * @see ReleasePolicy::Type
107 RELEASE_POLICY = CROP_TO_MASK + 2,
110 } //namespace Property
112 } // namespace DevelImageVisual
114 } // namespace Toolkit
118 #endif // DALI_TOOLKIT_DEVEL_API_VISUALS_IMAGE_VISUAL_PROPERTIES_DEVEL_H