f44022c78453087a8a8941c4166a99a807be69a2
[platform/core/csapi/nui.git] / Tizen.NUI / src / public / TextEditor.cs
1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved\r
2 // PROPRIETARY/CONFIDENTIAL \r
3 // This software is the confidential and proprietary\r
4 // information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall\r
5 // not disclose such Confidential Information and shall use it only in\r
6 // accordance with the terms of the license agreement you entered into with\r
7 // SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the\r
8 // suitability of the software, either express or implied, including but not\r
9 // limited to the implied warranties of merchantability, fitness for a\r
10 // particular purpose, or non-infringement. SAMSUNG shall not be liable for any\r
11 // damages suffered by licensee as a result of using, modifying or distributing\r
12 // this software or its derivatives.\r
13 \r
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.\r
15 //\r
16 // Licensed under the Apache License, Version 2.0 (the "License");\r
17 // you may not use this file except in compliance with the License.\r
18 // You may obtain a copy of the License at\r
19 //\r
20 // http://www.apache.org/licenses/LICENSE-2.0\r
21 //\r
22 // Unless required by applicable law or agreed to in writing, software\r
23 // distributed under the License is distributed on an "AS IS" BASIS,\r
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
25 // See the License for the specific language governing permissions and\r
26 // limitations under the License.\r
27 //\r
28 \r
29 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts\r
30 // Some have been manually changed\r
31 \r
32 \r
33 namespace Tizen.NUI\r
34 {\r
35 \r
36     using System;\r
37     using System.Runtime.InteropServices;\r
38 \r
39 \r
40     public class TextEditor : View\r
41     {\r
42         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
43 \r
44         internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)\r
45         {\r
46             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
47         }\r
48 \r
49         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)\r
50         {\r
51             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
52         }\r
53 \r
54         ~TextEditor()\r
55         {\r
56             DisposeQueue.Instance.Add(this);\r
57         }\r
58 \r
59         public override void Dispose()\r
60         {\r
61             if (!Stage.IsInstalled())\r
62             {\r
63                 DisposeQueue.Instance.Add(this);\r
64                 return;\r
65             }\r
66 \r
67             lock (this)\r
68             {\r
69                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
70                 {\r
71                     if (swigCMemOwn)\r
72                     {\r
73                         swigCMemOwn = false;\r
74                         NDalicPINVOKE.delete_TextEditor(swigCPtr);\r
75                     }\r
76                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
77                 }\r
78                 global::System.GC.SuppressFinalize(this);\r
79                 base.Dispose();\r
80             }\r
81         }\r
82 \r
83 \r
84 \r
85         /**\r
86           * @brief Event arguments that passed via TextChanged signal\r
87           *\r
88           */\r
89         public class TextChangedEventArgs : EventArgs\r
90         {\r
91             private TextEditor _textEditor;\r
92             /**\r
93               * @brief TextEditor - is the texteditor control which has the text contents changed.\r
94               *\r
95               */\r
96             public TextEditor TextEditor\r
97             {\r
98                 get\r
99                 {\r
100                     return _textEditor;\r
101                 }\r
102                 set\r
103                 {\r
104                     _textEditor = value;\r
105                 }\r
106             }\r
107         }\r
108 \r
109         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
110         private delegate void TextChangedCallback(IntPtr textEditor);\r
111         private TextChangedCallback _textEditorTextChangedCallback;\r
112         private EventHandler<TextChangedEventArgs> _textEditorTextChangedEventHandler;\r
113 \r
114         /**\r
115           * @brief Event for TextChanged signal which can be used to subscribe/unsubscribe the event handler\r
116           * (in the type of TextChangedEventHandler-DaliEventHandler<object,TextChangedEventArgs>) \r
117           * provided by the user. TextChanged signal is emitted when the text changes.\r
118           */\r
119         public event EventHandler<TextChangedEventArgs> TextChanged\r
120         {\r
121             add\r
122             {\r
123                 if (_textEditorTextChangedCallback == null)\r
124                 {\r
125                     _textEditorTextChangedCallback = OnTextChanged;\r
126                     TextChangedSignal().Connect(_textEditorTextChangedCallback);\r
127                 }\r
128                 _textEditorTextChangedEventHandler += value;\r
129             }\r
130             remove\r
131             {\r
132                 if (_textEditorTextChangedCallback != null)\r
133                 {\r
134                     TextChangedSignal().Disconnect(_textEditorTextChangedCallback);\r
135                 }\r
136                 _textEditorTextChangedEventHandler -= value;\r
137             }\r
138         }\r
139 \r
140         private void OnTextChanged(IntPtr textEditor)\r
141         {\r
142             TextChangedEventArgs e = new TextChangedEventArgs();\r
143 \r
144             e.TextEditor = TextEditor.GetTextEditorFromPtr(textEditor);\r
145 \r
146             if (_textEditorTextChangedEventHandler != null)\r
147             {\r
148                 _textEditorTextChangedEventHandler(this, e);\r
149             }\r
150 \r
151         }\r
152 \r
153         internal static TextEditor GetTextEditorFromPtr(global::System.IntPtr cPtr)\r
154         {\r
155             TextEditor ret = new TextEditor(cPtr, false);\r
156             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
157             return ret;\r
158         }\r
159 \r
160 \r
161         internal class Property : global::System.IDisposable\r
162         {\r
163             private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
164             protected bool swigCMemOwn;\r
165 \r
166             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)\r
167             {\r
168                 swigCMemOwn = cMemoryOwn;\r
169                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
170             }\r
171 \r
172             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)\r
173             {\r
174                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
175             }\r
176 \r
177             ~Property()\r
178             {\r
179                 Dispose();\r
180             }\r
181 \r
182             public virtual void Dispose()\r
183             {\r
184                 lock (this)\r
185                 {\r
186                     if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
187                     {\r
188                         if (swigCMemOwn)\r
189                         {\r
190                             swigCMemOwn = false;\r
191                             NDalicPINVOKE.delete_TextEditor_Property(swigCPtr);\r
192                         }\r
193                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
194                     }\r
195                     global::System.GC.SuppressFinalize(this);\r
196                 }\r
197             }\r
198 \r
199             internal Property() : this(NDalicPINVOKE.new_TextEditor_Property(), true)\r
200             {\r
201                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
202             }\r
203 \r
204             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextEditor_Property_RENDERING_BACKEND_get();\r
205             internal static readonly int TEXT = NDalicPINVOKE.TextEditor_Property_TEXT_get();\r
206             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextEditor_Property_TEXT_COLOR_get();\r
207             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_FONT_FAMILY_get();\r
208             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextEditor_Property_FONT_STYLE_get();\r
209             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextEditor_Property_POINT_SIZE_get();\r
210             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextEditor_Property_HORIZONTAL_ALIGNMENT_get();\r
211             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextEditor_Property_SCROLL_THRESHOLD_get();\r
212             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextEditor_Property_SCROLL_SPEED_get();\r
213             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_PRIMARY_CURSOR_COLOR_get();\r
214             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_SECONDARY_CURSOR_COLOR_get();\r
215             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextEditor_Property_ENABLE_CURSOR_BLINK_get();\r
216             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_INTERVAL_get();\r
217             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_DURATION_get();\r
218             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextEditor_Property_CURSOR_WIDTH_get();\r
219             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_IMAGE_get();\r
220             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_PRESSED_IMAGE_get();\r
221             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_LEFT_get();\r
222             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();\r
223             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();\r
224             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();\r
225             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();\r
226             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();\r
227             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextEditor_Property_SELECTION_HIGHLIGHT_COLOR_get();\r
228             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextEditor_Property_DECORATION_BOUNDING_BOX_get();\r
229             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextEditor_Property_ENABLE_MARKUP_get();\r
230             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextEditor_Property_INPUT_COLOR_get();\r
231             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_FAMILY_get();\r
232             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_STYLE_get();\r
233             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextEditor_Property_INPUT_POINT_SIZE_get();\r
234             internal static readonly int LINE_SPACING = NDalicPINVOKE.TextEditor_Property_LINE_SPACING_get();\r
235             internal static readonly int INPUT_LINE_SPACING = NDalicPINVOKE.TextEditor_Property_INPUT_LINE_SPACING_get();\r
236             internal static readonly int UNDERLINE = NDalicPINVOKE.TextEditor_Property_UNDERLINE_get();\r
237             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextEditor_Property_INPUT_UNDERLINE_get();\r
238             internal static readonly int SHADOW = NDalicPINVOKE.TextEditor_Property_SHADOW_get();\r
239             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextEditor_Property_INPUT_SHADOW_get();\r
240             internal static readonly int EMBOSS = NDalicPINVOKE.TextEditor_Property_EMBOSS_get();\r
241             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextEditor_Property_INPUT_EMBOSS_get();\r
242             internal static readonly int OUTLINE = NDalicPINVOKE.TextEditor_Property_OUTLINE_get();\r
243             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextEditor_Property_INPUT_OUTLINE_get();\r
244 \r
245         }\r
246 \r
247         internal class InputStyle : global::System.IDisposable\r
248         {\r
249             private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
250             protected bool swigCMemOwn;\r
251 \r
252             internal InputStyle(global::System.IntPtr cPtr, bool cMemoryOwn)\r
253             {\r
254                 swigCMemOwn = cMemoryOwn;\r
255                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
256             }\r
257 \r
258             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputStyle obj)\r
259             {\r
260                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
261             }\r
262 \r
263             ~InputStyle()\r
264             {\r
265                 Dispose();\r
266             }\r
267 \r
268             public virtual void Dispose()\r
269             {\r
270                 lock (this)\r
271                 {\r
272                     if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
273                     {\r
274                         if (swigCMemOwn)\r
275                         {\r
276                             swigCMemOwn = false;\r
277                             NDalicPINVOKE.delete_TextEditor_InputStyle(swigCPtr);\r
278                         }\r
279                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
280                     }\r
281                     global::System.GC.SuppressFinalize(this);\r
282                 }\r
283             }\r
284 \r
285             internal InputStyle() : this(NDalicPINVOKE.new_TextEditor_InputStyle(), true)\r
286             {\r
287                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
288             }\r
289 \r
290             internal enum Mask\r
291             {\r
292                 None = 0x0000,\r
293                 Color = 0x0001,\r
294                 FontFamily = 0x0002,\r
295                 PointSize = 0x0004,\r
296                 FontStyle = 0x0008,\r
297                 LineSpacing = 0x0010,\r
298                 Underline = 0x0020,\r
299                 Shadow = 0x0040,\r
300                 Emboss = 0x0080,\r
301                 Outline = 0x0100\r
302             }\r
303 \r
304         }\r
305 \r
306         public TextEditor() : this(NDalicPINVOKE.TextEditor_New(), true)\r
307         {\r
308             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
309 \r
310         }\r
311         internal TextEditor(TextEditor handle) : this(NDalicPINVOKE.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)\r
312         {\r
313             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
314         }\r
315 \r
316         internal TextEditor Assign(TextEditor handle)\r
317         {\r
318             TextEditor ret = new TextEditor(NDalicPINVOKE.TextEditor_Assign(swigCPtr, TextEditor.getCPtr(handle)), false);\r
319             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
320             return ret;\r
321         }\r
322 \r
323         public new static TextEditor DownCast(BaseHandle handle)\r
324         {\r
325             TextEditor ret = new TextEditor(NDalicPINVOKE.TextEditor_DownCast(BaseHandle.getCPtr(handle)), true);\r
326             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
327             return ret;\r
328         }\r
329 \r
330         internal TextEditorSignal TextChangedSignal()\r
331         {\r
332             TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);\r
333             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
334             return ret;\r
335         }\r
336 \r
337         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()\r
338         {\r
339             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);\r
340             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
341             return ret;\r
342         }\r
343 \r
344         internal enum PropertyRange\r
345         {\r
346             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,\r
347             PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000\r
348         }\r
349 \r
350         public int RenderingBackend\r
351         {\r
352             get\r
353             {\r
354                 int temp = 0;\r
355                 GetProperty(TextEditor.Property.RENDERING_BACKEND).Get(ref temp);\r
356                 return temp;\r
357             }\r
358             set\r
359             {\r
360                 SetProperty(TextEditor.Property.RENDERING_BACKEND, new Tizen.NUI.PropertyValue(value));\r
361             }\r
362         }\r
363         public string Text\r
364         {\r
365             get\r
366             {\r
367                 string temp;\r
368                 GetProperty(TextEditor.Property.TEXT).Get(out temp);\r
369                 return temp;\r
370             }\r
371             set\r
372             {\r
373                 SetProperty(TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue(value));\r
374             }\r
375         }\r
376         public Vector4 TextColor\r
377         {\r
378             get\r
379             {\r
380                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);\r
381                 GetProperty(TextEditor.Property.TEXT_COLOR).Get(temp);\r
382                 return temp;\r
383             }\r
384             set\r
385             {\r
386                 SetProperty(TextEditor.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));\r
387             }\r
388         }\r
389         public string FontFamily\r
390         {\r
391             get\r
392             {\r
393                 string temp;\r
394                 GetProperty(TextEditor.Property.FONT_FAMILY).Get(out temp);\r
395                 return temp;\r
396             }\r
397             set\r
398             {\r
399                 SetProperty(TextEditor.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));\r
400             }\r
401         }\r
402         public PropertyMap FontStyle\r
403         {\r
404             get\r
405             {\r
406                 PropertyMap temp = new PropertyMap();\r
407                 GetProperty(TextEditor.Property.FONT_STYLE).Get(temp);\r
408                 return temp;\r
409             }\r
410             set\r
411             {\r
412                 SetProperty(TextEditor.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));\r
413             }\r
414         }\r
415         public float PointSize\r
416         {\r
417             get\r
418             {\r
419                 float temp = 0.0f;\r
420                 GetProperty(TextEditor.Property.POINT_SIZE).Get(ref temp);\r
421                 return temp;\r
422             }\r
423             set\r
424             {\r
425                 SetProperty(TextEditor.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));\r
426             }\r
427         }\r
428         public string HorizontalAlignment\r
429         {\r
430             get\r
431             {\r
432                 string temp;\r
433                 GetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp);\r
434                 return temp;\r
435             }\r
436             set\r
437             {\r
438                 SetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));\r
439             }\r
440         }\r
441         public float ScrollThreshold\r
442         {\r
443             get\r
444             {\r
445                 float temp = 0.0f;\r
446                 GetProperty(TextEditor.Property.SCROLL_THRESHOLD).Get(ref temp);\r
447                 return temp;\r
448             }\r
449             set\r
450             {\r
451                 SetProperty(TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));\r
452             }\r
453         }\r
454         public float ScrollSpeed\r
455         {\r
456             get\r
457             {\r
458                 float temp = 0.0f;\r
459                 GetProperty(TextEditor.Property.SCROLL_SPEED).Get(ref temp);\r
460                 return temp;\r
461             }\r
462             set\r
463             {\r
464                 SetProperty(TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));\r
465             }\r
466         }\r
467         public Vector4 PrimaryCursorColor\r
468         {\r
469             get\r
470             {\r
471                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);\r
472                 GetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR).Get(temp);\r
473                 return temp;\r
474             }\r
475             set\r
476             {\r
477                 SetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));\r
478             }\r
479         }\r
480         public Vector4 SecondaryCursorColor\r
481         {\r
482             get\r
483             {\r
484                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);\r
485                 GetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR).Get(temp);\r
486                 return temp;\r
487             }\r
488             set\r
489             {\r
490                 SetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));\r
491             }\r
492         }\r
493         public bool EnableCursorBlink\r
494         {\r
495             get\r
496             {\r
497                 bool temp = false;\r
498                 GetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK).Get(ref temp);\r
499                 return temp;\r
500             }\r
501             set\r
502             {\r
503                 SetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));\r
504             }\r
505         }\r
506         public float CursorBlinkInterval\r
507         {\r
508             get\r
509             {\r
510                 float temp = 0.0f;\r
511                 GetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(ref temp);\r
512                 return temp;\r
513             }\r
514             set\r
515             {\r
516                 SetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));\r
517             }\r
518         }\r
519         public float CursorBlinkDuration\r
520         {\r
521             get\r
522             {\r
523                 float temp = 0.0f;\r
524                 GetProperty(TextEditor.Property.CURSOR_BLINK_DURATION).Get(ref temp);\r
525                 return temp;\r
526             }\r
527             set\r
528             {\r
529                 SetProperty(TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));\r
530             }\r
531         }\r
532         public int CursorWidth\r
533         {\r
534             get\r
535             {\r
536                 int temp = 0;\r
537                 GetProperty(TextEditor.Property.CURSOR_WIDTH).Get(ref temp);\r
538                 return temp;\r
539             }\r
540             set\r
541             {\r
542                 SetProperty(TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));\r
543             }\r
544         }\r
545         public string GrabHandleImage\r
546         {\r
547             get\r
548             {\r
549                 string temp;\r
550                 GetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);\r
551                 return temp;\r
552             }\r
553             set\r
554             {\r
555                 SetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));\r
556             }\r
557         }\r
558         public string GrabHandlePressedImage\r
559         {\r
560             get\r
561             {\r
562                 string temp;\r
563                 GetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);\r
564                 return temp;\r
565             }\r
566             set\r
567             {\r
568                 SetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));\r
569             }\r
570         }\r
571         public PropertyMap SelectionHandleImageLeft\r
572         {\r
573             get\r
574             {\r
575                 PropertyMap temp = new PropertyMap();\r
576                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);\r
577                 return temp;\r
578             }\r
579             set\r
580             {\r
581                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));\r
582             }\r
583         }\r
584         public PropertyMap SelectionHandleImageRight\r
585         {\r
586             get\r
587             {\r
588                 PropertyMap temp = new PropertyMap();\r
589                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);\r
590                 return temp;\r
591             }\r
592             set\r
593             {\r
594                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));\r
595             }\r
596         }\r
597         public PropertyMap SelectionHandlePressedImageLeft\r
598         {\r
599             get\r
600             {\r
601                 PropertyMap temp = new PropertyMap();\r
602                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);\r
603                 return temp;\r
604             }\r
605             set\r
606             {\r
607                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));\r
608             }\r
609         }\r
610         public PropertyMap SelectionHandlePressedImageRight\r
611         {\r
612             get\r
613             {\r
614                 PropertyMap temp = new PropertyMap();\r
615                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);\r
616                 return temp;\r
617             }\r
618             set\r
619             {\r
620                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));\r
621             }\r
622         }\r
623         public PropertyMap SelectionHandleMarkerImageLeft\r
624         {\r
625             get\r
626             {\r
627                 PropertyMap temp = new PropertyMap();\r
628                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);\r
629                 return temp;\r
630             }\r
631             set\r
632             {\r
633                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));\r
634             }\r
635         }\r
636         public PropertyMap SelectionHandleMarkerImageRight\r
637         {\r
638             get\r
639             {\r
640                 PropertyMap temp = new PropertyMap();\r
641                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);\r
642                 return temp;\r
643             }\r
644             set\r
645             {\r
646                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));\r
647             }\r
648         }\r
649         public Vector4 SelectionHighlightColor\r
650         {\r
651             get\r
652             {\r
653                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);\r
654                 GetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);\r
655                 return temp;\r
656             }\r
657             set\r
658             {\r
659                 SetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));\r
660             }\r
661         }\r
662         public RectInteger DecorationBoundingBox\r
663         {\r
664             get\r
665             {\r
666                 RectInteger temp = new RectInteger(0, 0, 0, 0);\r
667                 GetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX).Get(temp);\r
668                 return temp;\r
669             }\r
670             set\r
671             {\r
672                 SetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));\r
673             }\r
674         }\r
675         public bool EnableMarkup\r
676         {\r
677             get\r
678             {\r
679                 bool temp = false;\r
680                 GetProperty(TextEditor.Property.ENABLE_MARKUP).Get(ref temp);\r
681                 return temp;\r
682             }\r
683             set\r
684             {\r
685                 SetProperty(TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));\r
686             }\r
687         }\r
688         public Vector4 InputColor\r
689         {\r
690             get\r
691             {\r
692                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);\r
693                 GetProperty(TextEditor.Property.INPUT_COLOR).Get(temp);\r
694                 return temp;\r
695             }\r
696             set\r
697             {\r
698                 SetProperty(TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));\r
699             }\r
700         }\r
701         public string InputFontFamily\r
702         {\r
703             get\r
704             {\r
705                 string temp;\r
706                 GetProperty(TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);\r
707                 return temp;\r
708             }\r
709             set\r
710             {\r
711                 SetProperty(TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));\r
712             }\r
713         }\r
714         public PropertyMap InputFontStyle\r
715         {\r
716             get\r
717             {\r
718                 PropertyMap temp = new PropertyMap();\r
719                 GetProperty(TextEditor.Property.INPUT_FONT_STYLE).Get(temp);\r
720                 return temp;\r
721             }\r
722             set\r
723             {\r
724                 SetProperty(TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));\r
725             }\r
726         }\r
727         public float InputPointSize\r
728         {\r
729             get\r
730             {\r
731                 float temp = 0.0f;\r
732                 GetProperty(TextEditor.Property.INPUT_POINT_SIZE).Get(ref temp);\r
733                 return temp;\r
734             }\r
735             set\r
736             {\r
737                 SetProperty(TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));\r
738             }\r
739         }\r
740         public float LineSpacing\r
741         {\r
742             get\r
743             {\r
744                 float temp = 0.0f;\r
745                 GetProperty(TextEditor.Property.LINE_SPACING).Get(ref temp);\r
746                 return temp;\r
747             }\r
748             set\r
749             {\r
750                 SetProperty(TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue(value));\r
751             }\r
752         }\r
753         public float InputLineSpacing\r
754         {\r
755             get\r
756             {\r
757                 float temp = 0.0f;\r
758                 GetProperty(TextEditor.Property.INPUT_LINE_SPACING).Get(ref temp);\r
759                 return temp;\r
760             }\r
761             set\r
762             {\r
763                 SetProperty(TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue(value));\r
764             }\r
765         }\r
766         public PropertyMap Underline\r
767         {\r
768             get\r
769             {\r
770                 PropertyMap temp = new PropertyMap();\r
771                 GetProperty(TextEditor.Property.UNDERLINE).Get(temp);\r
772                 return temp;\r
773             }\r
774             set\r
775             {\r
776                 SetProperty(TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));\r
777             }\r
778         }\r
779         public PropertyMap InputUnderline\r
780         {\r
781             get\r
782             {\r
783                 PropertyMap temp = new PropertyMap();\r
784                 GetProperty(TextEditor.Property.INPUT_UNDERLINE).Get(temp);\r
785                 return temp;\r
786             }\r
787             set\r
788             {\r
789                 SetProperty(TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));\r
790             }\r
791         }\r
792         public PropertyMap Shadow\r
793         {\r
794             get\r
795             {\r
796                 PropertyMap temp = new PropertyMap();\r
797                 GetProperty(TextEditor.Property.SHADOW).Get(temp);\r
798                 return temp;\r
799             }\r
800             set\r
801             {\r
802                 SetProperty(TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue(value));\r
803             }\r
804         }\r
805         public PropertyMap InputShadow\r
806         {\r
807             get\r
808             {\r
809                 PropertyMap temp = new PropertyMap();\r
810                 GetProperty(TextEditor.Property.INPUT_SHADOW).Get(temp);\r
811                 return temp;\r
812             }\r
813             set\r
814             {\r
815                 SetProperty(TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));\r
816             }\r
817         }\r
818         public PropertyMap Emboss\r
819         {\r
820             get\r
821             {\r
822                 PropertyMap temp = new PropertyMap();\r
823                 GetProperty(TextEditor.Property.EMBOSS).Get(temp);\r
824                 return temp;\r
825             }\r
826             set\r
827             {\r
828                 SetProperty(TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));\r
829             }\r
830         }\r
831         public PropertyMap InputEmboss\r
832         {\r
833             get\r
834             {\r
835                 PropertyMap temp = new PropertyMap();\r
836                 GetProperty(TextEditor.Property.INPUT_EMBOSS).Get(temp);\r
837                 return temp;\r
838             }\r
839             set\r
840             {\r
841                 SetProperty(TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));\r
842             }\r
843         }\r
844         public PropertyMap Outline\r
845         {\r
846             get\r
847             {\r
848                 PropertyMap temp = new PropertyMap();\r
849                 GetProperty(TextEditor.Property.OUTLINE).Get(temp);\r
850                 return temp;\r
851             }\r
852             set\r
853             {\r
854                 SetProperty(TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));\r
855             }\r
856         }\r
857         public PropertyMap InputOutline\r
858         {\r
859             get\r
860             {\r
861                 PropertyMap temp = new PropertyMap();\r
862                 GetProperty(TextEditor.Property.INPUT_OUTLINE).Get(temp);\r
863                 return temp;\r
864             }\r
865             set\r
866             {\r
867                 SetProperty(TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));\r
868             }\r
869         }\r
870 \r
871     }\r
872 \r
873 }\r