Updated visuals to add animatable mixColor property
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / visuals / visual-string-constants.cpp
1  /*
2  * Copyright (c) 2016 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::DevelVisual, TEXT )
42 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, WIREFRAME )
43 DALI_ENUM_TO_STRING_TABLE_END( VISUAL_TYPE )
44
45 // Visual Type
46 const char * const VISUAL_TYPE( "visualType" );
47
48 // Custom shader
49 const char * const CUSTOM_SHADER( "shader" );
50 const char * const CUSTOM_VERTEX_SHADER( "vertexShader" );
51 const char * const CUSTOM_FRAGMENT_SHADER( "fragmentShader" );
52 const char * const CUSTOM_SUBDIVIDE_GRID_X( "subdivideGridX" );
53 const char * const CUSTOM_SUBDIVIDE_GRID_Y( "subdivideGridY" );
54 const char * const CUSTOM_SHADER_HINTS( "hints" );
55
56 // Transform
57 const char * const TRANSFORM( "transform" );
58 const char * const SIZE( "size" );
59 const char * const OFFSET( "offset" );
60 const char * const OFFSET_SIZE_MODE( "offsetSizeMode" );
61 const char * const ORIGIN( "origin" );
62 const char * const ANCHOR_POINT( "anchorPoint" );
63
64 // Premultipled alpha
65 const char * const PREMULTIPLIED_ALPHA( "premultipliedAlpha" );
66
67 // Mix color
68 const char * const MIX_COLOR( "mixColor" );
69
70 // Image visual
71 const char * const IMAGE_URL_NAME( "url" );
72 const char * const ATLAS_RECT_UNIFORM_NAME ( "uAtlasRect" );
73
74 // Text visual
75 const char * const TEXT_PROPERTY( "text" );
76
77 } // namespace Internal
78
79 } // namespace Toolkit
80
81 } // namespace Dali