3 using Tizen.NUI.Binding;
4 using System.Collections.Generic;
6 namespace Tizen.NUI.Binding
8 internal static class VisualExtension
10 public static Dictionary<string, int> KeyDictionary = new Dictionary<string, int>()
13 { "Visual.Property.Type", Visual.Property.Type },
14 { "Visual.Property.Shader", Visual.Property.Shader },
15 { "Visual.Property.Transform", Visual.Property.Transform },
16 { "Visual.Property.PremultipliedAlpha", Visual.Property.PremultipliedAlpha },
17 { "Visual.Property.MixColor", Visual.Property.MixColor },
18 { "Visual.Property.Opacity", Visual.Property.Opacity },
20 { "Visual.ShaderProperty.VertexShader", Visual.ShaderProperty.VertexShader },
21 { "Visual.ShaderProperty.FragmentShader", Visual.ShaderProperty.FragmentShader },
22 { "Visual.ShaderProperty.ShaderSubdivideGridX", Visual.ShaderProperty.ShaderSubdivideGridX },
23 { "Visual.ShaderProperty.ShaderSubdivideGridY", Visual.ShaderProperty.ShaderSubdivideGridY },
24 { "Visual.ShaderProperty.ShaderHints", Visual.ShaderProperty.ShaderHints },
25 // BorderVisualProperty
26 { "BorderVisualProperty.Color", BorderVisualProperty.Color },
27 { "BorderVisualProperty.Size", BorderVisualProperty.Size },
28 { "BorderVisualProperty.AntiAliasing", BorderVisualProperty.AntiAliasing },
29 // ColorVisualProperty
30 { "ColorVisualProperty.MixColor", ColorVisualProperty.MixColor},
31 // GradientVisualProperty
32 { "GradientVisualProperty.StartPosition", GradientVisualProperty.StartPosition },
33 { "GradientVisualProperty.EndPosition", GradientVisualProperty.EndPosition },
34 { "GradientVisualProperty.Center", GradientVisualProperty.Center },
35 { "GradientVisualProperty.Radius", GradientVisualProperty.Radius },
36 { "GradientVisualProperty.StopOffset", GradientVisualProperty.StopOffset },
37 { "GradientVisualProperty.StopColor", GradientVisualProperty.StopColor },
38 { "GradientVisualProperty.Units", GradientVisualProperty.Units },
39 { "GradientVisualProperty.SpreadMethod", GradientVisualProperty.SpreadMethod },
40 // ImageVisualProperty
41 { "ImageVisualProperty.URL", ImageVisualProperty.URL },
42 { "ImageVisualProperty.AlphaMaskURL", ImageVisualProperty.AlphaMaskURL },
43 { "ImageVisualProperty.FittingMode", ImageVisualProperty.FittingMode },
44 { "ImageVisualProperty.SamplingMode", ImageVisualProperty.SamplingMode },
45 { "ImageVisualProperty.DesiredWidth", ImageVisualProperty.DesiredWidth },
46 { "ImageVisualProperty.DesiredHeight", ImageVisualProperty.DesiredHeight },
47 { "ImageVisualProperty.SynchronousLoading", ImageVisualProperty.SynchronousLoading },
48 { "ImageVisualProperty.BorderOnly", ImageVisualProperty.BorderOnly },
49 { "ImageVisualProperty.PixelArea", ImageVisualProperty.PixelArea },
50 { "ImageVisualProperty.WrapModeU", ImageVisualProperty.WrapModeU },
51 { "ImageVisualProperty.WrapModeV", ImageVisualProperty.WrapModeV },
52 { "ImageVisualProperty.Border", ImageVisualProperty.Border },
53 { "ImageVisualProperty.MaskContentScale", ImageVisualProperty.MaskContentScale },
54 { "ImageVisualProperty.CropToMask", ImageVisualProperty.CropToMask },
55 { "ImageVisualProperty.BatchSize", ImageVisualProperty.BatchSize },
56 { "ImageVisualProperty.CacheSize", ImageVisualProperty.CacheSize },
57 { "ImageVisualProperty.FrameDelay", ImageVisualProperty.FrameDelay },
58 { "ImageVisualProperty.LoopCount", ImageVisualProperty.LoopCount },
59 { "ImageVisualProperty.ReleasePolicy", ImageVisualProperty.ReleasePolicy },
60 { "ImageVisualProperty.LoadPolicy", ImageVisualProperty.LoadPolicy },
61 { "ImageVisualProperty.OrientationCorrection", ImageVisualProperty.OrientationCorrection },
62 { "ImageVisualProperty.AuxiliaryImageURL", ImageVisualProperty.AuxiliaryImageURL },
63 { "ImageVisualProperty.AuxiliaryImageAlpha", ImageVisualProperty.AuxiliaryImageAlpha },
65 { "MeshVisualProperty.ObjectURL", MeshVisualProperty.ObjectURL },
66 { "MeshVisualProperty.MaterialtURL", MeshVisualProperty.MaterialtURL },
67 { "MeshVisualProperty.TexturesPath", MeshVisualProperty.TexturesPath },
68 { "MeshVisualProperty.ShadingMode", MeshVisualProperty.ShadingMode },
69 { "MeshVisualProperty.UseMipmapping", MeshVisualProperty.UseMipmapping },
70 { "MeshVisualProperty.UseSoftNormals", MeshVisualProperty.UseSoftNormals },
71 { "MeshVisualProperty.LightPosition", MeshVisualProperty.LightPosition },
72 // PrimitiveVisualProperty
73 { "PrimitiveVisualProperty.Shape", PrimitiveVisualProperty.Shape },
74 { "PrimitiveVisualProperty.MixColor", PrimitiveVisualProperty.MixColor },
75 { "PrimitiveVisualProperty.Slices", PrimitiveVisualProperty.Slices },
76 { "PrimitiveVisualProperty.Stacks", PrimitiveVisualProperty.Stacks },
77 { "PrimitiveVisualProperty.ScaleTopRadius", PrimitiveVisualProperty.ScaleTopRadius },
78 { "PrimitiveVisualProperty.ScaleBottomRadius", PrimitiveVisualProperty.ScaleBottomRadius },
79 { "PrimitiveVisualProperty.ScaleHeight", PrimitiveVisualProperty.ScaleHeight },
80 { "PrimitiveVisualProperty.ScaleRadius", PrimitiveVisualProperty.ScaleRadius },
81 { "PrimitiveVisualProperty.ScaleDimensions", PrimitiveVisualProperty.ScaleDimensions },
82 { "PrimitiveVisualProperty.BevelPercentage", PrimitiveVisualProperty.BevelPercentage },
83 { "PrimitiveVisualProperty.BevelSmoothness", PrimitiveVisualProperty.BevelSmoothness },
84 { "PrimitiveVisualProperty.LightPosition", PrimitiveVisualProperty.LightPosition },
86 { "TextVisualProperty.Text", TextVisualProperty.Text },
87 { "TextVisualProperty.FontFamily", TextVisualProperty.FontFamily },
88 { "TextVisualProperty.FontStyle", TextVisualProperty.FontStyle },
89 { "TextVisualProperty.PointSize", TextVisualProperty.PointSize },
90 { "TextVisualProperty.MultiLine", TextVisualProperty.MultiLine },
91 { "TextVisualProperty.HorizontalAlignment", TextVisualProperty.HorizontalAlignment },
92 { "TextVisualProperty.VerticalAlignment", TextVisualProperty.VerticalAlignment },
93 { "TextVisualProperty.TextColor", TextVisualProperty.TextColor },
94 { "TextVisualProperty.EnableMarkup", TextVisualProperty.EnableMarkup },
95 // NpatchImageVisualProperty
96 { "NpatchImageVisualProperty.URL", NpatchImageVisualProperty.URL },
97 { "NpatchImageVisualProperty.FittingMode", NpatchImageVisualProperty.FittingMode },
98 { "NpatchImageVisualProperty.SamplingMode", NpatchImageVisualProperty.SamplingMode },
99 { "NpatchImageVisualProperty.DesiredWidth", NpatchImageVisualProperty.DesiredWidth },
100 { "NpatchImageVisualProperty.DesiredHeight", NpatchImageVisualProperty.DesiredHeight },
101 { "NpatchImageVisualProperty.SynchronousLoading", NpatchImageVisualProperty.SynchronousLoading },
102 { "NpatchImageVisualProperty.BorderOnly", NpatchImageVisualProperty.BorderOnly },
103 { "NpatchImageVisualProperty.PixelArea", NpatchImageVisualProperty.PixelArea },
104 { "NpatchImageVisualProperty.WrapModeU", NpatchImageVisualProperty.WrapModeU },
105 { "NpatchImageVisualProperty.WrapModeV", NpatchImageVisualProperty.WrapModeV },
106 { "NpatchImageVisualProperty.Border", NpatchImageVisualProperty.Border },
107 // HiddenInputProperty
108 { "HiddenInputProperty.Mode", HiddenInputProperty.Mode },
109 { "HiddenInputProperty.SubstituteCharacter", HiddenInputProperty.SubstituteCharacter },
110 { "HiddenInputProperty.SubstituteCount", HiddenInputProperty.SubstituteCount },
111 { "HiddenInputProperty.ShowLastCharacterDuration", HiddenInputProperty.ShowLastCharacterDuration },
115 internal enum VisualTypeExtension
117 Border = Visual.Type.Border,
118 Color = Visual.Type.Color,
119 Gradient = Visual.Type.Gradient,
120 Image = Visual.Type.Image,
121 Mesh = Visual.Type.Mesh,
122 Primitive = Visual.Type.Primitive,
123 Wireframe = Visual.Type.Wireframe,
124 Text = Visual.Type.Text,
125 NPatch = Visual.Type.NPatch,
126 SVG = Visual.Type.SVG,
127 AnimatedImage = Visual.Type.AnimatedImage
130 internal enum VisualAlignTypeExtension
132 TopBegin = Visual.AlignType.TopBegin,
133 TopCenter = Visual.AlignType.TopCenter,
134 TopEnd = Visual.AlignType.TopEnd,
135 CenterBegin = Visual.AlignType.CenterBegin,
136 Center = Visual.AlignType.Center,
137 CenterEnd = Visual.AlignType.CenterEnd,
138 BottomBegin = Visual.AlignType.BottomBegin,
139 BottomCenter = Visual.AlignType.BottomCenter,
140 BottomEnd = Visual.AlignType.BottomEnd