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