1.[NUI 276] c# nui visual high level class refactorying.
[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 #if DEBUG_ON
470                     Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
471 #endif
472                 }
473
474                 switch (temp)
475                 {
476                     case "BEGIN":
477                         return HorizontalAlignment.Begin;
478                     case "CENTER":
479                         return HorizontalAlignment.Center;
480                     case "END":
481                         return HorizontalAlignment.End;
482                     default:
483                         return HorizontalAlignment.Begin;
484                 }
485             }
486             set
487             {
488                 string valueToString = "";
489                 switch (value)
490                 {
491                     case HorizontalAlignment.Begin:
492                     {
493                         valueToString = "BEGIN";
494                         break;
495                     }
496                     case HorizontalAlignment.Center:
497                     {
498                         valueToString = "CENTER";
499                         break;
500                     }
501                     case HorizontalAlignment.End:
502                     {
503                         valueToString = "END";
504                         break;
505                     }
506                     default:
507                     {
508                         valueToString = "BEGIN";
509                         break;
510                     }
511                 }
512                 SetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
513             }
514         }
515
516         /// <summary>
517         /// Scroll threshold property.
518         /// </summary>
519         public float ScrollThreshold
520         {
521             get
522             {
523                 float temp = 0.0f;
524                 GetProperty(TextEditor.Property.SCROLL_THRESHOLD).Get(ref temp);
525                 return temp;
526             }
527             set
528             {
529                 SetProperty(TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
530             }
531         }
532
533         /// <summary>
534         /// Scroll speed property.
535         /// </summary>
536         public float ScrollSpeed
537         {
538             get
539             {
540                 float temp = 0.0f;
541                 GetProperty(TextEditor.Property.SCROLL_SPEED).Get(ref temp);
542                 return temp;
543             }
544             set
545             {
546                 SetProperty(TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
547             }
548         }
549
550         /// <summary>
551         /// Primary cursor color property.
552         /// </summary>
553         public Vector4 PrimaryCursorColor
554         {
555             get
556             {
557                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
558                 GetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR).Get(temp);
559                 return temp;
560             }
561             set
562             {
563                 SetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
564             }
565         }
566
567         /// <summary>
568         /// SecondaryCursorColor property.
569         /// </summary>
570         public Vector4 SecondaryCursorColor
571         {
572             get
573             {
574                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
575                 GetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR).Get(temp);
576                 return temp;
577             }
578             set
579             {
580                 SetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
581             }
582         }
583
584         /// <summary>
585         /// EnableCursorBlink property.
586         /// </summary>
587         public bool EnableCursorBlink
588         {
589             get
590             {
591                 bool temp = false;
592                 GetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK).Get(ref temp);
593                 return temp;
594             }
595             set
596             {
597                 SetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
598             }
599         }
600
601         /// <summary>
602         /// CursorBlinkInterval property.
603         /// </summary>
604         public float CursorBlinkInterval
605         {
606             get
607             {
608                 float temp = 0.0f;
609                 GetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(ref temp);
610                 return temp;
611             }
612             set
613             {
614                 SetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
615             }
616         }
617
618         /// <summary>
619         /// CursorBlinkDuration property.
620         /// </summary>
621         public float CursorBlinkDuration
622         {
623             get
624             {
625                 float temp = 0.0f;
626                 GetProperty(TextEditor.Property.CURSOR_BLINK_DURATION).Get(ref temp);
627                 return temp;
628             }
629             set
630             {
631                 SetProperty(TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
632             }
633         }
634
635         /// <summary>
636         /// CursorWidth property.
637         /// </summary>
638         public int CursorWidth
639         {
640             get
641             {
642                 int temp = 0;
643                 GetProperty(TextEditor.Property.CURSOR_WIDTH).Get(ref temp);
644                 return temp;
645             }
646             set
647             {
648                 SetProperty(TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
649             }
650         }
651
652         /// <summary>
653         /// GrabHandleImage property.
654         /// </summary>
655         public string GrabHandleImage
656         {
657             get
658             {
659                 string temp;
660                 GetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);
661                 return temp;
662             }
663             set
664             {
665                 SetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
666             }
667         }
668
669         /// <summary>
670         /// GrabHandlePressedImage property.
671         /// </summary>
672         public string GrabHandlePressedImage
673         {
674             get
675             {
676                 string temp;
677                 GetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
678                 return temp;
679             }
680             set
681             {
682                 SetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
683             }
684         }
685
686         /// <summary>
687         /// SelectionHandleImageLeft property.
688         /// </summary>
689         public PropertyMap SelectionHandleImageLeft
690         {
691             get
692             {
693                 PropertyMap temp = new PropertyMap();
694                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
695                 return temp;
696             }
697             set
698             {
699                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
700             }
701         }
702
703         /// <summary>
704         /// SelectionHandleImageRight property.
705         /// </summary>
706         public PropertyMap SelectionHandleImageRight
707         {
708             get
709             {
710                 PropertyMap temp = new PropertyMap();
711                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
712                 return temp;
713             }
714             set
715             {
716                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
717             }
718         }
719
720         /// <summary>
721         /// SelectionHandlePressedImageLeft property.
722         /// </summary>
723         public PropertyMap SelectionHandlePressedImageLeft
724         {
725             get
726             {
727                 PropertyMap temp = new PropertyMap();
728                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
729                 return temp;
730             }
731             set
732             {
733                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
734             }
735         }
736
737         /// <summary>
738         /// SelectionHandlePressedImageRight property.
739         /// </summary>
740         public PropertyMap SelectionHandlePressedImageRight
741         {
742             get
743             {
744                 PropertyMap temp = new PropertyMap();
745                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
746                 return temp;
747             }
748             set
749             {
750                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
751             }
752         }
753
754         /// <summary>
755         /// SelectionHandleMarkerImageLeft property.
756         /// </summary>
757         public PropertyMap SelectionHandleMarkerImageLeft
758         {
759             get
760             {
761                 PropertyMap temp = new PropertyMap();
762                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
763                 return temp;
764             }
765             set
766             {
767                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
768             }
769         }
770
771         /// <summary>
772         /// SelectionHandleMarkerImageRight property.
773         /// </summary>
774         public PropertyMap SelectionHandleMarkerImageRight
775         {
776             get
777             {
778                 PropertyMap temp = new PropertyMap();
779                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
780                 return temp;
781             }
782             set
783             {
784                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
785             }
786         }
787
788         /// <summary>
789         /// SelectionHighlightColor property.
790         /// </summary>
791         public Vector4 SelectionHighlightColor
792         {
793             get
794             {
795                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
796                 GetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
797                 return temp;
798             }
799             set
800             {
801                 SetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
802             }
803         }
804
805         /// <summary>
806         /// DecorationBoundingBox property.
807         /// </summary>
808         public Rectangle DecorationBoundingBox
809         {
810             get
811             {
812                 Rectangle temp = new Rectangle(0, 0, 0, 0);
813                 GetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX).Get(temp);
814                 return temp;
815             }
816             set
817             {
818                 SetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
819             }
820         }
821
822         /// <summary>
823         /// EnableMarkup property.
824         /// </summary>
825         public bool EnableMarkup
826         {
827             get
828             {
829                 bool temp = false;
830                 GetProperty(TextEditor.Property.ENABLE_MARKUP).Get(ref temp);
831                 return temp;
832             }
833             set
834             {
835                 SetProperty(TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
836             }
837         }
838
839         /// <summary>
840         /// InputColor property.
841         /// </summary>
842         public Vector4 InputColor
843         {
844             get
845             {
846                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
847                 GetProperty(TextEditor.Property.INPUT_COLOR).Get(temp);
848                 return temp;
849             }
850             set
851             {
852                 SetProperty(TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
853             }
854         }
855
856         /// <summary>
857         /// InputFontFamily property.
858         /// </summary>
859         public string InputFontFamily
860         {
861             get
862             {
863                 string temp;
864                 GetProperty(TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);
865                 return temp;
866             }
867             set
868             {
869                 SetProperty(TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
870             }
871         }
872
873         /// <summary>
874         /// InputFontStyle property.
875         /// </summary>
876         public PropertyMap InputFontStyle
877         {
878             get
879             {
880                 PropertyMap temp = new PropertyMap();
881                 GetProperty(TextEditor.Property.INPUT_FONT_STYLE).Get(temp);
882                 return temp;
883             }
884             set
885             {
886                 SetProperty(TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
887             }
888         }
889
890         /// <summary>
891         /// InputPointSize property.
892         /// </summary>
893         public float InputPointSize
894         {
895             get
896             {
897                 float temp = 0.0f;
898                 GetProperty(TextEditor.Property.INPUT_POINT_SIZE).Get(ref temp);
899                 return temp;
900             }
901             set
902             {
903                 SetProperty(TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
904             }
905         }
906
907         /// <summary>
908         /// LineSpacing property.
909         /// </summary>
910         public float LineSpacing
911         {
912             get
913             {
914                 float temp = 0.0f;
915                 GetProperty(TextEditor.Property.LINE_SPACING).Get(ref temp);
916                 return temp;
917             }
918             set
919             {
920                 SetProperty(TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue(value));
921             }
922         }
923
924         /// <summary>
925         /// InputLineSpacing property.
926         /// </summary>
927         public float InputLineSpacing
928         {
929             get
930             {
931                 float temp = 0.0f;
932                 GetProperty(TextEditor.Property.INPUT_LINE_SPACING).Get(ref temp);
933                 return temp;
934             }
935             set
936             {
937                 SetProperty(TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue(value));
938             }
939         }
940
941         /// <summary>
942         /// Underline property.
943         /// </summary>
944         public PropertyMap Underline
945         {
946             get
947             {
948                 PropertyMap temp = new PropertyMap();
949                 GetProperty(TextEditor.Property.UNDERLINE).Get(temp);
950                 return temp;
951             }
952             set
953             {
954                 SetProperty(TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
955             }
956         }
957
958         /// <summary>
959         /// InputUnderline property.
960         /// </summary>
961         public string InputUnderline
962         {
963             get
964             {
965                 string temp;
966                 GetProperty(TextEditor.Property.INPUT_UNDERLINE).Get(out temp);
967                 return temp;
968             }
969             set
970             {
971                 SetProperty(TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
972             }
973         }
974
975         /// <summary>
976         /// Shadow property.
977         /// </summary>
978         public PropertyMap Shadow
979         {
980             get
981             {
982                 PropertyMap temp = new PropertyMap();
983                 GetProperty(TextEditor.Property.SHADOW).Get(temp);
984                 return temp;
985             }
986             set
987             {
988                 SetProperty(TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
989             }
990         }
991
992         /// <summary>
993         /// InputShadow property.
994         /// </summary>
995         public string InputShadow
996         {
997             get
998             {
999                 string temp;
1000                 GetProperty(TextEditor.Property.INPUT_SHADOW).Get(out temp);
1001                 return temp;
1002             }
1003             set
1004             {
1005                 SetProperty(TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
1006             }
1007         }
1008
1009         /// <summary>
1010         /// Emboss property.
1011         /// </summary>
1012         public string Emboss
1013         {
1014             get
1015             {
1016                 string temp;
1017                 GetProperty(TextEditor.Property.EMBOSS).Get(out temp);
1018                 return temp;
1019             }
1020             set
1021             {
1022                 SetProperty(TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
1023             }
1024         }
1025
1026         /// <summary>
1027         /// InputEmboss property.
1028         /// </summary>
1029         public string InputEmboss
1030         {
1031             get
1032             {
1033                 string temp;
1034                 GetProperty(TextEditor.Property.INPUT_EMBOSS).Get(out temp);
1035                 return temp;
1036             }
1037             set
1038             {
1039                 SetProperty(TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1040             }
1041         }
1042
1043         /// <summary>
1044         /// Outline property.
1045         /// </summary>
1046         public string Outline
1047         {
1048             get
1049             {
1050                 string temp;
1051                 GetProperty(TextEditor.Property.OUTLINE).Get(out temp);
1052                 return temp;
1053             }
1054             set
1055             {
1056                 SetProperty(TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1057             }
1058         }
1059
1060         /// <summary>
1061         /// InputOutline property.
1062         /// </summary>
1063         public string InputOutline
1064         {
1065             get
1066             {
1067                 string temp;
1068                 GetProperty(TextEditor.Property.INPUT_OUTLINE).Get(out temp);
1069                 return temp;
1070             }
1071             set
1072             {
1073                 SetProperty(TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1074             }
1075         }
1076
1077     }
1078
1079 }