8f2a7a5b366ad987d537af3b0a25205fefa8ec71
[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
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                 DisposeQueue.Instance.Add(this);
265             }
266
267             public virtual void Dispose()
268             {
269                 if (!Window.IsInstalled()) {
270                     DisposeQueue.Instance.Add(this);
271                     return;
272                 }
273
274                 lock (this)
275                 {
276                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
277                     {
278                         if (swigCMemOwn)
279                         {
280                             swigCMemOwn = false;
281                             NDalicPINVOKE.delete_TextEditor_InputStyle(swigCPtr);
282                         }
283                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
284                     }
285                     global::System.GC.SuppressFinalize(this);
286                 }
287             }
288
289             internal InputStyle() : this(NDalicPINVOKE.new_TextEditor_InputStyle(), true)
290             {
291                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292             }
293
294             internal enum Mask
295             {
296                 None = 0x0000,
297                 Color = 0x0001,
298                 FontFamily = 0x0002,
299                 PointSize = 0x0004,
300                 FontStyle = 0x0008,
301                 LineSpacing = 0x0010,
302                 Underline = 0x0020,
303                 Shadow = 0x0040,
304                 Emboss = 0x0080,
305                 Outline = 0x0100
306             }
307
308         }
309
310         /// <summary>
311         /// Creates the TextEditor control.
312         /// </summary>
313         public TextEditor() : this(NDalicPINVOKE.TextEditor_New(), true)
314         {
315             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
316
317         }
318         internal TextEditor(TextEditor handle) : this(NDalicPINVOKE.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)
319         {
320             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
321         }
322
323         internal TextEditor Assign(TextEditor handle)
324         {
325             TextEditor ret = new TextEditor(NDalicPINVOKE.TextEditor_Assign(swigCPtr, TextEditor.getCPtr(handle)), false);
326             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
327             return ret;
328         }
329
330         /// <summary>
331         /// Downcasts a handle to TextEditor.
332         /// </summary>
333         /// <param name="handle">Handle to an object</param>
334         /// <returns>Handle to a TextEditor or an empty handle</returns>
335         public new static TextEditor DownCast(BaseHandle handle)
336         {
337             TextEditor ret = new TextEditor(NDalicPINVOKE.TextEditor_DownCast(BaseHandle.getCPtr(handle)), true);
338             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
339             return ret;
340         }
341
342         internal TextEditorSignal TextChangedSignal()
343         {
344             TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);
345             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
346             return ret;
347         }
348
349         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
350         {
351             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);
352             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353             return ret;
354         }
355
356         internal enum PropertyRange
357         {
358             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
359             PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
360         }
361
362         /// <summary>
363         /// Rendering backend property
364         /// </summary>
365         public int RenderingBackend
366         {
367             get
368             {
369                 int temp = 0;
370                 GetProperty(TextEditor.Property.RENDERING_BACKEND).Get(ref temp);
371                 return temp;
372             }
373             set
374             {
375                 SetProperty(TextEditor.Property.RENDERING_BACKEND, new Tizen.NUI.PropertyValue(value));
376             }
377         }
378
379         /// <summary>
380         /// Text property.
381         /// </summary>
382         public string Text
383         {
384             get
385             {
386                 string temp;
387                 GetProperty(TextEditor.Property.TEXT).Get(out temp);
388                 return temp;
389             }
390             set
391             {
392                 SetProperty(TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue(value));
393             }
394         }
395
396         /// <summary>
397         /// Text color property.
398         /// </summary>
399         public Vector4 TextColor
400         {
401             get
402             {
403                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
404                 GetProperty(TextEditor.Property.TEXT_COLOR).Get(temp);
405                 return temp;
406             }
407             set
408             {
409                 SetProperty(TextEditor.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
410             }
411         }
412
413         /// <summary>
414         /// Font family property.
415         /// </summary>
416         public string FontFamily
417         {
418             get
419             {
420                 string temp;
421                 GetProperty(TextEditor.Property.FONT_FAMILY).Get(out temp);
422                 return temp;
423             }
424             set
425             {
426                 SetProperty(TextEditor.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
427             }
428         }
429
430         /// <summary>
431         /// Font style property.
432         /// </summary>
433         public PropertyMap FontStyle
434         {
435             get
436             {
437                 PropertyMap temp = new PropertyMap();
438                 GetProperty(TextEditor.Property.FONT_STYLE).Get(temp);
439                 return temp;
440             }
441             set
442             {
443                 SetProperty(TextEditor.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
444             }
445         }
446
447         /// <summary>
448         /// Point size property.
449         /// </summary>
450         public float PointSize
451         {
452             get
453             {
454                 float temp = 0.0f;
455                 GetProperty(TextEditor.Property.POINT_SIZE).Get(ref temp);
456                 return temp;
457             }
458             set
459             {
460                 SetProperty(TextEditor.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
461             }
462         }
463
464         /// <summary>
465         /// Horizontal alignment property.
466         /// </summary>
467         public HorizontalAlignment HorizontalAlignment
468         {
469             get
470             {
471                 string temp;
472                 if (GetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
473                 {
474 #if DEBUG_ON
475                     Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
476 #endif
477                 }
478
479                 switch (temp)
480                 {
481                     case "BEGIN":
482                         return HorizontalAlignment.Begin;
483                     case "CENTER":
484                         return HorizontalAlignment.Center;
485                     case "END":
486                         return HorizontalAlignment.End;
487                     default:
488                         return HorizontalAlignment.Begin;
489                 }
490             }
491             set
492             {
493                 string valueToString = "";
494                 switch (value)
495                 {
496                     case HorizontalAlignment.Begin:
497                     {
498                         valueToString = "BEGIN";
499                         break;
500                     }
501                     case HorizontalAlignment.Center:
502                     {
503                         valueToString = "CENTER";
504                         break;
505                     }
506                     case HorizontalAlignment.End:
507                     {
508                         valueToString = "END";
509                         break;
510                     }
511                     default:
512                     {
513                         valueToString = "BEGIN";
514                         break;
515                     }
516                 }
517                 SetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
518             }
519         }
520
521         /// <summary>
522         /// Scroll threshold property.
523         /// </summary>
524         public float ScrollThreshold
525         {
526             get
527             {
528                 float temp = 0.0f;
529                 GetProperty(TextEditor.Property.SCROLL_THRESHOLD).Get(ref temp);
530                 return temp;
531             }
532             set
533             {
534                 SetProperty(TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
535             }
536         }
537
538         /// <summary>
539         /// Scroll speed property.
540         /// </summary>
541         public float ScrollSpeed
542         {
543             get
544             {
545                 float temp = 0.0f;
546                 GetProperty(TextEditor.Property.SCROLL_SPEED).Get(ref temp);
547                 return temp;
548             }
549             set
550             {
551                 SetProperty(TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
552             }
553         }
554
555         /// <summary>
556         /// Primary cursor color property.
557         /// </summary>
558         public Vector4 PrimaryCursorColor
559         {
560             get
561             {
562                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
563                 GetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR).Get(temp);
564                 return temp;
565             }
566             set
567             {
568                 SetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
569             }
570         }
571
572         /// <summary>
573         /// SecondaryCursorColor property.
574         /// </summary>
575         public Vector4 SecondaryCursorColor
576         {
577             get
578             {
579                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
580                 GetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR).Get(temp);
581                 return temp;
582             }
583             set
584             {
585                 SetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
586             }
587         }
588
589         /// <summary>
590         /// EnableCursorBlink property.
591         /// </summary>
592         public bool EnableCursorBlink
593         {
594             get
595             {
596                 bool temp = false;
597                 GetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK).Get(ref temp);
598                 return temp;
599             }
600             set
601             {
602                 SetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
603             }
604         }
605
606         /// <summary>
607         /// CursorBlinkInterval property.
608         /// </summary>
609         public float CursorBlinkInterval
610         {
611             get
612             {
613                 float temp = 0.0f;
614                 GetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(ref temp);
615                 return temp;
616             }
617             set
618             {
619                 SetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
620             }
621         }
622
623         /// <summary>
624         /// CursorBlinkDuration property.
625         /// </summary>
626         public float CursorBlinkDuration
627         {
628             get
629             {
630                 float temp = 0.0f;
631                 GetProperty(TextEditor.Property.CURSOR_BLINK_DURATION).Get(ref temp);
632                 return temp;
633             }
634             set
635             {
636                 SetProperty(TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
637             }
638         }
639
640         /// <summary>
641         /// CursorWidth property.
642         /// </summary>
643         public int CursorWidth
644         {
645             get
646             {
647                 int temp = 0;
648                 GetProperty(TextEditor.Property.CURSOR_WIDTH).Get(ref temp);
649                 return temp;
650             }
651             set
652             {
653                 SetProperty(TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
654             }
655         }
656
657         /// <summary>
658         /// GrabHandleImage property.
659         /// </summary>
660         public string GrabHandleImage
661         {
662             get
663             {
664                 string temp;
665                 GetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);
666                 return temp;
667             }
668             set
669             {
670                 SetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
671             }
672         }
673
674         /// <summary>
675         /// GrabHandlePressedImage property.
676         /// </summary>
677         public string GrabHandlePressedImage
678         {
679             get
680             {
681                 string temp;
682                 GetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
683                 return temp;
684             }
685             set
686             {
687                 SetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
688             }
689         }
690
691         /// <summary>
692         /// SelectionHandleImageLeft property.
693         /// </summary>
694         public PropertyMap SelectionHandleImageLeft
695         {
696             get
697             {
698                 PropertyMap temp = new PropertyMap();
699                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
700                 return temp;
701             }
702             set
703             {
704                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
705             }
706         }
707
708         /// <summary>
709         /// SelectionHandleImageRight property.
710         /// </summary>
711         public PropertyMap SelectionHandleImageRight
712         {
713             get
714             {
715                 PropertyMap temp = new PropertyMap();
716                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
717                 return temp;
718             }
719             set
720             {
721                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
722             }
723         }
724
725         /// <summary>
726         /// SelectionHandlePressedImageLeft property.
727         /// </summary>
728         public PropertyMap SelectionHandlePressedImageLeft
729         {
730             get
731             {
732                 PropertyMap temp = new PropertyMap();
733                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
734                 return temp;
735             }
736             set
737             {
738                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
739             }
740         }
741
742         /// <summary>
743         /// SelectionHandlePressedImageRight property.
744         /// </summary>
745         public PropertyMap SelectionHandlePressedImageRight
746         {
747             get
748             {
749                 PropertyMap temp = new PropertyMap();
750                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
751                 return temp;
752             }
753             set
754             {
755                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
756             }
757         }
758
759         /// <summary>
760         /// SelectionHandleMarkerImageLeft property.
761         /// </summary>
762         public PropertyMap SelectionHandleMarkerImageLeft
763         {
764             get
765             {
766                 PropertyMap temp = new PropertyMap();
767                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
768                 return temp;
769             }
770             set
771             {
772                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
773             }
774         }
775
776         /// <summary>
777         /// SelectionHandleMarkerImageRight property.
778         /// </summary>
779         public PropertyMap SelectionHandleMarkerImageRight
780         {
781             get
782             {
783                 PropertyMap temp = new PropertyMap();
784                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
785                 return temp;
786             }
787             set
788             {
789                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
790             }
791         }
792
793         /// <summary>
794         /// SelectionHighlightColor property.
795         /// </summary>
796         public Vector4 SelectionHighlightColor
797         {
798             get
799             {
800                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
801                 GetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
802                 return temp;
803             }
804             set
805             {
806                 SetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
807             }
808         }
809
810         /// <summary>
811         /// DecorationBoundingBox property.
812         /// </summary>
813         public Rectangle DecorationBoundingBox
814         {
815             get
816             {
817                 Rectangle temp = new Rectangle(0, 0, 0, 0);
818                 GetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX).Get(temp);
819                 return temp;
820             }
821             set
822             {
823                 SetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
824             }
825         }
826
827         /// <summary>
828         /// EnableMarkup property.
829         /// </summary>
830         public bool EnableMarkup
831         {
832             get
833             {
834                 bool temp = false;
835                 GetProperty(TextEditor.Property.ENABLE_MARKUP).Get(ref temp);
836                 return temp;
837             }
838             set
839             {
840                 SetProperty(TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
841             }
842         }
843
844         /// <summary>
845         /// InputColor property.
846         /// </summary>
847         public Vector4 InputColor
848         {
849             get
850             {
851                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
852                 GetProperty(TextEditor.Property.INPUT_COLOR).Get(temp);
853                 return temp;
854             }
855             set
856             {
857                 SetProperty(TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
858             }
859         }
860
861         /// <summary>
862         /// InputFontFamily property.
863         /// </summary>
864         public string InputFontFamily
865         {
866             get
867             {
868                 string temp;
869                 GetProperty(TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);
870                 return temp;
871             }
872             set
873             {
874                 SetProperty(TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
875             }
876         }
877
878         /// <summary>
879         /// InputFontStyle property.
880         /// </summary>
881         public PropertyMap InputFontStyle
882         {
883             get
884             {
885                 PropertyMap temp = new PropertyMap();
886                 GetProperty(TextEditor.Property.INPUT_FONT_STYLE).Get(temp);
887                 return temp;
888             }
889             set
890             {
891                 SetProperty(TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
892             }
893         }
894
895         /// <summary>
896         /// InputPointSize property.
897         /// </summary>
898         public float InputPointSize
899         {
900             get
901             {
902                 float temp = 0.0f;
903                 GetProperty(TextEditor.Property.INPUT_POINT_SIZE).Get(ref temp);
904                 return temp;
905             }
906             set
907             {
908                 SetProperty(TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
909             }
910         }
911
912         /// <summary>
913         /// LineSpacing property.
914         /// </summary>
915         public float LineSpacing
916         {
917             get
918             {
919                 float temp = 0.0f;
920                 GetProperty(TextEditor.Property.LINE_SPACING).Get(ref temp);
921                 return temp;
922             }
923             set
924             {
925                 SetProperty(TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue(value));
926             }
927         }
928
929         /// <summary>
930         /// InputLineSpacing property.
931         /// </summary>
932         public float InputLineSpacing
933         {
934             get
935             {
936                 float temp = 0.0f;
937                 GetProperty(TextEditor.Property.INPUT_LINE_SPACING).Get(ref temp);
938                 return temp;
939             }
940             set
941             {
942                 SetProperty(TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue(value));
943             }
944         }
945
946         /// <summary>
947         /// Underline property.
948         /// </summary>
949         public PropertyMap Underline
950         {
951             get
952             {
953                 PropertyMap temp = new PropertyMap();
954                 GetProperty(TextEditor.Property.UNDERLINE).Get(temp);
955                 return temp;
956             }
957             set
958             {
959                 SetProperty(TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
960             }
961         }
962
963         /// <summary>
964         /// InputUnderline property.
965         /// </summary>
966         public string InputUnderline
967         {
968             get
969             {
970                 string temp;
971                 GetProperty(TextEditor.Property.INPUT_UNDERLINE).Get(out temp);
972                 return temp;
973             }
974             set
975             {
976                 SetProperty(TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
977             }
978         }
979
980         /// <summary>
981         /// Shadow property.
982         /// </summary>
983         public PropertyMap Shadow
984         {
985             get
986             {
987                 PropertyMap temp = new PropertyMap();
988                 GetProperty(TextEditor.Property.SHADOW).Get(temp);
989                 return temp;
990             }
991             set
992             {
993                 SetProperty(TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
994             }
995         }
996
997         /// <summary>
998         /// InputShadow property.
999         /// </summary>
1000         public string InputShadow
1001         {
1002             get
1003             {
1004                 string temp;
1005                 GetProperty(TextEditor.Property.INPUT_SHADOW).Get(out temp);
1006                 return temp;
1007             }
1008             set
1009             {
1010                 SetProperty(TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
1011             }
1012         }
1013
1014         /// <summary>
1015         /// Emboss property.
1016         /// </summary>
1017         public string Emboss
1018         {
1019             get
1020             {
1021                 string temp;
1022                 GetProperty(TextEditor.Property.EMBOSS).Get(out temp);
1023                 return temp;
1024             }
1025             set
1026             {
1027                 SetProperty(TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
1028             }
1029         }
1030
1031         /// <summary>
1032         /// InputEmboss property.
1033         /// </summary>
1034         public string InputEmboss
1035         {
1036             get
1037             {
1038                 string temp;
1039                 GetProperty(TextEditor.Property.INPUT_EMBOSS).Get(out temp);
1040                 return temp;
1041             }
1042             set
1043             {
1044                 SetProperty(TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1045             }
1046         }
1047
1048         /// <summary>
1049         /// Outline property.
1050         /// </summary>
1051         public string Outline
1052         {
1053             get
1054             {
1055                 string temp;
1056                 GetProperty(TextEditor.Property.OUTLINE).Get(out temp);
1057                 return temp;
1058             }
1059             set
1060             {
1061                 SetProperty(TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1062             }
1063         }
1064
1065         /// <summary>
1066         /// InputOutline property.
1067         /// </summary>
1068         public string InputOutline
1069         {
1070             get
1071             {
1072                 string temp;
1073                 GetProperty(TextEditor.Property.INPUT_OUTLINE).Get(out temp);
1074                 return temp;
1075             }
1076             set
1077             {
1078                 SetProperty(TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1079             }
1080         }
1081
1082     }
1083
1084 }