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