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