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