e0a75bb771228b9477899c01c3fdb18269efe907
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / TextField.cs
1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 *
15 */
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.9
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Tizen.NUI
28 {
29
30     using System;
31     using System.Runtime.InteropServices;
32
33
34     public class TextField : View
35     {
36         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
37
38         internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
39         {
40             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
41         }
42
43         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
44         {
45             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
46         }
47
48         ~TextField()
49         {
50             DisposeQueue.Instance.Add(this);
51         }
52
53         public override void Dispose()
54         {
55             if (!Stage.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_TextField(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         public class TextChangedEventArgs : EventArgs
80         {
81             private TextField _textField;
82
83             public TextField TextField
84             {
85                 get
86                 {
87                     return _textField;
88                 }
89                 set
90                 {
91                     _textField = value;
92                 }
93             }
94         }
95
96         public class MaxLengthReachedEventArgs : EventArgs
97         {
98             private TextField _textField;
99
100             public TextField TextField
101             {
102                 get
103                 {
104                     return _textField;
105                 }
106                 set
107                 {
108                     _textField = value;
109                 }
110             }
111         }
112
113
114         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
115         private delegate void TextChangedCallbackDelegate(IntPtr textField);
116         private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
117         private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
118
119         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
120         private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
121         private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
122         private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
123
124         public event EventHandler<TextChangedEventArgs> TextChanged
125         {
126             add
127             {
128                 if (_textFieldTextChangedEventHandler == null)
129                 {
130                     _textFieldTextChangedCallbackDelegate = (OnTextChanged);
131                     TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
132                 }
133                 _textFieldTextChangedEventHandler += value;
134             }
135             remove
136             {
137                 _textFieldTextChangedEventHandler -= value;
138                 if (_textFieldTextChangedEventHandler == null && _textFieldTextChangedCallbackDelegate != null)
139                 {
140                     TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
141                 }
142             }
143         }
144
145         private void OnTextChanged(IntPtr textField)
146         {
147             TextChangedEventArgs e = new TextChangedEventArgs();
148
149             // Populate all members of "e" (TextChangedEventArgs) with real data
150             e.TextField = Tizen.NUI.TextField.GetTextFieldFromPtr(textField);
151
152             if (_textFieldTextChangedEventHandler != null)
153             {
154                 //here we send all data to user event handlers
155                 _textFieldTextChangedEventHandler(this, e);
156             }
157
158         }
159
160         public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
161         {
162             add
163             {
164                 if (_textFieldMaxLengthReachedEventHandler == null)
165                 {
166                     _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
167                     MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
168                 }
169                 _textFieldMaxLengthReachedEventHandler += value;
170             }
171             remove
172             {
173                 if (_textFieldMaxLengthReachedEventHandler == null && _textFieldMaxLengthReachedCallbackDelegate != null)
174                 {
175                     this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
176                 }
177                 _textFieldMaxLengthReachedEventHandler -= value;
178             }
179         }
180
181         private void OnMaxLengthReached(IntPtr textField)
182         {
183             MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
184
185             // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
186             e.TextField = Tizen.NUI.TextField.GetTextFieldFromPtr(textField);
187
188             if (_textFieldMaxLengthReachedEventHandler != null)
189             {
190                 //here we send all data to user event handlers
191                 _textFieldMaxLengthReachedEventHandler(this, e);
192             }
193
194         }
195
196         internal static TextField GetTextFieldFromPtr(global::System.IntPtr cPtr)
197         {
198             TextField ret = new TextField(cPtr, false);
199             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
200             return ret;
201         }
202
203
204         internal class Property : global::System.IDisposable
205         {
206             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
207             protected bool swigCMemOwn;
208
209             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
210             {
211                 swigCMemOwn = cMemoryOwn;
212                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
213             }
214
215             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
216             {
217                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
218             }
219
220             ~Property()
221             {
222                 Dispose();
223             }
224
225             public virtual void Dispose()
226             {
227                 lock (this)
228                 {
229                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
230                     {
231                         if (swigCMemOwn)
232                         {
233                             swigCMemOwn = false;
234                             NDalicPINVOKE.delete_TextField_Property(swigCPtr);
235                         }
236                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
237                     }
238                     global::System.GC.SuppressFinalize(this);
239                 }
240             }
241
242             internal Property() : this(NDalicPINVOKE.new_TextField_Property(), true)
243             {
244                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
245             }
246
247             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
248             internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
249             internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
250             internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
251             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
252             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
253             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
254             internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
255             internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
256             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
257             internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
258             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
259             internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
260             internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
261             internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
262             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
263             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
264             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
265             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
266             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
267             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
268             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
269             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
270             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
271             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
272             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
273             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
274             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
275             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
276             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
277             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
278             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
279             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
280             internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
281             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
282             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
283             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
284             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
285             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
286             internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
287             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
288             internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
289             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
290             internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
291             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
292             internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
293             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
294
295         }
296
297         internal class InputStyle : global::System.IDisposable
298         {
299             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
300             protected bool swigCMemOwn;
301
302             internal InputStyle(global::System.IntPtr cPtr, bool cMemoryOwn)
303             {
304                 swigCMemOwn = cMemoryOwn;
305                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
306             }
307
308             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputStyle obj)
309             {
310                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
311             }
312
313             ~InputStyle()
314             {
315                 Dispose();
316             }
317
318             public virtual void Dispose()
319             {
320                 lock (this)
321                 {
322                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
323                     {
324                         if (swigCMemOwn)
325                         {
326                             swigCMemOwn = false;
327                             NDalicPINVOKE.delete_TextField_InputStyle(swigCPtr);
328                         }
329                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
330                     }
331                     global::System.GC.SuppressFinalize(this);
332                 }
333             }
334
335             internal InputStyle() : this(NDalicPINVOKE.new_TextField_InputStyle(), true)
336             {
337                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
338             }
339
340             internal enum Mask
341             {
342                 None = 0x0000,
343                 Color = 0x0001,
344                 FontFamily = 0x0002,
345                 PointSize = 0x0004,
346                 FontStyle = 0x0008,
347                 Underline = 0x0010,
348                 Shadow = 0x0020,
349                 Emboss = 0x0040,
350                 Outline = 0x0080
351             }
352
353         }
354
355         public TextField() : this(NDalicPINVOKE.TextField_New(), true)
356         {
357             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
358
359         }
360         internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
361         {
362             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363         }
364
365         internal TextField Assign(TextField handle)
366         {
367             TextField ret = new TextField(NDalicPINVOKE.TextField_Assign(swigCPtr, TextField.getCPtr(handle)), false);
368             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369             return ret;
370         }
371
372         public new static TextField DownCast(BaseHandle handle)
373         {
374             TextField ret = new TextField(NDalicPINVOKE.TextField_DownCast(BaseHandle.getCPtr(handle)), true);
375             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376             return ret;
377         }
378
379         internal TextFieldSignal TextChangedSignal()
380         {
381             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
382             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
383             return ret;
384         }
385
386         internal TextFieldSignal MaxLengthReachedSignal()
387         {
388             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
389             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
390             return ret;
391         }
392
393         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
394         {
395             SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t(NDalicPINVOKE.TextField_InputStyleChangedSignal(swigCPtr), false);
396             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
397             return ret;
398         }
399
400         internal enum PropertyRange
401         {
402             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
403             PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
404         }
405
406         internal enum ExceedPolicyType
407         {
408             ExceedPolicyOriginal,
409             ExceedPolicyClip
410         }
411
412         public int RenderingBackend
413         {
414             get
415             {
416                 int temp = 0;
417                 GetProperty(TextField.Property.RENDERING_BACKEND).Get(ref temp);
418                 return temp;
419             }
420             set
421             {
422                 SetProperty(TextField.Property.RENDERING_BACKEND, new Tizen.NUI.PropertyValue(value));
423             }
424         }
425         public string Text
426         {
427             get
428             {
429                 string temp;
430                 GetProperty(TextField.Property.TEXT).Get(out temp);
431                 return temp;
432             }
433             set
434             {
435                 SetProperty(TextField.Property.TEXT, new Tizen.NUI.PropertyValue(value));
436             }
437         }
438         public string PlaceholderText
439         {
440             get
441             {
442                 string temp;
443                 GetProperty(TextField.Property.PLACEHOLDER_TEXT).Get(out temp);
444                 return temp;
445             }
446             set
447             {
448                 SetProperty(TextField.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue(value));
449             }
450         }
451         public string PlaceholderTextFocused
452         {
453             get
454             {
455                 string temp;
456                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED).Get(out temp);
457                 return temp;
458             }
459             set
460             {
461                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED, new Tizen.NUI.PropertyValue(value));
462             }
463         }
464         public string FontFamily
465         {
466             get
467             {
468                 string temp;
469                 GetProperty(TextField.Property.FONT_FAMILY).Get(out temp);
470                 return temp;
471             }
472             set
473             {
474                 SetProperty(TextField.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
475             }
476         }
477         public PropertyMap FontStyle
478         {
479             get
480             {
481                 PropertyMap temp = new PropertyMap();
482                 GetProperty(TextField.Property.FONT_STYLE).Get(temp);
483                 return temp;
484             }
485             set
486             {
487                 SetProperty(TextField.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
488             }
489         }
490         public float PointSize
491         {
492             get
493             {
494                 float temp = 0.0f;
495                 GetProperty(TextField.Property.POINT_SIZE).Get(ref temp);
496                 return temp;
497             }
498             set
499             {
500                 SetProperty(TextField.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
501             }
502         }
503         public int MaxLength
504         {
505             get
506             {
507                 int temp = 0;
508                 GetProperty(TextField.Property.MAX_LENGTH).Get(ref temp);
509                 return temp;
510             }
511             set
512             {
513                 SetProperty(TextField.Property.MAX_LENGTH, new Tizen.NUI.PropertyValue(value));
514             }
515         }
516         public int ExceedPolicy
517         {
518             get
519             {
520                 int temp = 0;
521                 GetProperty(TextField.Property.EXCEED_POLICY).Get(ref temp);
522                 return temp;
523             }
524             set
525             {
526                 SetProperty(TextField.Property.EXCEED_POLICY, new Tizen.NUI.PropertyValue(value));
527             }
528         }
529         public string HorizontalAlignment
530         {
531             get
532             {
533                 string temp;
534                 GetProperty(TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp);
535                 return temp;
536             }
537             set
538             {
539                 SetProperty(TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
540             }
541         }
542         public string VerticalAlignment
543         {
544             get
545             {
546                 string temp;
547                 GetProperty(TextField.Property.VERTICAL_ALIGNMENT).Get(out temp);
548                 return temp;
549             }
550             set
551             {
552                 SetProperty(TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
553             }
554         }
555         public Color TextColor
556         {
557             get
558             {
559                 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
560                 GetProperty(TextField.Property.TEXT_COLOR).Get(temp);
561                 return temp;
562             }
563             set
564             {
565                 SetProperty(TextField.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
566             }
567         }
568         public Vector4 PlaceholderTextColor
569         {
570             get
571             {
572                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
573                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
574                 return temp;
575             }
576             set
577             {
578                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
579             }
580         }
581         public Vector2 ShadowOffset
582         {
583             get
584             {
585                 Vector2 temp = new Vector2(0.0f, 0.0f);
586                 GetProperty(TextField.Property.SHADOW_OFFSET).Get(temp);
587                 return temp;
588             }
589             set
590             {
591                 SetProperty(TextField.Property.SHADOW_OFFSET, new Tizen.NUI.PropertyValue(value));
592             }
593         }
594         public Vector4 ShadowColor
595         {
596             get
597             {
598                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
599                 GetProperty(TextField.Property.SHADOW_COLOR).Get(temp);
600                 return temp;
601             }
602             set
603             {
604                 SetProperty(TextField.Property.SHADOW_COLOR, new Tizen.NUI.PropertyValue(value));
605             }
606         }
607         public Vector4 PrimaryCursorColor
608         {
609             get
610             {
611                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
612                 GetProperty(TextField.Property.PRIMARY_CURSOR_COLOR).Get(temp);
613                 return temp;
614             }
615             set
616             {
617                 SetProperty(TextField.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
618             }
619         }
620         public Vector4 SecondaryCursorColor
621         {
622             get
623             {
624                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
625                 GetProperty(TextField.Property.SECONDARY_CURSOR_COLOR).Get(temp);
626                 return temp;
627             }
628             set
629             {
630                 SetProperty(TextField.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
631             }
632         }
633         public bool EnableCursorBlink
634         {
635             get
636             {
637                 bool temp = false;
638                 GetProperty(TextField.Property.ENABLE_CURSOR_BLINK).Get(ref temp);
639                 return temp;
640             }
641             set
642             {
643                 SetProperty(TextField.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
644             }
645         }
646         public float CursorBlinkInterval
647         {
648             get
649             {
650                 float temp = 0.0f;
651                 GetProperty(TextField.Property.CURSOR_BLINK_INTERVAL).Get(ref temp);
652                 return temp;
653             }
654             set
655             {
656                 SetProperty(TextField.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
657             }
658         }
659         public float CursorBlinkDuration
660         {
661             get
662             {
663                 float temp = 0.0f;
664                 GetProperty(TextField.Property.CURSOR_BLINK_DURATION).Get(ref temp);
665                 return temp;
666             }
667             set
668             {
669                 SetProperty(TextField.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
670             }
671         }
672         public int CursorWidth
673         {
674             get
675             {
676                 int temp = 0;
677                 GetProperty(TextField.Property.CURSOR_WIDTH).Get(ref temp);
678                 return temp;
679             }
680             set
681             {
682                 SetProperty(TextField.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
683             }
684         }
685         public string GrabHandleImage
686         {
687             get
688             {
689                 string temp;
690                 GetProperty(TextField.Property.GRAB_HANDLE_IMAGE).Get(out temp);
691                 return temp;
692             }
693             set
694             {
695                 SetProperty(TextField.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
696             }
697         }
698         public string GrabHandlePressedImage
699         {
700             get
701             {
702                 string temp;
703                 GetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
704                 return temp;
705             }
706             set
707             {
708                 SetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
709             }
710         }
711         public float ScrollThreshold
712         {
713             get
714             {
715                 float temp = 0.0f;
716                 GetProperty(TextField.Property.SCROLL_THRESHOLD).Get(ref temp);
717                 return temp;
718             }
719             set
720             {
721                 SetProperty(TextField.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
722             }
723         }
724         public float ScrollSpeed
725         {
726             get
727             {
728                 float temp = 0.0f;
729                 GetProperty(TextField.Property.SCROLL_SPEED).Get(ref temp);
730                 return temp;
731             }
732             set
733             {
734                 SetProperty(TextField.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
735             }
736         }
737         public PropertyMap SelectionHandleImageLeft
738         {
739             get
740             {
741                 PropertyMap temp = new PropertyMap();
742                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
743                 return temp;
744             }
745             set
746             {
747                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
748             }
749         }
750         public PropertyMap SelectionHandleImageRight
751         {
752             get
753             {
754                 PropertyMap temp = new PropertyMap();
755                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
756                 return temp;
757             }
758             set
759             {
760                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
761             }
762         }
763         public PropertyMap SelectionHandlePressedImageLeft
764         {
765             get
766             {
767                 PropertyMap temp = new PropertyMap();
768                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
769                 return temp;
770             }
771             set
772             {
773                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
774             }
775         }
776         public PropertyMap SelectionHandlePressedImageRight
777         {
778             get
779             {
780                 PropertyMap temp = new PropertyMap();
781                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
782                 return temp;
783             }
784             set
785             {
786                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
787             }
788         }
789         public PropertyMap SelectionHandleMarkerImageLeft
790         {
791             get
792             {
793                 PropertyMap temp = new PropertyMap();
794                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
795                 return temp;
796             }
797             set
798             {
799                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
800             }
801         }
802         public PropertyMap SelectionHandleMarkerImageRight
803         {
804             get
805             {
806                 PropertyMap temp = new PropertyMap();
807                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
808                 return temp;
809             }
810             set
811             {
812                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
813             }
814         }
815         public Vector4 SelectionHighlightColor
816         {
817             get
818             {
819                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
820                 GetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
821                 return temp;
822             }
823             set
824             {
825                 SetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
826             }
827         }
828         public Rectangle DecorationBoundingBox
829         {
830             get
831             {
832                 Rectangle temp = new Rectangle(0, 0, 0, 0);
833                 GetProperty(TextField.Property.DECORATION_BOUNDING_BOX).Get(temp);
834                 return temp;
835             }
836             set
837             {
838                 SetProperty(TextField.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
839             }
840         }
841         public PropertyMap InputMethodSettings
842         {
843             get
844             {
845                 PropertyMap temp = new PropertyMap();
846                 GetProperty(TextField.Property.INPUT_METHOD_SETTINGS).Get(temp);
847                 return temp;
848             }
849             set
850             {
851                 SetProperty(TextField.Property.INPUT_METHOD_SETTINGS, new Tizen.NUI.PropertyValue(value));
852             }
853         }
854         public Vector4 InputColor
855         {
856             get
857             {
858                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
859                 GetProperty(TextField.Property.INPUT_COLOR).Get(temp);
860                 return temp;
861             }
862             set
863             {
864                 SetProperty(TextField.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
865             }
866         }
867         public bool EnableMarkup
868         {
869             get
870             {
871                 bool temp = false;
872                 GetProperty(TextField.Property.ENABLE_MARKUP).Get(ref temp);
873                 return temp;
874             }
875             set
876             {
877                 SetProperty(TextField.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
878             }
879         }
880         public string InputFontFamily
881         {
882             get
883             {
884                 string temp;
885                 GetProperty(TextField.Property.INPUT_FONT_FAMILY).Get(out temp);
886                 return temp;
887             }
888             set
889             {
890                 SetProperty(TextField.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
891             }
892         }
893         public PropertyMap InputFontStyle
894         {
895             get
896             {
897                 PropertyMap temp = new PropertyMap();
898                 GetProperty(TextField.Property.INPUT_FONT_STYLE).Get(temp);
899                 return temp;
900             }
901             set
902             {
903                 SetProperty(TextField.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
904             }
905         }
906         public float InputPointSize
907         {
908             get
909             {
910                 float temp = 0.0f;
911                 GetProperty(TextField.Property.INPUT_POINT_SIZE).Get(ref temp);
912                 return temp;
913             }
914             set
915             {
916                 SetProperty(TextField.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
917             }
918         }
919         public PropertyMap Underline
920         {
921             get
922             {
923                 PropertyMap temp = new PropertyMap();
924                 GetProperty(TextField.Property.UNDERLINE).Get(temp);
925                 return temp;
926             }
927             set
928             {
929                 SetProperty(TextField.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
930             }
931         }
932         public PropertyMap InputUnderline
933         {
934             get
935             {
936                 PropertyMap temp = new PropertyMap();
937                 GetProperty(TextField.Property.INPUT_UNDERLINE).Get(temp);
938                 return temp;
939             }
940             set
941             {
942                 SetProperty(TextField.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
943             }
944         }
945         public PropertyMap Shadow
946         {
947             get
948             {
949                 PropertyMap temp = new PropertyMap();
950                 GetProperty(TextField.Property.SHADOW).Get(temp);
951                 return temp;
952             }
953             set
954             {
955                 SetProperty(TextField.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
956             }
957         }
958         public PropertyMap InputShadow
959         {
960             get
961             {
962                 PropertyMap temp = new PropertyMap();
963                 GetProperty(TextField.Property.INPUT_SHADOW).Get(temp);
964                 return temp;
965             }
966             set
967             {
968                 SetProperty(TextField.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
969             }
970         }
971         public PropertyMap Emboss
972         {
973             get
974             {
975                 PropertyMap temp = new PropertyMap();
976                 GetProperty(TextField.Property.EMBOSS).Get(temp);
977                 return temp;
978             }
979             set
980             {
981                 SetProperty(TextField.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
982             }
983         }
984         public PropertyMap InputEmboss
985         {
986             get
987             {
988                 PropertyMap temp = new PropertyMap();
989                 GetProperty(TextField.Property.INPUT_EMBOSS).Get(temp);
990                 return temp;
991             }
992             set
993             {
994                 SetProperty(TextField.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
995             }
996         }
997         public PropertyMap Outline
998         {
999             get
1000             {
1001                 PropertyMap temp = new PropertyMap();
1002                 GetProperty(TextField.Property.OUTLINE).Get(temp);
1003                 return temp;
1004             }
1005             set
1006             {
1007                 SetProperty(TextField.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1008             }
1009         }
1010         public PropertyMap InputOutline
1011         {
1012             get
1013             {
1014                 PropertyMap temp = new PropertyMap();
1015                 GetProperty(TextField.Property.INPUT_OUTLINE).Get(temp);
1016                 return temp;
1017             }
1018             set
1019             {
1020                 SetProperty(TextField.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1021             }
1022         }
1023
1024     }
1025
1026 }