Switch Sync- and AsynchImageLoaders to use new (object less) image loading adaptor API
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / textLabel.i
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 %define TextLabel_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
20
21 /* Properties earlier added by Ruby Script */
22
23   public int RenderingBackend
24   {
25     get
26     {
27       int temp = 0;
28       GetProperty( TextLabel.Property.RENDERING_BACKEND).Get( ref temp );
29       return temp;
30     }
31     set
32     {
33       SetProperty( TextLabel.Property.RENDERING_BACKEND, new Dali.Property.Value( value ) );
34     }
35   }
36   public string Text
37   {
38     get
39     {
40       string temp;
41       GetProperty( TextLabel.Property.TEXT).Get( out temp );
42       return temp;
43     }
44     set
45     {
46       SetProperty( TextLabel.Property.TEXT, new Dali.Property.Value( value ) );
47     }
48   }
49   public string FontFamily
50   {
51     get
52     {
53       string temp;
54       GetProperty( TextLabel.Property.FONT_FAMILY).Get( out temp );
55       return temp;
56     }
57     set
58     {
59       SetProperty( TextLabel.Property.FONT_FAMILY, new Dali.Property.Value( value ) );
60     }
61   }
62   public Dali.Property.Map FontStyle
63   {
64     get
65     {
66       Dali.Property.Map temp = new Dali.Property.Map();
67       GetProperty( TextLabel.Property.FONT_STYLE).Get(  temp );
68       return temp;
69     }
70     set
71     {
72       SetProperty( TextLabel.Property.FONT_STYLE, new Dali.Property.Value( value ) );
73     }
74   }
75   public float PointSize
76   {
77     get
78     {
79       float temp = 0.0f;
80       GetProperty( TextLabel.Property.POINT_SIZE).Get( ref temp );
81       return temp;
82     }
83     set
84     {
85       SetProperty( TextLabel.Property.POINT_SIZE, new Dali.Property.Value( value ) );
86     }
87   }
88   public bool MultiLine
89   {
90     get
91     {
92       bool temp = false;
93       GetProperty( TextLabel.Property.MULTI_LINE).Get( ref temp );
94       return temp;
95     }
96     set
97     {
98       SetProperty( TextLabel.Property.MULTI_LINE, new Dali.Property.Value( value ) );
99     }
100   }
101   public string HorizontalAlignment
102   {
103     get
104     {
105       string temp;
106       GetProperty( TextLabel.Property.HORIZONTAL_ALIGNMENT).Get( out temp );
107       return temp;
108     }
109     set
110     {
111       SetProperty( TextLabel.Property.HORIZONTAL_ALIGNMENT, new Dali.Property.Value( value ) );
112     }
113   }
114   public string VerticalAlignment
115   {
116     get
117     {
118       string temp;
119       GetProperty( TextLabel.Property.VERTICAL_ALIGNMENT).Get( out temp );
120       return temp;
121     }
122     set
123     {
124       SetProperty( TextLabel.Property.VERTICAL_ALIGNMENT, new Dali.Property.Value( value ) );
125     }
126   }
127   public Dali.CSharp.Color TextColor
128   {
129     get
130     {
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);
134       return ret;
135     }
136     set
137     {
138       SetProperty( TextLabel.Property.TEXT_COLOR, new Dali.Property.Value( value ) );
139     }
140   }
141   public Dali.CSharp.Size ShadowOffset
142   {
143     get
144     {
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);
148       return ret;
149     }
150     set
151     {
152       SetProperty( TextLabel.Property.SHADOW_OFFSET, new Dali.Property.Value( value ) );
153     }
154   }
155   public Dali.CSharp.Color ShadowColor
156   {
157     get
158     {
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);
162       return ret;
163     }
164     set
165     {
166       SetProperty( TextLabel.Property.SHADOW_COLOR, new Dali.Property.Value( value ) );
167     }
168   }
169   public bool UnderlineEnabled
170   {
171     get
172     {
173       bool temp = false;
174       GetProperty( TextLabel.Property.UNDERLINE_ENABLED).Get( ref temp );
175       return temp;
176     }
177     set
178     {
179       SetProperty( TextLabel.Property.UNDERLINE_ENABLED, new Dali.Property.Value( value ) );
180     }
181   }
182   public Dali.CSharp.Color UnderlineColor
183   {
184     get
185     {
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);
189       return ret;
190     }
191     set
192     {
193       SetProperty( TextLabel.Property.UNDERLINE_COLOR, new Dali.Property.Value( value ) );
194     }
195   }
196   public float UnderlineHeight
197   {
198     get
199     {
200       float temp = 0.0f;
201       GetProperty( TextLabel.Property.UNDERLINE_HEIGHT).Get( ref temp );
202       return temp;
203     }
204     set
205     {
206       SetProperty( TextLabel.Property.UNDERLINE_HEIGHT, new Dali.Property.Value( value ) );
207     }
208   }
209   public bool EnableMarkup
210   {
211     get
212     {
213       bool temp = false;
214       GetProperty( TextLabel.Property.ENABLE_MARKUP).Get( ref temp );
215       return temp;
216     }
217     set
218     {
219       SetProperty( TextLabel.Property.ENABLE_MARKUP, new Dali.Property.Value( value ) );
220     }
221   }
222   public bool EnableAutoScroll
223   {
224     get
225     {
226       bool temp = false;
227       GetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL).Get( ref temp );
228       return temp;
229     }
230     set
231     {
232       SetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL, new Dali.Property.Value( value ) );
233     }
234   }
235   public int AutoScrollSpeed
236   {
237     get
238     {
239       int temp = 0;
240       GetProperty( TextLabel.Property.AUTO_SCROLL_SPEED).Get( ref temp );
241       return temp;
242     }
243     set
244     {
245       SetProperty( TextLabel.Property.AUTO_SCROLL_SPEED, new Dali.Property.Value( value ) );
246     }
247   }
248   public int AutoScrollLoopCount
249   {
250     get
251     {
252       int temp = 0;
253       GetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT).Get( ref temp );
254       return temp;
255     }
256     set
257     {
258       SetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT, new Dali.Property.Value( value ) );
259     }
260   }
261   public float AutoScrollGap
262   {
263     get
264     {
265       float temp = 0.0f;
266       GetProperty( TextLabel.Property.AUTO_SCROLL_GAP).Get( ref temp );
267       return temp;
268     }
269     set
270     {
271       SetProperty( TextLabel.Property.AUTO_SCROLL_GAP, new Dali.Property.Value( value ) );
272     }
273   }
274   public float LineSpacing
275   {
276     get
277     {
278       float temp = 0.0f;
279       GetProperty( TextLabel.Property.LINE_SPACING).Get( ref temp );
280       return temp;
281     }
282     set
283     {
284       SetProperty( TextLabel.Property.LINE_SPACING, new Dali.Property.Value( value ) );
285     }
286   }
287   public Dali.Property.Map Underline
288   {
289     get
290     {
291       Dali.Property.Map temp = new Dali.Property.Map();
292       GetProperty( TextLabel.Property.UNDERLINE).Get(  temp );
293       return temp;
294     }
295     set
296     {
297       SetProperty( TextLabel.Property.UNDERLINE, new Dali.Property.Value( value ) );
298     }
299   }
300   public Dali.Property.Map Shadow
301   {
302     get
303     {
304       Dali.Property.Map temp = new Dali.Property.Map();
305       GetProperty( TextLabel.Property.SHADOW).Get(  temp );
306       return temp;
307     }
308     set
309     {
310       SetProperty( TextLabel.Property.SHADOW, new Dali.Property.Value( value ) );
311     }
312   }
313   public Dali.Property.Map Emboss
314   {
315     get
316     {
317       Dali.Property.Map temp = new Dali.Property.Map();
318       GetProperty( TextLabel.Property.EMBOSS).Get(  temp );
319       return temp;
320     }
321     set
322     {
323       SetProperty( TextLabel.Property.EMBOSS, new Dali.Property.Value( value ) );
324     }
325   }
326   public Dali.Property.Map Outline
327   {
328     get
329     {
330       Dali.Property.Map temp = new Dali.Property.Map();
331       GetProperty( TextLabel.Property.OUTLINE).Get(  temp );
332       return temp;
333     }
334     set
335     {
336       SetProperty( TextLabel.Property.OUTLINE, new Dali.Property.Value( value ) );
337     }
338   }
339
340 /* Properties ends */
341 %}
342 %enddef
343
344 namespace Dali
345 {
346   TextLabel_PROPERTIES_HELPER(Dali::Toolkit, TextLabel);
347 }