Move Some Devel Properties & APIs to the Public API
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / visuals / image-visual-properties-devel.h
1 #ifndef DALI_TOOLKIT_DEVEL_API_VISUALS_IMAGE_VISUAL_PROPERTIES_DEVEL_H
2 #define DALI_TOOLKIT_DEVEL_API_VISUALS_IMAGE_VISUAL_PROPERTIES_DEVEL_H
3
4 /*
5  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/public-api/visuals/image-visual-properties.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 namespace DevelImageVisual
31 {
32
33 namespace Property
34 {
35
36 enum Type
37 {
38   URL                 = Dali::Toolkit::ImageVisual::Property::URL,
39   FITTING_MODE        = Dali::Toolkit::ImageVisual::Property::FITTING_MODE,
40   SAMPLING_MODE       = Dali::Toolkit::ImageVisual::Property::SAMPLING_MODE,
41   DESIRED_WIDTH       = Dali::Toolkit::ImageVisual::Property::DESIRED_WIDTH,
42   DESIRED_HEIGHT      = Dali::Toolkit::ImageVisual::Property::DESIRED_HEIGHT,
43   SYNCHRONOUS_LOADING = Dali::Toolkit::ImageVisual::Property::SYNCHRONOUS_LOADING,
44   BORDER_ONLY         = Dali::Toolkit::ImageVisual::Property::BORDER_ONLY,
45   PIXEL_AREA          = Dali::Toolkit::ImageVisual::Property::PIXEL_AREA,
46   WRAP_MODE_U         = Dali::Toolkit::ImageVisual::Property::WRAP_MODE_U,
47   WRAP_MODE_V         = Dali::Toolkit::ImageVisual::Property::WRAP_MODE_V,
48   BORDER              = Dali::Toolkit::ImageVisual::Property::BORDER,
49   ATLASING            = Dali::Toolkit::ImageVisual::Property::ATLASING,
50   ALPHA_MASK_URL      = Dali::Toolkit::ImageVisual::Property::ALPHA_MASK_URL,
51   BATCH_SIZE          = Dali::Toolkit::ImageVisual::Property::BATCH_SIZE,
52   CACHE_SIZE          = Dali::Toolkit::ImageVisual::Property::CACHE_SIZE,
53   FRAME_DELAY         = Dali::Toolkit::ImageVisual::Property::FRAME_DELAY,
54   MASK_CONTENT_SCALE  = Dali::Toolkit::ImageVisual::Property::MASK_CONTENT_SCALE,
55   CROP_TO_MASK        = Dali::Toolkit::ImageVisual::Property::CROP_TO_MASK,
56   LOAD_POLICY         = Dali::Toolkit::ImageVisual::Property::LOAD_POLICY,
57   RELEASE_POLICY      = Dali::Toolkit::ImageVisual::Property::RELEASE_POLICY,
58   ORIENTATION_CORRECTION = Dali::Toolkit::ImageVisual::Property::ORIENTATION_CORRECTION,
59
60   /**
61    * @brief Overlays the auxiliary iamge on top of an NPatch image.
62    *
63    * The resulting visual image will be at least as large as the
64    * smallest possible n-patch or the auxiliary image, whichever is
65    * larger.
66    *
67    * @details Name "auxiliaryImage", Type Property::STRING, URL of the image.
68    * @note Default true
69    */
70   AUXILIARY_IMAGE = ORIENTATION_CORRECTION + 1,
71
72   /**
73    * @brief An alpha value for mixing between the masked main NPatch image and the auxiliary image
74    * @details Name "auxiliaryImageAlpha", Type Property::FLOAT, between 0 and 1
75    * @note Default 0
76    */
77   AUXILIARY_IMAGE_ALPHA = ORIENTATION_CORRECTION + 2,
78
79 };
80
81 } //namespace Property
82
83 } // namespace DevelImageVisual
84
85 } // namespace Toolkit
86
87 } // namespace Dali
88
89 #endif // DALI_TOOLKIT_DEVEL_API_VISUALS_IMAGE_VISUAL_PROPERTIES_DEVEL_H