2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 %define TextLabel_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
21 /* Properties earlier added by Ruby Script */
23 public int RenderingBackend
28 GetProperty( TextLabel.Property.RENDERING_BACKEND).Get( ref temp );
33 SetProperty( TextLabel.Property.RENDERING_BACKEND, new Dali.Property.Value( value ) );
41 GetProperty( TextLabel.Property.TEXT).Get( out temp );
46 SetProperty( TextLabel.Property.TEXT, new Dali.Property.Value( value ) );
49 public string FontFamily
54 GetProperty( TextLabel.Property.FONT_FAMILY).Get( out temp );
59 SetProperty( TextLabel.Property.FONT_FAMILY, new Dali.Property.Value( value ) );
62 public Dali.Property.Map FontStyle
66 Dali.Property.Map temp = new Dali.Property.Map();
67 GetProperty( TextLabel.Property.FONT_STYLE).Get( temp );
72 SetProperty( TextLabel.Property.FONT_STYLE, new Dali.Property.Value( value ) );
75 public float PointSize
80 GetProperty( TextLabel.Property.POINT_SIZE).Get( ref temp );
85 SetProperty( TextLabel.Property.POINT_SIZE, new Dali.Property.Value( value ) );
93 GetProperty( TextLabel.Property.MULTI_LINE).Get( ref temp );
98 SetProperty( TextLabel.Property.MULTI_LINE, new Dali.Property.Value( value ) );
101 public string HorizontalAlignment
106 GetProperty( TextLabel.Property.HORIZONTAL_ALIGNMENT).Get( out temp );
111 SetProperty( TextLabel.Property.HORIZONTAL_ALIGNMENT, new Dali.Property.Value( value ) );
114 public string VerticalAlignment
119 GetProperty( TextLabel.Property.VERTICAL_ALIGNMENT).Get( out temp );
124 SetProperty( TextLabel.Property.VERTICAL_ALIGNMENT, new Dali.Property.Value( value ) );
127 public Dali.CSharp.Color TextColor
131 Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
132 GetProperty( TextLabel.Property.TEXT_COLOR).Get( temp );
133 Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
138 SetProperty( TextLabel.Property.TEXT_COLOR, new Dali.Property.Value( value ) );
141 public Dali.CSharp.Size ShadowOffset
145 Vector2 temp = new Vector2(0.0f,0.0f);
146 GetProperty( TextLabel.Property.SHADOW_OFFSET).Get( temp );
147 Dali.CSharp.Size ret = new Dali.CSharp.Size(temp.x, temp.y);
152 SetProperty( TextLabel.Property.SHADOW_OFFSET, new Dali.Property.Value( value ) );
155 public Dali.CSharp.Color ShadowColor
159 Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
160 GetProperty( TextLabel.Property.SHADOW_COLOR).Get( temp );
161 Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
166 SetProperty( TextLabel.Property.SHADOW_COLOR, new Dali.Property.Value( value ) );
169 public bool UnderlineEnabled
174 GetProperty( TextLabel.Property.UNDERLINE_ENABLED).Get( ref temp );
179 SetProperty( TextLabel.Property.UNDERLINE_ENABLED, new Dali.Property.Value( value ) );
182 public Dali.CSharp.Color UnderlineColor
186 Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
187 GetProperty( TextLabel.Property.UNDERLINE_COLOR).Get( temp );
188 Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
193 SetProperty( TextLabel.Property.UNDERLINE_COLOR, new Dali.Property.Value( value ) );
196 public float UnderlineHeight
201 GetProperty( TextLabel.Property.UNDERLINE_HEIGHT).Get( ref temp );
206 SetProperty( TextLabel.Property.UNDERLINE_HEIGHT, new Dali.Property.Value( value ) );
209 public bool EnableMarkup
214 GetProperty( TextLabel.Property.ENABLE_MARKUP).Get( ref temp );
219 SetProperty( TextLabel.Property.ENABLE_MARKUP, new Dali.Property.Value( value ) );
222 public bool EnableAutoScroll
227 GetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL).Get( ref temp );
232 SetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL, new Dali.Property.Value( value ) );
235 public int AutoScrollSpeed
240 GetProperty( TextLabel.Property.AUTO_SCROLL_SPEED).Get( ref temp );
245 SetProperty( TextLabel.Property.AUTO_SCROLL_SPEED, new Dali.Property.Value( value ) );
248 public int AutoScrollLoopCount
253 GetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT).Get( ref temp );
258 SetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT, new Dali.Property.Value( value ) );
261 public float AutoScrollGap
266 GetProperty( TextLabel.Property.AUTO_SCROLL_GAP).Get( ref temp );
271 SetProperty( TextLabel.Property.AUTO_SCROLL_GAP, new Dali.Property.Value( value ) );
274 public float LineSpacing
279 GetProperty( TextLabel.Property.LINE_SPACING).Get( ref temp );
284 SetProperty( TextLabel.Property.LINE_SPACING, new Dali.Property.Value( value ) );
287 public Dali.Property.Map Underline
291 Dali.Property.Map temp = new Dali.Property.Map();
292 GetProperty( TextLabel.Property.UNDERLINE).Get( temp );
297 SetProperty( TextLabel.Property.UNDERLINE, new Dali.Property.Value( value ) );
300 public Dali.Property.Map Shadow
304 Dali.Property.Map temp = new Dali.Property.Map();
305 GetProperty( TextLabel.Property.SHADOW).Get( temp );
310 SetProperty( TextLabel.Property.SHADOW, new Dali.Property.Value( value ) );
313 public Dali.Property.Map Emboss
317 Dali.Property.Map temp = new Dali.Property.Map();
318 GetProperty( TextLabel.Property.EMBOSS).Get( temp );
323 SetProperty( TextLabel.Property.EMBOSS, new Dali.Property.Value( value ) );
326 public Dali.Property.Map Outline
330 Dali.Property.Map temp = new Dali.Property.Map();
331 GetProperty( TextLabel.Property.OUTLINE).Get( temp );
336 SetProperty( TextLabel.Property.OUTLINE, new Dali.Property.Value( value ) );
340 /* Properties ends */
346 TextLabel_PROPERTIES_HELPER(Dali::Toolkit, TextLabel);