Manual merge for nui v0.2.35.
[platform/core/csapi/nui.git] / Tizen.NUI / src / public / UIComponents / TextEditor.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.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 Tizen.NUI.UIComponents
28 {
29
30     using System;
31     using System.Runtime.InteropServices;
32
33     /// <summary>
34     /// A control which provides a multi-line editable text editor.
35     /// </summary>
36     public class TextEditor : View
37     {
38         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
39
40         internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)
41         {
42             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
43         }
44
45         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
46         {
47             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48         }
49
50         ~TextEditor()
51         {
52             DisposeQueue.Instance.Add(this);
53         }
54
55         /// <summary>
56         /// Dispose.
57         /// </summary>
58         public override void Dispose()
59         {
60             if (!Stage.IsInstalled())
61             {
62                 DisposeQueue.Instance.Add(this);
63                 return;
64             }
65
66             lock (this)
67             {
68                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
69                 {
70                     if (swigCMemOwn)
71                     {
72                         swigCMemOwn = false;
73                         NDalicPINVOKE.delete_TextEditor(swigCPtr);
74                     }
75                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
76                 }
77                 global::System.GC.SuppressFinalize(this);
78                 base.Dispose();
79             }
80         }
81
82
83
84         /// <summary>
85         /// Event arguments that passed via TextChanged signal.
86         /// </summary>
87         public class TextChangedEventArgs : EventArgs
88         {
89             private TextEditor _textEditor;
90
91             /// <summary>
92             /// TextEditor - is the texteditor control which has the text contents changed.
93             /// </summary>
94             public TextEditor TextEditor
95             {
96                 get
97                 {
98                     return _textEditor;
99                 }
100                 set
101                 {
102                     _textEditor = value;
103                 }
104             }
105         }
106
107         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
108         private delegate void TextChangedCallbackDelegate(IntPtr textEditor);
109         private EventHandler<TextChangedEventArgs> _textEditorTextChangedEventHandler;
110         private TextChangedCallbackDelegate _textEditorTextChangedCallbackDelegate;
111
112         /// <summary>
113         /// Event for TextChanged signal which can be used to subscribe/unsubscribe the event handler
114         /// provided by the user. TextChanged signal is emitted when the text changes.<br>
115         /// </summary>
116         public event EventHandler<TextChangedEventArgs> TextChanged
117         {
118             add
119             {
120                 if (_textEditorTextChangedEventHandler == null)
121                 {
122                     _textEditorTextChangedCallbackDelegate = (OnTextChanged);
123                     TextChangedSignal().Connect(_textEditorTextChangedCallbackDelegate);
124                 }
125                 _textEditorTextChangedEventHandler += value;
126             }
127             remove
128             {
129                 _textEditorTextChangedEventHandler -= value;
130                 if (_textEditorTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
131                 {
132                     TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
133                 }
134             }
135         }
136
137         private void OnTextChanged(IntPtr textEditor)
138         {
139             TextChangedEventArgs e = new TextChangedEventArgs();
140
141             // Populate all members of "e" (TextChangedEventArgs) with real data
142             e.TextEditor = Tizen.NUI.UIComponents.TextEditor.GetTextEditorFromPtr(textEditor);
143
144             if (_textEditorTextChangedEventHandler != null)
145             {
146                 //here we send all data to user event handlers
147                 _textEditorTextChangedEventHandler(this, e);
148             }
149
150         }
151
152         internal static TextEditor GetTextEditorFromPtr(global::System.IntPtr cPtr)
153         {
154             TextEditor ret = new TextEditor(cPtr, false);
155             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156             return ret;
157         }
158
159
160         internal class Property : global::System.IDisposable
161         {
162             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
163             protected bool swigCMemOwn;
164
165             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
166             {
167                 swigCMemOwn = cMemoryOwn;
168                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
169             }
170
171             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
172             {
173                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
174             }
175
176             ~Property()
177             {
178                 Dispose();
179             }
180
181             public virtual void Dispose()
182             {
183                 lock (this)
184                 {
185                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
186                     {
187                         if (swigCMemOwn)
188                         {
189                             swigCMemOwn = false;
190                             NDalicPINVOKE.delete_TextEditor_Property(swigCPtr);
191                         }
192                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
193                     }
194                     global::System.GC.SuppressFinalize(this);
195                 }
196             }
197
198             internal Property() : this(NDalicPINVOKE.new_TextEditor_Property(), true)
199             {
200                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
201             }
202
203             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextEditor_Property_RENDERING_BACKEND_get();
204             internal static readonly int TEXT = NDalicPINVOKE.TextEditor_Property_TEXT_get();
205             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextEditor_Property_TEXT_COLOR_get();
206             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_FONT_FAMILY_get();
207             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextEditor_Property_FONT_STYLE_get();
208             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextEditor_Property_POINT_SIZE_get();
209             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextEditor_Property_HORIZONTAL_ALIGNMENT_get();
210             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextEditor_Property_SCROLL_THRESHOLD_get();
211             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextEditor_Property_SCROLL_SPEED_get();
212             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_PRIMARY_CURSOR_COLOR_get();
213             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_SECONDARY_CURSOR_COLOR_get();
214             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextEditor_Property_ENABLE_CURSOR_BLINK_get();
215             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_INTERVAL_get();
216             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_DURATION_get();
217             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextEditor_Property_CURSOR_WIDTH_get();
218             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_IMAGE_get();
219             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
220             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
221             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
222             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
223             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
224             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
225             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
226             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextEditor_Property_SELECTION_HIGHLIGHT_COLOR_get();
227             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextEditor_Property_DECORATION_BOUNDING_BOX_get();
228             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextEditor_Property_ENABLE_MARKUP_get();
229             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextEditor_Property_INPUT_COLOR_get();
230             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_FAMILY_get();
231             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_STYLE_get();
232             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextEditor_Property_INPUT_POINT_SIZE_get();
233             internal static readonly int LINE_SPACING = NDalicPINVOKE.TextEditor_Property_LINE_SPACING_get();
234             internal static readonly int INPUT_LINE_SPACING = NDalicPINVOKE.TextEditor_Property_INPUT_LINE_SPACING_get();
235             internal static readonly int UNDERLINE = NDalicPINVOKE.TextEditor_Property_UNDERLINE_get();
236             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextEditor_Property_INPUT_UNDERLINE_get();
237             internal static readonly int SHADOW = NDalicPINVOKE.TextEditor_Property_SHADOW_get();
238             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextEditor_Property_INPUT_SHADOW_get();
239             internal static readonly int EMBOSS = NDalicPINVOKE.TextEditor_Property_EMBOSS_get();
240             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextEditor_Property_INPUT_EMBOSS_get();
241             internal static readonly int OUTLINE = NDalicPINVOKE.TextEditor_Property_OUTLINE_get();
242             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextEditor_Property_INPUT_OUTLINE_get();
243
244         }
245
246         internal class InputStyle : global::System.IDisposable
247         {
248             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
249             protected bool swigCMemOwn;
250
251             internal InputStyle(global::System.IntPtr cPtr, bool cMemoryOwn)
252             {
253                 swigCMemOwn = cMemoryOwn;
254                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
255             }
256
257             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputStyle obj)
258             {
259                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
260             }
261
262             ~InputStyle()
263             {
264                 Dispose();
265             }
266
267             public virtual void Dispose()
268             {
269                 lock (this)
270                 {
271                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
272                     {
273                         if (swigCMemOwn)
274                         {
275                             swigCMemOwn = false;
276                             NDalicPINVOKE.delete_TextEditor_InputStyle(swigCPtr);
277                         }
278                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
279                     }
280                     global::System.GC.SuppressFinalize(this);
281                 }
282             }
283
284             internal InputStyle() : this(NDalicPINVOKE.new_TextEditor_InputStyle(), true)
285             {
286                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
287             }
288
289             internal enum Mask
290             {
291                 None = 0x0000,
292                 Color = 0x0001,
293                 FontFamily = 0x0002,
294                 PointSize = 0x0004,
295                 FontStyle = 0x0008,
296                 LineSpacing = 0x0010,
297                 Underline = 0x0020,
298                 Shadow = 0x0040,
299                 Emboss = 0x0080,
300                 Outline = 0x0100
301             }
302
303         }
304
305         /// <summary>
306         /// Creates the TextEditor control.
307         /// </summary>
308         public TextEditor() : this(NDalicPINVOKE.TextEditor_New(), true)
309         {
310             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
311
312         }
313         internal TextEditor(TextEditor handle) : this(NDalicPINVOKE.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)
314         {
315             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
316         }
317
318         internal TextEditor Assign(TextEditor handle)
319         {
320             TextEditor ret = new TextEditor(NDalicPINVOKE.TextEditor_Assign(swigCPtr, TextEditor.getCPtr(handle)), false);
321             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
322             return ret;
323         }
324
325         /// <summary>
326         /// Downcasts a handle to TextEditor.
327         /// </summary>
328         /// <param name="handle">Handle to an object</param>
329         /// <returns>Handle to a TextEditor or an empty handle</returns>
330         public new static TextEditor DownCast(BaseHandle handle)
331         {
332             TextEditor ret = new TextEditor(NDalicPINVOKE.TextEditor_DownCast(BaseHandle.getCPtr(handle)), true);
333             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
334             return ret;
335         }
336
337         internal TextEditorSignal TextChangedSignal()
338         {
339             TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);
340             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
341             return ret;
342         }
343
344         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
345         {
346             SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t(NDalicPINVOKE.TextEditor_InputStyleChangedSignal(swigCPtr), false);
347             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
348             return ret;
349         }
350
351         internal enum PropertyRange
352         {
353             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
354             PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
355         }
356
357         /// <summary>
358         /// Rendering backend property
359         /// </summary>
360         public int RenderingBackend
361         {
362             get
363             {
364                 int temp = 0;
365                 GetProperty(TextEditor.Property.RENDERING_BACKEND).Get(ref temp);
366                 return temp;
367             }
368             set
369             {
370                 SetProperty(TextEditor.Property.RENDERING_BACKEND, new Tizen.NUI.PropertyValue(value));
371             }
372         }
373
374         /// <summary>
375         /// Text property.
376         /// </summary>
377         public string Text
378         {
379             get
380             {
381                 string temp;
382                 GetProperty(TextEditor.Property.TEXT).Get(out temp);
383                 return temp;
384             }
385             set
386             {
387                 SetProperty(TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue(value));
388             }
389         }
390
391         /// <summary>
392         /// Text color property.
393         /// </summary>
394         public Vector4 TextColor
395         {
396             get
397             {
398                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
399                 GetProperty(TextEditor.Property.TEXT_COLOR).Get(temp);
400                 return temp;
401             }
402             set
403             {
404                 SetProperty(TextEditor.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
405             }
406         }
407
408         /// <summary>
409         /// Font family property.
410         /// </summary>
411         public string FontFamily
412         {
413             get
414             {
415                 string temp;
416                 GetProperty(TextEditor.Property.FONT_FAMILY).Get(out temp);
417                 return temp;
418             }
419             set
420             {
421                 SetProperty(TextEditor.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
422             }
423         }
424
425         /// <summary>
426         /// Font style property.
427         /// </summary>
428         public PropertyMap FontStyle
429         {
430             get
431             {
432                 PropertyMap temp = new PropertyMap();
433                 GetProperty(TextEditor.Property.FONT_STYLE).Get(temp);
434                 return temp;
435             }
436             set
437             {
438                 SetProperty(TextEditor.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
439             }
440         }
441
442         /// <summary>
443         /// Point size property.
444         /// </summary>
445         public float PointSize
446         {
447             get
448             {
449                 float temp = 0.0f;
450                 GetProperty(TextEditor.Property.POINT_SIZE).Get(ref temp);
451                 return temp;
452             }
453             set
454             {
455                 SetProperty(TextEditor.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
456             }
457         }
458
459         /// <summary>
460         /// Horizontal alignment property.
461         /// </summary>
462         public HorizontalAlignment HorizontalAlignment
463         {
464             get
465             {
466                 string temp;
467                 if (GetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
468                 {
469                     //Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
470                 }
471
472                 switch (temp)
473                 {
474                     case "BEGIN":
475                         return HorizontalAlignment.HorizontalAlignBegin;
476                     case "CENTER":
477                         return HorizontalAlignment.HorizontalAlignCenter;
478                     case "END":
479                         return HorizontalAlignment.HorizontalAlignEnd;
480                     default:
481                         return HorizontalAlignment.HorizontalAlignBegin;
482                 }
483             }
484             set
485             {
486                 string valueToString = "";
487                 switch (value)
488                 {
489                     case HorizontalAlignment.HorizontalAlignBegin:
490                     {
491                         valueToString = "BEGIN";
492                         break;
493                     }
494                     case HorizontalAlignment.HorizontalAlignCenter:
495                     {
496                         valueToString = "CENTER";
497                         break;
498                     }
499                     case HorizontalAlignment.HorizontalAlignEnd:
500                     {
501                         valueToString = "END";
502                         break;
503                     }
504                     default:
505                     {
506                         valueToString = "BEGIN";
507                         break;
508                     }
509                 }
510                 SetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
511             }
512         }
513
514         /// <summary>
515         /// Scroll threshold property.
516         /// </summary>
517         public float ScrollThreshold
518         {
519             get
520             {
521                 float temp = 0.0f;
522                 GetProperty(TextEditor.Property.SCROLL_THRESHOLD).Get(ref temp);
523                 return temp;
524             }
525             set
526             {
527                 SetProperty(TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
528             }
529         }
530
531         /// <summary>
532         /// Scroll speed property.
533         /// </summary>
534         public float ScrollSpeed
535         {
536             get
537             {
538                 float temp = 0.0f;
539                 GetProperty(TextEditor.Property.SCROLL_SPEED).Get(ref temp);
540                 return temp;
541             }
542             set
543             {
544                 SetProperty(TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
545             }
546         }
547
548         /// <summary>
549         /// Primary cursor color property.
550         /// </summary>
551         public Vector4 PrimaryCursorColor
552         {
553             get
554             {
555                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
556                 GetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR).Get(temp);
557                 return temp;
558             }
559             set
560             {
561                 SetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
562             }
563         }
564
565         /// <summary>
566         /// SecondaryCursorColor property.
567         /// </summary>
568         public Vector4 SecondaryCursorColor
569         {
570             get
571             {
572                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
573                 GetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR).Get(temp);
574                 return temp;
575             }
576             set
577             {
578                 SetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
579             }
580         }
581
582         /// <summary>
583         /// EnableCursorBlink property.
584         /// </summary>
585         public bool EnableCursorBlink
586         {
587             get
588             {
589                 bool temp = false;
590                 GetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK).Get(ref temp);
591                 return temp;
592             }
593             set
594             {
595                 SetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
596             }
597         }
598
599         /// <summary>
600         /// CursorBlinkInterval property.
601         /// </summary>
602         public float CursorBlinkInterval
603         {
604             get
605             {
606                 float temp = 0.0f;
607                 GetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(ref temp);
608                 return temp;
609             }
610             set
611             {
612                 SetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
613             }
614         }
615
616         /// <summary>
617         /// CursorBlinkDuration property.
618         /// </summary>
619         public float CursorBlinkDuration
620         {
621             get
622             {
623                 float temp = 0.0f;
624                 GetProperty(TextEditor.Property.CURSOR_BLINK_DURATION).Get(ref temp);
625                 return temp;
626             }
627             set
628             {
629                 SetProperty(TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
630             }
631         }
632
633         /// <summary>
634         /// CursorWidth property.
635         /// </summary>
636         public int CursorWidth
637         {
638             get
639             {
640                 int temp = 0;
641                 GetProperty(TextEditor.Property.CURSOR_WIDTH).Get(ref temp);
642                 return temp;
643             }
644             set
645             {
646                 SetProperty(TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
647             }
648         }
649
650         /// <summary>
651         /// GrabHandleImage property.
652         /// </summary>
653         public string GrabHandleImage
654         {
655             get
656             {
657                 string temp;
658                 GetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);
659                 return temp;
660             }
661             set
662             {
663                 SetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
664             }
665         }
666
667         /// <summary>
668         /// GrabHandlePressedImage property.
669         /// </summary>
670         public string GrabHandlePressedImage
671         {
672             get
673             {
674                 string temp;
675                 GetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
676                 return temp;
677             }
678             set
679             {
680                 SetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
681             }
682         }
683
684         /// <summary>
685         /// SelectionHandleImageLeft property.
686         /// </summary>
687         public PropertyMap SelectionHandleImageLeft
688         {
689             get
690             {
691                 PropertyMap temp = new PropertyMap();
692                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
693                 return temp;
694             }
695             set
696             {
697                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
698             }
699         }
700
701         /// <summary>
702         /// SelectionHandleImageRight property.
703         /// </summary>
704         public PropertyMap SelectionHandleImageRight
705         {
706             get
707             {
708                 PropertyMap temp = new PropertyMap();
709                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
710                 return temp;
711             }
712             set
713             {
714                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
715             }
716         }
717
718         /// <summary>
719         /// SelectionHandlePressedImageLeft property.
720         /// </summary>
721         public PropertyMap SelectionHandlePressedImageLeft
722         {
723             get
724             {
725                 PropertyMap temp = new PropertyMap();
726                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
727                 return temp;
728             }
729             set
730             {
731                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
732             }
733         }
734
735         /// <summary>
736         /// SelectionHandlePressedImageRight property.
737         /// </summary>
738         public PropertyMap SelectionHandlePressedImageRight
739         {
740             get
741             {
742                 PropertyMap temp = new PropertyMap();
743                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
744                 return temp;
745             }
746             set
747             {
748                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
749             }
750         }
751
752         /// <summary>
753         /// SelectionHandleMarkerImageLeft property.
754         /// </summary>
755         public PropertyMap SelectionHandleMarkerImageLeft
756         {
757             get
758             {
759                 PropertyMap temp = new PropertyMap();
760                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
761                 return temp;
762             }
763             set
764             {
765                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
766             }
767         }
768
769         /// <summary>
770         /// SelectionHandleMarkerImageRight property.
771         /// </summary>
772         public PropertyMap SelectionHandleMarkerImageRight
773         {
774             get
775             {
776                 PropertyMap temp = new PropertyMap();
777                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
778                 return temp;
779             }
780             set
781             {
782                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
783             }
784         }
785
786         /// <summary>
787         /// SelectionHighlightColor property.
788         /// </summary>
789         public Vector4 SelectionHighlightColor
790         {
791             get
792             {
793                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
794                 GetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
795                 return temp;
796             }
797             set
798             {
799                 SetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
800             }
801         }
802
803         /// <summary>
804         /// DecorationBoundingBox property.
805         /// </summary>
806         public Rectangle DecorationBoundingBox
807         {
808             get
809             {
810                 Rectangle temp = new Rectangle(0, 0, 0, 0);
811                 GetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX).Get(temp);
812                 return temp;
813             }
814             set
815             {
816                 SetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
817             }
818         }
819
820         /// <summary>
821         /// EnableMarkup property.
822         /// </summary>
823         public bool EnableMarkup
824         {
825             get
826             {
827                 bool temp = false;
828                 GetProperty(TextEditor.Property.ENABLE_MARKUP).Get(ref temp);
829                 return temp;
830             }
831             set
832             {
833                 SetProperty(TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
834             }
835         }
836
837         /// <summary>
838         /// InputColor property.
839         /// </summary>
840         public Vector4 InputColor
841         {
842             get
843             {
844                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
845                 GetProperty(TextEditor.Property.INPUT_COLOR).Get(temp);
846                 return temp;
847             }
848             set
849             {
850                 SetProperty(TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
851             }
852         }
853
854         /// <summary>
855         /// InputFontFamily property.
856         /// </summary>
857         public string InputFontFamily
858         {
859             get
860             {
861                 string temp;
862                 GetProperty(TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);
863                 return temp;
864             }
865             set
866             {
867                 SetProperty(TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
868             }
869         }
870
871         /// <summary>
872         /// InputFontStyle property.
873         /// </summary>
874         public PropertyMap InputFontStyle
875         {
876             get
877             {
878                 PropertyMap temp = new PropertyMap();
879                 GetProperty(TextEditor.Property.INPUT_FONT_STYLE).Get(temp);
880                 return temp;
881             }
882             set
883             {
884                 SetProperty(TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
885             }
886         }
887
888         /// <summary>
889         /// InputPointSize property.
890         /// </summary>
891         public float InputPointSize
892         {
893             get
894             {
895                 float temp = 0.0f;
896                 GetProperty(TextEditor.Property.INPUT_POINT_SIZE).Get(ref temp);
897                 return temp;
898             }
899             set
900             {
901                 SetProperty(TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
902             }
903         }
904
905         /// <summary>
906         /// LineSpacing property.
907         /// </summary>
908         public float LineSpacing
909         {
910             get
911             {
912                 float temp = 0.0f;
913                 GetProperty(TextEditor.Property.LINE_SPACING).Get(ref temp);
914                 return temp;
915             }
916             set
917             {
918                 SetProperty(TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue(value));
919             }
920         }
921
922         /// <summary>
923         /// InputLineSpacing property.
924         /// </summary>
925         public float InputLineSpacing
926         {
927             get
928             {
929                 float temp = 0.0f;
930                 GetProperty(TextEditor.Property.INPUT_LINE_SPACING).Get(ref temp);
931                 return temp;
932             }
933             set
934             {
935                 SetProperty(TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue(value));
936             }
937         }
938
939         /// <summary>
940         /// Underline property.
941         /// </summary>
942         public PropertyMap Underline
943         {
944             get
945             {
946                 PropertyMap temp = new PropertyMap();
947                 GetProperty(TextEditor.Property.UNDERLINE).Get(temp);
948                 return temp;
949             }
950             set
951             {
952                 SetProperty(TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
953             }
954         }
955
956         /// <summary>
957         /// InputUnderline property.
958         /// </summary>
959         public string InputUnderline
960         {
961             get
962             {
963                 string temp;
964                 GetProperty(TextEditor.Property.INPUT_UNDERLINE).Get(out temp);
965                 return temp;
966             }
967             set
968             {
969                 SetProperty(TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
970             }
971         }
972
973         /// <summary>
974         /// Shadow property.
975         /// </summary>
976         public PropertyMap Shadow
977         {
978             get
979             {
980                 PropertyMap temp = new PropertyMap();
981                 GetProperty(TextEditor.Property.SHADOW).Get(temp);
982                 return temp;
983             }
984             set
985             {
986                 SetProperty(TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
987             }
988         }
989
990         /// <summary>
991         /// InputShadow property.
992         /// </summary>
993         public string InputShadow
994         {
995             get
996             {
997                 string temp;
998                 GetProperty(TextEditor.Property.INPUT_SHADOW).Get(out temp);
999                 return temp;
1000             }
1001             set
1002             {
1003                 SetProperty(TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
1004             }
1005         }
1006
1007         /// <summary>
1008         /// Emboss property.
1009         /// </summary>
1010         public string Emboss
1011         {
1012             get
1013             {
1014                 string temp;
1015                 GetProperty(TextEditor.Property.EMBOSS).Get(out temp);
1016                 return temp;
1017             }
1018             set
1019             {
1020                 SetProperty(TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
1021             }
1022         }
1023
1024         /// <summary>
1025         /// InputEmboss property.
1026         /// </summary>
1027         public string InputEmboss
1028         {
1029             get
1030             {
1031                 string temp;
1032                 GetProperty(TextEditor.Property.INPUT_EMBOSS).Get(out temp);
1033                 return temp;
1034             }
1035             set
1036             {
1037                 SetProperty(TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1038             }
1039         }
1040
1041         /// <summary>
1042         /// Outline property.
1043         /// </summary>
1044         public string Outline
1045         {
1046             get
1047             {
1048                 string temp;
1049                 GetProperty(TextEditor.Property.OUTLINE).Get(out temp);
1050                 return temp;
1051             }
1052             set
1053             {
1054                 SetProperty(TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1055             }
1056         }
1057
1058         /// <summary>
1059         /// InputOutline property.
1060         /// </summary>
1061         public string InputOutline
1062         {
1063             get
1064             {
1065                 string temp;
1066                 GetProperty(TextEditor.Property.INPUT_OUTLINE).Get(out temp);
1067                 return temp;
1068             }
1069             set
1070             {
1071                 SetProperty(TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1072             }
1073         }
1074
1075     }
1076
1077 }