Separate C# classes into Internal and Public
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / public / 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 (!Window.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
65   {
66     public static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextLabel_Property_RENDERING_BACKEND_get();
67     public static readonly int TEXT = NDalicPINVOKE.TextLabel_Property_TEXT_get();
68     public static readonly int FONT_FAMILY = NDalicPINVOKE.TextLabel_Property_FONT_FAMILY_get();
69     public static readonly int FONT_STYLE = NDalicPINVOKE.TextLabel_Property_FONT_STYLE_get();
70     public static readonly int POINT_SIZE = NDalicPINVOKE.TextLabel_Property_POINT_SIZE_get();
71     public static readonly int MULTI_LINE = NDalicPINVOKE.TextLabel_Property_MULTI_LINE_get();
72     public static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextLabel_Property_HORIZONTAL_ALIGNMENT_get();
73     public static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextLabel_Property_VERTICAL_ALIGNMENT_get();
74     public static readonly int TEXT_COLOR = NDalicPINVOKE.TextLabel_Property_TEXT_COLOR_get();
75     public static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextLabel_Property_SHADOW_OFFSET_get();
76     public static readonly int SHADOW_COLOR = NDalicPINVOKE.TextLabel_Property_SHADOW_COLOR_get();
77     public static readonly int UNDERLINE_ENABLED = NDalicPINVOKE.TextLabel_Property_UNDERLINE_ENABLED_get();
78     public static readonly int UNDERLINE_COLOR = NDalicPINVOKE.TextLabel_Property_UNDERLINE_COLOR_get();
79     public static readonly int UNDERLINE_HEIGHT = NDalicPINVOKE.TextLabel_Property_UNDERLINE_HEIGHT_get();
80     public static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextLabel_Property_ENABLE_MARKUP_get();
81     public static readonly int ENABLE_AUTO_SCROLL = NDalicPINVOKE.TextLabel_Property_ENABLE_AUTO_SCROLL_get();
82     public static readonly int AUTO_SCROLL_SPEED = NDalicPINVOKE.TextLabel_Property_AUTO_SCROLL_SPEED_get();
83     public static readonly int AUTO_SCROLL_LOOP_COUNT = NDalicPINVOKE.TextLabel_Property_AUTO_SCROLL_LOOP_COUNT_get();
84     public static readonly int AUTO_SCROLL_GAP = NDalicPINVOKE.TextLabel_Property_AUTO_SCROLL_GAP_get();
85     public static readonly int LINE_SPACING = NDalicPINVOKE.TextLabel_Property_LINE_SPACING_get();
86     public static readonly int UNDERLINE = NDalicPINVOKE.TextLabel_Property_UNDERLINE_get();
87     public static readonly int SHADOW = NDalicPINVOKE.TextLabel_Property_SHADOW_get();
88     public static readonly int EMBOSS = NDalicPINVOKE.TextLabel_Property_EMBOSS_get();
89     public static readonly int OUTLINE = NDalicPINVOKE.TextLabel_Property_OUTLINE_get();
90   }
91
92   public TextLabel () : this (NDalicPINVOKE.TextLabel_New__SWIG_0(), true) {
93       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
94
95   }
96   public TextLabel (string text) : this (NDalicPINVOKE.TextLabel_New__SWIG_1(text), true) {
97       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
98
99   }
100   public TextLabel(TextLabel handle) : this(NDalicPINVOKE.new_TextLabel__SWIG_1(TextLabel.getCPtr(handle)), true) {
101     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
102   }
103
104   internal new static TextLabel DownCast(BaseHandle handle) {
105     TextLabel ret = new TextLabel(NDalicPINVOKE.TextLabel_DownCast(BaseHandle.getCPtr(handle)), true);
106     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107     return ret;
108   }
109
110   public string Text
111   {
112     get
113     {
114       string temp;
115       GetProperty( TextLabel.Property.TEXT).Get( out temp );
116       return temp;
117     }
118     set
119     {
120       SetProperty( TextLabel.Property.TEXT, new Dali.Property.Value( value ) );
121     }
122   }
123   public string FontFamily
124   {
125     get
126     {
127       string temp;
128       GetProperty( TextLabel.Property.FONT_FAMILY).Get( out temp );
129       return temp;
130     }
131     set
132     {
133       SetProperty( TextLabel.Property.FONT_FAMILY, new Dali.Property.Value( value ) );
134     }
135   }
136   public Dali.Property.Map FontStyle
137   {
138     get
139     {
140       Dali.Property.Map temp = new Dali.Property.Map();
141       GetProperty( TextLabel.Property.FONT_STYLE).Get(  temp );
142       return temp;
143     }
144     set
145     {
146       SetProperty( TextLabel.Property.FONT_STYLE, new Dali.Property.Value( value ) );
147     }
148   }
149   public float PointSize
150   {
151     get
152     {
153       float temp = 0.0f;
154       GetProperty( TextLabel.Property.POINT_SIZE).Get( out temp );
155       return temp;
156     }
157     set
158     {
159       SetProperty( TextLabel.Property.POINT_SIZE, new Dali.Property.Value( value ) );
160     }
161   }
162   public bool MultiLine
163   {
164     get
165     {
166       bool temp = false;
167       GetProperty( TextLabel.Property.MULTI_LINE).Get( out temp );
168       return temp;
169     }
170     set
171     {
172       SetProperty( TextLabel.Property.MULTI_LINE, new Dali.Property.Value( value ) );
173     }
174   }
175   public string HorizontalAlignment
176   {
177     get
178     {
179       string temp;
180       GetProperty( TextLabel.Property.HORIZONTAL_ALIGNMENT).Get( out temp );
181       return temp;
182     }
183     set
184     {
185       SetProperty( TextLabel.Property.HORIZONTAL_ALIGNMENT, new Dali.Property.Value( value ) );
186     }
187   }
188   public string VerticalAlignment
189   {
190     get
191     {
192       string temp;
193       GetProperty( TextLabel.Property.VERTICAL_ALIGNMENT).Get( out temp );
194       return temp;
195     }
196     set
197     {
198       SetProperty( TextLabel.Property.VERTICAL_ALIGNMENT, new Dali.Property.Value( value ) );
199     }
200   }
201   public Vector4 TextColor
202   {
203     get
204     {
205       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
206       GetProperty( TextLabel.Property.TEXT_COLOR).Get(  temp );
207       return temp;
208     }
209     set
210     {
211       SetProperty( TextLabel.Property.TEXT_COLOR, new Dali.Property.Value( value ) );
212     }
213   }
214   public Vector2 ShadowOffset
215   {
216     get
217     {
218       Vector2 temp = new Vector2(0.0f,0.0f);
219       GetProperty( TextLabel.Property.SHADOW_OFFSET).Get(  temp );
220       return temp;
221     }
222     set
223     {
224       SetProperty( TextLabel.Property.SHADOW_OFFSET, new Dali.Property.Value( value ) );
225     }
226   }
227   public Vector4 ShadowColor
228   {
229     get
230     {
231       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
232       GetProperty( TextLabel.Property.SHADOW_COLOR).Get(  temp );
233       return temp;
234     }
235     set
236     {
237       SetProperty( TextLabel.Property.SHADOW_COLOR, new Dali.Property.Value( value ) );
238     }
239   }
240   public bool UnderlineEnabled
241   {
242     get
243     {
244       bool temp = false;
245       GetProperty( TextLabel.Property.UNDERLINE_ENABLED).Get( out temp );
246       return temp;
247     }
248     set
249     {
250       SetProperty( TextLabel.Property.UNDERLINE_ENABLED, new Dali.Property.Value( value ) );
251     }
252   }
253   public Vector4 UnderlineColor
254   {
255     get
256     {
257       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
258       GetProperty( TextLabel.Property.UNDERLINE_COLOR).Get(  temp );
259       return temp;
260     }
261     set
262     {
263       SetProperty( TextLabel.Property.UNDERLINE_COLOR, new Dali.Property.Value( value ) );
264     }
265   }
266   public float UnderlineHeight
267   {
268     get
269     {
270       float temp = 0.0f;
271       GetProperty( TextLabel.Property.UNDERLINE_HEIGHT).Get( out temp );
272       return temp;
273     }
274     set
275     {
276       SetProperty( TextLabel.Property.UNDERLINE_HEIGHT, new Dali.Property.Value( value ) );
277     }
278   }
279   public bool EnableMarkup
280   {
281     get
282     {
283       bool temp = false;
284       GetProperty( TextLabel.Property.ENABLE_MARKUP).Get( out temp );
285       return temp;
286     }
287     set
288     {
289       SetProperty( TextLabel.Property.ENABLE_MARKUP, new Dali.Property.Value( value ) );
290     }
291   }
292   public bool EnableAutoScroll
293   {
294     get
295     {
296       bool temp = false;
297       GetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL).Get( out temp );
298       return temp;
299     }
300     set
301     {
302       SetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL, new Dali.Property.Value( value ) );
303     }
304   }
305   public int AutoScrollSpeed
306   {
307     get
308     {
309       int temp = 0;
310       GetProperty( TextLabel.Property.AUTO_SCROLL_SPEED).Get( out temp );
311       return temp;
312     }
313     set
314     {
315       SetProperty( TextLabel.Property.AUTO_SCROLL_SPEED, new Dali.Property.Value( value ) );
316     }
317   }
318   public int AutoScrollLoopCount
319   {
320     get
321     {
322       int temp = 0;
323       GetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT).Get( out temp );
324       return temp;
325     }
326     set
327     {
328       SetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT, new Dali.Property.Value( value ) );
329     }
330   }
331   public float AutoScrollGap
332   {
333     get
334     {
335       float temp = 0.0f;
336       GetProperty( TextLabel.Property.AUTO_SCROLL_GAP).Get( out temp );
337       return temp;
338     }
339     set
340     {
341       SetProperty( TextLabel.Property.AUTO_SCROLL_GAP, new Dali.Property.Value( value ) );
342     }
343   }
344   public float LineSpacing
345   {
346     get
347     {
348       float temp = 0.0f;
349       GetProperty( TextLabel.Property.LINE_SPACING).Get( out temp );
350       return temp;
351     }
352     set
353     {
354       SetProperty( TextLabel.Property.LINE_SPACING, new Dali.Property.Value( value ) );
355     }
356   }
357   public Dali.Property.Map Underline
358   {
359     get
360     {
361       Dali.Property.Map temp = new Dali.Property.Map();
362       GetProperty( TextLabel.Property.UNDERLINE).Get(  temp );
363       return temp;
364     }
365     set
366     {
367       SetProperty( TextLabel.Property.UNDERLINE, new Dali.Property.Value( value ) );
368     }
369   }
370   public Dali.Property.Map Shadow
371   {
372     get
373     {
374       Dali.Property.Map temp = new Dali.Property.Map();
375       GetProperty( TextLabel.Property.SHADOW).Get(  temp );
376       return temp;
377     }
378     set
379     {
380       SetProperty( TextLabel.Property.SHADOW, new Dali.Property.Value( value ) );
381     }
382   }
383   public Dali.Property.Map Emboss
384   {
385     get
386     {
387       Dali.Property.Map temp = new Dali.Property.Map();
388       GetProperty( TextLabel.Property.EMBOSS).Get(  temp );
389       return temp;
390     }
391     set
392     {
393       SetProperty( TextLabel.Property.EMBOSS, new Dali.Property.Value( value ) );
394     }
395   }
396   public Dali.Property.Map Outline
397   {
398     get
399     {
400       Dali.Property.Map temp = new Dali.Property.Map();
401       GetProperty( TextLabel.Property.OUTLINE).Get(  temp );
402       return temp;
403     }
404     set
405     {
406       SetProperty( TextLabel.Property.OUTLINE, new Dali.Property.Value( value ) );
407     }
408   }
409
410 }
411
412 }