Rename visual fitting mode property
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / visuals / visual-string-constants.cpp
1  /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include "visual-string-constants.h"
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/public-api/visuals/visual-properties.h>
23 #include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
24
25 namespace Dali
26 {
27
28 namespace Toolkit
29 {
30
31 namespace Internal
32 {
33
34 DALI_ENUM_TO_STRING_TABLE_BEGIN( VISUAL_TYPE )
35 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, BORDER )
36 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, COLOR )
37 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, GRADIENT )
38 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, IMAGE )
39 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, MESH )
40 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, PRIMITIVE )
41 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, TEXT )
42 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, N_PATCH )
43 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, SVG )
44 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, ANIMATED_IMAGE )
45 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, WIREFRAME )
46 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::DevelVisual, ANIMATED_GRADIENT )
47 DALI_ENUM_TO_STRING_TABLE_END( VISUAL_TYPE )
48
49 // Visual Type
50 const char * const VISUAL_TYPE( "visualType" );
51
52 // Custom shader
53 const char * const CUSTOM_SHADER( "shader" );
54 const char * const CUSTOM_VERTEX_SHADER( "vertexShader" );
55 const char * const CUSTOM_FRAGMENT_SHADER( "fragmentShader" );
56 const char * const CUSTOM_SUBDIVIDE_GRID_X( "subdivideGridX" );
57 const char * const CUSTOM_SUBDIVIDE_GRID_Y( "subdivideGridY" );
58 const char * const CUSTOM_SHADER_HINTS( "hints" );
59
60 // Transform
61 const char * const TRANSFORM( "transform" );
62 const char * const SIZE( "size" );
63 const char * const OFFSET( "offset" );
64 const char * const OFFSET_SIZE_MODE( "offsetSizeMode" );
65 const char * const ORIGIN( "origin" );
66 const char * const ANCHOR_POINT( "anchorPoint" );
67
68 // Premultipled alpha
69 const char * const PREMULTIPLIED_ALPHA( "premultipliedAlpha" );
70
71 // Mix color
72 const char * const MIX_COLOR( "mixColor" );
73 const char * const OPACITY( "opacity" );
74
75 // Fitting mode
76 const char * const VISUAL_FITTING_MODE( "visualFittingMode" );
77
78 // Color visual
79 const char * const RENDER_IF_TRANSPARENT_NAME( "renderIfTransparent" );
80
81 // Image visual
82 const char * const IMAGE_URL_NAME( "url" );
83 const char * const ATLAS_RECT_UNIFORM_NAME( "uAtlasRect" );
84 const char * const PIXEL_AREA_UNIFORM_NAME( "pixelArea" );
85 const char * const WRAP_MODE_UNIFORM_NAME( "wrapMode" );
86 const char * const IMAGE_WRAP_MODE_U("wrapModeU");
87 const char * const IMAGE_WRAP_MODE_V("wrapModeV");
88 const char * const IMAGE_BORDER( "border" );
89 const char * const PIXEL_ALIGNED_UNIFORM_NAME( "uPixelAligned" );
90 const char * const ANIMATED_IMAGE_URLS_NAME("urls");
91 const char * const BATCH_SIZE_NAME("batchSize");
92 const char * const CACHE_SIZE_NAME("cacheSize");
93 const char * const FRAME_DELAY_NAME("frameDelay");
94 const char * const LOOP_COUNT_NAME("loopCount");
95 const char * const MASK_CONTENT_SCALE_NAME("maskContentScale");
96 const char * const CROP_TO_MASK_NAME("cropToMask");
97 const char * const LOAD_POLICY_NAME("loadPolicy");
98 const char * const RELEASE_POLICY_NAME("releasePolicy");
99 const char * const ORIENTATION_CORRECTION_NAME("orientationCorrection");
100 const char * const AUXILIARY_IMAGE_NAME("auxiliaryImage");
101 const char * const AUXILIARY_IMAGE_ALPHA_NAME("auxiliaryImageAlpha");
102
103 // Text visual
104 const char * const TEXT_PROPERTY( "text" );
105
106 } // namespace Internal
107
108 } // namespace Toolkit
109
110 } // namespace Dali