1 #ifndef DALI_TOOLKIT_IMAGE_VISUAL_PROPERTIES_H
2 #define DALI_TOOLKIT_IMAGE_VISUAL_PROPERTIES_H
5 * Copyright (c) 2016 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/visual-properties.h>
39 * @brief The URL of the image.
40 * @details Name "url", type Property::STRING.
44 URL = VISUAL_PROPERTY_START_INDEX,
47 * @brief Fitting options, used when resizing images to fit desired dimensions.
48 * @details Name "fittingMode", type Dali::FittingMode (Property::INTEGER) or Property::STRING.
50 * @note Optional. If not supplied, default is FittingMode::SHRINK_TO_FIT.
51 * @note For Normal Quad images only.
52 * @see Dali::FittingMode
57 * @brief Filtering options, used when resizing images to sample original pixels.
58 * @details Name "samplingMode", type Dali::SamplingMode (Property::INTEGER) or Property::STRING.
60 * @note Optional. If not supplied, default is SamplingMode::BOX.
61 * @note For Normal Quad images only.
62 * @see Dali::SamplingMode
67 * @brief The desired image width.
68 * @details Name "desiredWidth", type Property::INTEGER.
70 * @note Optional. If not specified, the actual image width is used.
71 * @note For Normal Quad images only.
76 * @brief The desired image height.
77 * @details Name "desiredHeight", type Property::INTEGER.
79 * @note Optional. If not specified, the actual image height is used.
80 * @note For Normal Quad images only.
85 * @brief Whether to load the image synchronously.
86 * @details Name "synchronousLoading", type Property::BOOLEAN.
88 * @note Optional. If not specified, the default is false, i.e. the image is loaded asynchronously.
89 * @note For Normal Quad images only.
94 * @brief If true, only draws the borders.
95 * @details Name "borderOnly", type Property::BOOLEAN.
97 * @note Optional. If not specified, the default is false.
98 * @note For N-Patch images only.
103 } // namespace Property
105 } // namespace ImageVisual
107 } // namespace Toolkit
111 #endif // DALI_TOOLKIT_IMAGE_VISUAL_PROPERTIES_H