dali 1.2.28 version upgrade
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / DaliEnumConstants.cs
1 /** Copyright (c) 2016 Samsung Electronics Co., Ltd.
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  *
15  */
16 using System;
17
18 namespace Tizen.NUI
19 {
20   namespace Constants
21   {
22     public enum TextureType
23     {
24       Texture2D     = Tizen.NUI.TextureType.TEXTURE_2D,   ///< One 2D image                            @SINCE_1_1.43
25       TextureCube   = Tizen.NUI.TextureType.TEXTURE_CUBE  ///< Six 2D images arranged in a cube-shape  @SINCE_1_1.43
26     }
27
28     public enum ViewMode
29     {
30       Mono              = Tizen.NUI.ViewMode.MONO,                          ///< Monoscopic (single camera). This is the default @SINCE_1_0.0
31       StereoHorizontal  = Tizen.NUI.ViewMode.STEREO_HORIZONTAL, ///< Stereoscopic. Frame buffer is split horizontally with the left and right camera views in their respective sides. @SINCE_1_0.0
32       StereoVertical    = Tizen.NUI.ViewMode.STEREO_VERTICAL,     ///< Stereoscopic. Frame buffer is split vertically with the left camera view at the top and the right camera view at the bottom. @SINCE_1_0.0
33       StereoInterlaced  = Tizen.NUI.ViewMode.STEREO_INTERLACED  ///< @DEPRECATED_1_1.19 @brief Stereoscopic. Left/Right camera views are rendered into the framebuffer on alternate frames. @SINCE_1_0.0
34     }
35
36     public enum MeshVisualShadingModeValue
37     {
38       TexturelessWithDiffuseLighting = Tizen.NUI.MeshVisualShadingModeValue.TEXTURELESS_WITH_DIFFUSE_LIGHTING,       ///< *Simplest*. One color that is lit by ambient and diffuse lighting. @SINCE_1_1.45
39       TexturedWithSpecularLigting = Tizen.NUI.MeshVisualShadingModeValue.TEXTURED_WITH_SPECULAR_LIGHTING,         ///< Uses only the visual image textures provided with specular lighting in addition to ambient and diffuse lighting. @SINCE_1_1.45
40       TexturedWithDetailedSpecularLighting = Tizen.NUI.MeshVisualShadingModeValue.TEXTURED_WITH_DETAILED_SPECULAR_LIGHTING ///< Uses all textures provided including a gloss, normal and texture map along with specular, ambient and diffuse lighting. @SINCE_1_1.45
41     }
42
43
44
45     public struct Direction
46     {
47       public enum Type
48       {
49         LeftToRight = Tizen.NUI.DirectionType.LEFT_TO_RIGHT,
50         RightToLeft = Tizen.NUI.DirectionType.RIGHT_TO_LEFT
51       }
52     }
53
54     public struct Visual
55     {
56       public enum Type
57       {
58         Border = Tizen.NUI.VisualType.BORDER,
59         Color = Tizen.NUI.VisualType.COLOR,
60         Gradient = Tizen.NUI.VisualType.GRADIENT,
61         Image = Tizen.NUI.VisualType.IMAGE,
62         Mesh = Tizen.NUI.VisualType.MESH,
63         Primitive = Tizen.NUI.VisualType.PRIMITIVE,
64         WireFrame = Tizen.NUI.VisualType.WIREFRAME,
65         Text = Tizen.NUI.VisualType.TEXT
66       }
67
68       public struct Property
69       {
70         public static readonly int Type = NDalic.VISUAL_PROPERTY_TYPE;
71         public static readonly int Shader = NDalic.VISUAL_PROPERTY_SHADER;
72         public static readonly int Transform = NDalic.VISUAL_PROPERTY_TRANSFORM;
73         public static readonly int PremultipliedAlpha = NDalic.VISUAL_PROPERTY_PREMULTIPLIED_ALPHA;
74         public static readonly int MixColor = NDalic.VISUAL_PROPERTY_MIX_COLOR;
75       }
76
77       public struct ShaderProperty
78       {
79         public static readonly int VertexShader = NDalic.VISUAL_SHADER_VERTEX;
80         public static readonly int FragmentShader = NDalic.VISUAL_SHADER_FRAGMENT;
81         public static readonly int ShaderSubdivideGridX = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_X;
82         public static readonly int ShaderSubdivideGridY = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_Y;
83         public static readonly int ShaderHints = NDalic.VISUAL_SHADER_HINTS;
84       }
85     }
86
87     public struct BorderVisualProperty
88     {
89       public static readonly int Color = NDalic.BORDER_VISUAL_COLOR;
90       public static readonly int Size = NDalic.BORDER_VISUAL_SIZE;
91       public static readonly int AntiAliasing = NDalic.BORDER_VISUAL_ANTI_ALIASING;
92     }
93
94     public struct ColorVisualProperty
95     {
96       public static readonly int MixColor = NDalic.COLOR_VISUAL_MIX_COLOR;
97     }
98
99     public struct GradientVisualProperty
100     {
101       public static readonly int StartPosition = NDalic.GRADIENT_VISUAL_START_POSITION;
102       public static readonly int EndPosition = NDalic.GRADIENT_VISUAL_END_POSITION;
103       public static readonly int Center = NDalic.GRADIENT_VISUAL_CENTER;
104       public static readonly int Radius = NDalic.GRADIENT_VISUAL_RADIUS;
105       public static readonly int StopOffset = NDalic.GRADIENT_VISUAL_STOP_OFFSET;
106       public static readonly int StopColor = NDalic.GRADIENT_VISUAL_STOP_COLOR;
107       public static readonly int Units = NDalic.GRADIENT_VISUAL_UNITS;
108       public static readonly int SpreadMethod = NDalic.GRADIENT_VISUAL_SPREAD_METHOD;
109     }
110
111     public struct ImageVisualProperty
112     {
113       public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
114       public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
115       public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
116       public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
117       public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
118       public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
119       public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
120       public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
121       public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
122       public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
123     }
124
125     public struct MeshVisualProperty
126     {
127       public static readonly int ObjectURL = NDalic.MESH_VISUAL_OBJECT_URL;
128       public static readonly int MaterialtURL = NDalic.MESH_VISUAL_MATERIAL_URL;
129       public static readonly int TexturesPath = NDalic.MESH_VISUAL_TEXTURES_PATH;
130       public static readonly int ShadingMode = NDalic.MESH_VISUAL_SHADING_MODE;
131       public static readonly int UseMipmapping = NDalic.MESH_VISUAL_USE_MIPMAPPING;
132       public static readonly int UseSoftNormals = NDalic.MESH_VISUAL_USE_SOFT_NORMALS;
133       public static readonly int LightPosition = NDalic.MESH_VISUAL_LIGHT_POSITION;
134     }
135
136     public struct PrimitiveVisualProperty
137     {
138       public static readonly int Shape = NDalic.PRIMITIVE_VISUAL_SHAPE;
139       public static readonly int MixColor = NDalic.PRIMITIVE_VISUAL_MIX_COLOR;
140       public static readonly int Slices = NDalic.PRIMITIVE_VISUAL_SLICES;
141       public static readonly int Stacks = NDalic.PRIMITIVE_VISUAL_STACKS;
142       public static readonly int ScaleTopRadius = NDalic.PRIMITIVE_VISUAL_SCALE_TOP_RADIUS;
143       public static readonly int ScaleBottomRadius = NDalic.PRIMITIVE_VISUAL_SCALE_BOTTOM_RADIUS;
144       public static readonly int ScaleHeight = NDalic.PRIMITIVE_VISUAL_SCALE_HEIGHT;
145       public static readonly int ScaleRadius = NDalic.PRIMITIVE_VISUAL_SCALE_RADIUS;
146       public static readonly int ScaleDimensions = NDalic.PRIMITIVE_VISUAL_SCALE_DIMENSIONS;
147       public static readonly int BevelPercentage = NDalic.PRIMITIVE_VISUAL_BEVEL_PERCENTAGE;
148       public static readonly int BevelSmoothness = NDalic.PRIMITIVE_VISUAL_BEVEL_SMOOTHNESS;
149       public static readonly int LightPosition = NDalic.PRIMITIVE_VISUAL_LIGHT_POSITION;
150     }
151
152     public struct TextVisualProperty
153     {
154       public static readonly int Text = NDalic.TEXT_VISUAL_TEXT;
155       public static readonly int FontFamily = NDalic.TEXT_VISUAL_FONT_FAMILY;
156       public static readonly int FontStyle = NDalic.TEXT_VISUAL_FONT_STYLE;
157       public static readonly int PointSize = NDalic.TEXT_VISUAL_POINT_SIZE;
158       public static readonly int MultiLine = NDalic.TEXT_VISUAL_MULTI_LINE;
159       public static readonly int HorizontalAlignment = NDalic.TEXT_VISUAL_HORIZONTAL_ALIGNMENT;
160       public static readonly int VerticalAlignment = NDalic.TEXT_VISUAL_VERTICAL_ALIGNMENT;
161       public static readonly int TextColor = NDalic.TEXT_VISUAL_TEXT_COLOR;
162       public static readonly int EnableMarkup = NDalic.TEXT_VISUAL_ENABLE_MARKUP;
163     }
164
165     public struct Tooltip
166     {
167       public struct Property
168       {
169         public static readonly int Content = NDalic.TOOLTIP_CONTENT;
170         public static readonly int Layout = NDalic.TOOLTIP_LAYOUT;
171         public static readonly int WaitTime = NDalic.TOOLTIP_WAIT_TIME;
172         public static readonly int Background = NDalic.TOOLTIP_BACKGROUND;
173         public static readonly int Tail = NDalic.TOOLTIP_TAIL;
174         public static readonly int Position = NDalic.TOOLTIP_POSITION;
175         public static readonly int HoverPointOffset = NDalic.TOOLTIP_HOVER_POINT_OFFSET;
176         public static readonly int MovementThreshold = NDalic.TOOLTIP_MOVEMENT_THRESHOLD;
177         public static readonly int DisappearOnMovement = NDalic.TOOLTIP_DISAPPEAR_ON_MOVEMENT;
178       }
179
180       public struct BackgroundProperty
181       {
182         public static readonly int Visual = NDalic.TOOLTIP_BACKGROUND_VISUAL;
183         public static readonly int Border = NDalic.TOOLTIP_BACKGROUND_BORDER;
184       }
185
186       public struct TailProperty
187       {
188         public static readonly int Visibility = NDalic.TOOLTIP_TAIL_VISIBILITY;
189         public static readonly int AboveVisual = NDalic.TOOLTIP_TAIL_ABOVE_VISUAL;
190         public static readonly int BelowVisual = NDalic.TOOLTIP_TAIL_BELOW_VISUAL;
191       }
192     }
193   } // namespace Constants
194 } // namesapce Dali