Merge "This patch is for refining dali application to support tizen c# application...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / TextLabel.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 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.9
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Dali {
28
29 public class TextLabel : View {
30   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31
32   internal TextLabel(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextLabel_SWIGUpcast(cPtr), cMemoryOwn) {
33     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34   }
35
36   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextLabel obj) {
37     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38   }
39
40   ~TextLabel() {
41     Dispose();
42   }
43
44   public override void Dispose() {
45     lock(this) {
46       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
47         if (swigCMemOwn) {
48           swigCMemOwn = false;
49           NDalicPINVOKE.delete_TextLabel(swigCPtr);
50         }
51         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
52       }
53       global::System.GC.SuppressFinalize(this);
54       base.Dispose();
55     }
56   }
57
58   public class Property : global::System.IDisposable {
59     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
60     protected bool swigCMemOwn;
61   
62     internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
63       swigCMemOwn = cMemoryOwn;
64       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
65     }
66   
67     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
68       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
69     }
70   
71     ~Property() {
72       Dispose();
73     }
74   
75     public virtual void Dispose() {
76       lock(this) {
77         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
78           if (swigCMemOwn) {
79             swigCMemOwn = false;
80             NDalicPINVOKE.delete_TextLabel_Property(swigCPtr);
81           }
82           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
83         }
84         global::System.GC.SuppressFinalize(this);
85       }
86     }
87   
88     public Property() : this(NDalicPINVOKE.new_TextLabel_Property(), true) {
89       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90     }
91   
92     public static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextLabel_Property_RENDERING_BACKEND_get();
93     public static readonly int TEXT = NDalicPINVOKE.TextLabel_Property_TEXT_get();
94     public static readonly int FONT_FAMILY = NDalicPINVOKE.TextLabel_Property_FONT_FAMILY_get();
95     public static readonly int FONT_STYLE = NDalicPINVOKE.TextLabel_Property_FONT_STYLE_get();
96     public static readonly int POINT_SIZE = NDalicPINVOKE.TextLabel_Property_POINT_SIZE_get();
97     public static readonly int MULTI_LINE = NDalicPINVOKE.TextLabel_Property_MULTI_LINE_get();
98     public static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextLabel_Property_HORIZONTAL_ALIGNMENT_get();
99     public static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextLabel_Property_VERTICAL_ALIGNMENT_get();
100     public static readonly int TEXT_COLOR = NDalicPINVOKE.TextLabel_Property_TEXT_COLOR_get();
101     public static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextLabel_Property_SHADOW_OFFSET_get();
102     public static readonly int SHADOW_COLOR = NDalicPINVOKE.TextLabel_Property_SHADOW_COLOR_get();
103     public static readonly int UNDERLINE_ENABLED = NDalicPINVOKE.TextLabel_Property_UNDERLINE_ENABLED_get();
104     public static readonly int UNDERLINE_COLOR = NDalicPINVOKE.TextLabel_Property_UNDERLINE_COLOR_get();
105     public static readonly int UNDERLINE_HEIGHT = NDalicPINVOKE.TextLabel_Property_UNDERLINE_HEIGHT_get();
106     public static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextLabel_Property_ENABLE_MARKUP_get();
107     public static readonly int ENABLE_AUTO_SCROLL = NDalicPINVOKE.TextLabel_Property_ENABLE_AUTO_SCROLL_get();
108     public static readonly int AUTO_SCROLL_SPEED = NDalicPINVOKE.TextLabel_Property_AUTO_SCROLL_SPEED_get();
109     public static readonly int AUTO_SCROLL_LOOP_COUNT = NDalicPINVOKE.TextLabel_Property_AUTO_SCROLL_LOOP_COUNT_get();
110     public static readonly int AUTO_SCROLL_GAP = NDalicPINVOKE.TextLabel_Property_AUTO_SCROLL_GAP_get();
111     public static readonly int LINE_SPACING = NDalicPINVOKE.TextLabel_Property_LINE_SPACING_get();
112     public static readonly int UNDERLINE = NDalicPINVOKE.TextLabel_Property_UNDERLINE_get();
113     public static readonly int SHADOW = NDalicPINVOKE.TextLabel_Property_SHADOW_get();
114     public static readonly int EMBOSS = NDalicPINVOKE.TextLabel_Property_EMBOSS_get();
115     public static readonly int OUTLINE = NDalicPINVOKE.TextLabel_Property_OUTLINE_get();
116   
117   }
118
119   public TextLabel () : this (NDalicPINVOKE.TextLabel_New__SWIG_0(), true) {
120       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121
122   }
123   public TextLabel (string text) : this (NDalicPINVOKE.TextLabel_New__SWIG_1(text), true) {
124       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
125
126   }
127   public TextLabel(TextLabel handle) : this(NDalicPINVOKE.new_TextLabel__SWIG_1(TextLabel.getCPtr(handle)), true) {
128     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
129   }
130
131   public TextLabel Assign(TextLabel handle) {
132     TextLabel ret = new TextLabel(NDalicPINVOKE.TextLabel_Assign(swigCPtr, TextLabel.getCPtr(handle)), false);
133     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
134     return ret;
135   }
136
137   public new static TextLabel DownCast(BaseHandle handle) {
138     TextLabel ret = new TextLabel(NDalicPINVOKE.TextLabel_DownCast(BaseHandle.getCPtr(handle)), true);
139     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140     return ret;
141   }
142
143   public enum PropertyRange {
144     PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
145     PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000
146   }
147
148   public int RenderingBackend 
149   { 
150     get 
151     {
152       int temp = 0;
153       GetProperty( TextLabel.Property.RENDERING_BACKEND).Get( ref temp );
154       return temp;
155     }
156     set 
157     { 
158       SetProperty( TextLabel.Property.RENDERING_BACKEND, new Dali.Property.Value( value ) );
159     }
160   }
161   public string Text 
162   { 
163     get 
164     {
165       string temp;
166       GetProperty( TextLabel.Property.TEXT).Get( out temp );
167       return temp;
168     }
169     set 
170     { 
171       SetProperty( TextLabel.Property.TEXT, new Dali.Property.Value( value ) );
172     }
173   }
174   public string FontFamily 
175   { 
176     get 
177     {
178       string temp;
179       GetProperty( TextLabel.Property.FONT_FAMILY).Get( out temp );
180       return temp;
181     }
182     set 
183     { 
184       SetProperty( TextLabel.Property.FONT_FAMILY, new Dali.Property.Value( value ) );
185     }
186   }
187   public string FontStyle 
188   { 
189     get 
190     {
191       string temp;
192       GetProperty( TextLabel.Property.FONT_STYLE).Get( out temp );
193       return temp;
194     }
195     set 
196     { 
197       SetProperty( TextLabel.Property.FONT_STYLE, new Dali.Property.Value( value ) );
198     }
199   }
200   public float PointSize 
201   { 
202     get 
203     {
204       float temp = 0.0f;
205       GetProperty( TextLabel.Property.POINT_SIZE).Get( ref temp );
206       return temp;
207     }
208     set 
209     { 
210       SetProperty( TextLabel.Property.POINT_SIZE, new Dali.Property.Value( value ) );
211     }
212   }
213   public bool MultiLine 
214   { 
215     get 
216     {
217       bool temp = false;
218       GetProperty( TextLabel.Property.MULTI_LINE).Get( ref temp );
219       return temp;
220     }
221     set 
222     { 
223       SetProperty( TextLabel.Property.MULTI_LINE, new Dali.Property.Value( value ) );
224     }
225   }
226   public string HorizontalAlignment 
227   { 
228     get 
229     {
230       string temp;
231       GetProperty( TextLabel.Property.HORIZONTAL_ALIGNMENT).Get( out temp );
232       return temp;
233     }
234     set 
235     { 
236       SetProperty( TextLabel.Property.HORIZONTAL_ALIGNMENT, new Dali.Property.Value( value ) );
237     }
238   }
239   public string VerticalAlignment 
240   { 
241     get 
242     {
243       string temp;
244       GetProperty( TextLabel.Property.VERTICAL_ALIGNMENT).Get( out temp );
245       return temp;
246     }
247     set 
248     { 
249       SetProperty( TextLabel.Property.VERTICAL_ALIGNMENT, new Dali.Property.Value( value ) );
250     }
251   }
252   public Vector4 TextColor 
253   { 
254     get 
255     {
256       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
257       GetProperty( TextLabel.Property.TEXT_COLOR).Get(  temp );
258       return temp;
259     }
260     set 
261     { 
262       SetProperty( TextLabel.Property.TEXT_COLOR, new Dali.Property.Value( value ) );
263     }
264   }
265   public Vector2 ShadowOffset 
266   { 
267     get 
268     {
269       Vector2 temp = new Vector2(0.0f,0.0f);
270       GetProperty( TextLabel.Property.SHADOW_OFFSET).Get(  temp );
271       return temp;
272     }
273     set 
274     { 
275       SetProperty( TextLabel.Property.SHADOW_OFFSET, new Dali.Property.Value( value ) );
276     }
277   }
278   public Vector4 ShadowColor 
279   { 
280     get 
281     {
282       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
283       GetProperty( TextLabel.Property.SHADOW_COLOR).Get(  temp );
284       return temp;
285     }
286     set 
287     { 
288       SetProperty( TextLabel.Property.SHADOW_COLOR, new Dali.Property.Value( value ) );
289     }
290   }
291   public bool UnderlineEnabled 
292   { 
293     get 
294     {
295       bool temp = false;
296       GetProperty( TextLabel.Property.UNDERLINE_ENABLED).Get( ref temp );
297       return temp;
298     }
299     set 
300     { 
301       SetProperty( TextLabel.Property.UNDERLINE_ENABLED, new Dali.Property.Value( value ) );
302     }
303   }
304   public Vector4 UnderlineColor 
305   { 
306     get 
307     {
308       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
309       GetProperty( TextLabel.Property.UNDERLINE_COLOR).Get(  temp );
310       return temp;
311     }
312     set 
313     { 
314       SetProperty( TextLabel.Property.UNDERLINE_COLOR, new Dali.Property.Value( value ) );
315     }
316   }
317   public float UnderlineHeight 
318   { 
319     get 
320     {
321       float temp = 0.0f;
322       GetProperty( TextLabel.Property.UNDERLINE_HEIGHT).Get( ref temp );
323       return temp;
324     }
325     set 
326     { 
327       SetProperty( TextLabel.Property.UNDERLINE_HEIGHT, new Dali.Property.Value( value ) );
328     }
329   }
330   public bool EnableMarkup 
331   { 
332     get 
333     {
334       bool temp = false;
335       GetProperty( TextLabel.Property.ENABLE_MARKUP).Get( ref temp );
336       return temp;
337     }
338     set 
339     { 
340       SetProperty( TextLabel.Property.ENABLE_MARKUP, new Dali.Property.Value( value ) );
341     }
342   }
343   public bool EnableAutoScroll 
344   { 
345     get 
346     {
347       bool temp = false;
348       GetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL).Get( ref temp );
349       return temp;
350     }
351     set 
352     { 
353       SetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL, new Dali.Property.Value( value ) );
354     }
355   }
356   public int AutoScrollSpeed 
357   { 
358     get 
359     {
360       int temp = 0;
361       GetProperty( TextLabel.Property.AUTO_SCROLL_SPEED).Get( ref temp );
362       return temp;
363     }
364     set 
365     { 
366       SetProperty( TextLabel.Property.AUTO_SCROLL_SPEED, new Dali.Property.Value( value ) );
367     }
368   }
369   public int AutoScrollLoopCount 
370   { 
371     get 
372     {
373       int temp = 0;
374       GetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT).Get( ref temp );
375       return temp;
376     }
377     set 
378     { 
379       SetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT, new Dali.Property.Value( value ) );
380     }
381   }
382   public float AutoScrollGap 
383   { 
384     get 
385     {
386       float temp = 0.0f;
387       GetProperty( TextLabel.Property.AUTO_SCROLL_GAP).Get( ref temp );
388       return temp;
389     }
390     set 
391     { 
392       SetProperty( TextLabel.Property.AUTO_SCROLL_GAP, new Dali.Property.Value( value ) );
393     }
394   }
395   public float LineSpacing 
396   { 
397     get 
398     {
399       float temp = 0.0f;
400       GetProperty( TextLabel.Property.LINE_SPACING).Get( ref temp );
401       return temp;
402     }
403     set 
404     { 
405       SetProperty( TextLabel.Property.LINE_SPACING, new Dali.Property.Value( value ) );
406     }
407   }
408   public string Underline 
409   { 
410     get 
411     {
412       string temp;
413       GetProperty( TextLabel.Property.UNDERLINE).Get( out temp );
414       return temp;
415     }
416     set 
417     { 
418       SetProperty( TextLabel.Property.UNDERLINE, new Dali.Property.Value( value ) );
419     }
420   }
421   public string Shadow 
422   { 
423     get 
424     {
425       string temp;
426       GetProperty( TextLabel.Property.SHADOW).Get( out temp );
427       return temp;
428     }
429     set 
430     { 
431       SetProperty( TextLabel.Property.SHADOW, new Dali.Property.Value( value ) );
432     }
433   }
434   public string Emboss 
435   { 
436     get 
437     {
438       string temp;
439       GetProperty( TextLabel.Property.EMBOSS).Get( out temp );
440       return temp;
441     }
442     set 
443     { 
444       SetProperty( TextLabel.Property.EMBOSS, new Dali.Property.Value( value ) );
445     }
446   }
447   public string Outline 
448   { 
449     get 
450     {
451       string temp;
452       GetProperty( TextLabel.Property.OUTLINE).Get( out temp );
453       return temp;
454     }
455     set 
456     { 
457       SetProperty( TextLabel.Property.OUTLINE, new Dali.Property.Value( value ) );
458     }
459   }
460
461 }
462
463 }