c898ac8282f95f8652ec6895689da7e9630b174d
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / 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.BaseComponents
28 {
29
30     using System;
31     using System.Runtime.InteropServices;
32
33     /// <summary>
34     /// A control which provides a single-line editable text field.
35     /// </summary>
36     public class TextField : View
37     {
38         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
39
40         internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_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(TextField 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                 DisposeQueue.Instance.Add(this);
60                 return;
61             }
62
63             if(type == DisposeTypes.Explicit)
64             {
65                 //Called by User
66                 //Release your own managed resources here.
67                 //You should release all of your own disposable objects here.
68             }
69
70             //Release your own unmanaged resources here.
71             //You should not access any managed member here except static instance.
72             //because the execution order of Finalizes is non-deterministic.
73
74             if (swigCPtr.Handle != global::System.IntPtr.Zero)
75             {
76                 if (swigCMemOwn)
77                 {
78                     swigCMemOwn = false;
79                     NDalicPINVOKE.delete_TextField(swigCPtr);
80                 }
81                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
82             }
83
84             base.Dispose(type);
85         }
86
87         /// <summary>
88         /// Text changed event arguments.
89         /// </summary>
90         public class TextChangedEventArgs : EventArgs
91         {
92             private TextField _textField;
93
94             /// <summary>
95             /// TextField.
96             /// </summary>
97             public TextField TextField
98             {
99                 get
100                 {
101                     return _textField;
102                 }
103                 set
104                 {
105                     _textField = value;
106                 }
107             }
108         }
109
110         /// <summary>
111         /// MaxLengthReached event arguments.
112         /// </summary>
113         public class MaxLengthReachedEventArgs : EventArgs
114         {
115             private TextField _textField;
116
117             /// <summary>
118             /// TextField.
119             /// </summary>
120             public TextField TextField
121             {
122                 get
123                 {
124                     return _textField;
125                 }
126                 set
127                 {
128                     _textField = value;
129                 }
130             }
131         }
132
133
134         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
135         private delegate void TextChangedCallbackDelegate(IntPtr textField);
136         private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
137         private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
138
139         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
140         private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
141         private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
142         private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
143
144         /// <summary>
145         /// TextChanged event.
146         /// </summary>
147         public event EventHandler<TextChangedEventArgs> TextChanged
148         {
149             add
150             {
151                 if (_textFieldTextChangedEventHandler == null)
152                 {
153                     _textFieldTextChangedCallbackDelegate = (OnTextChanged);
154                     TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
155                 }
156                 _textFieldTextChangedEventHandler += value;
157             }
158             remove
159             {
160                 _textFieldTextChangedEventHandler -= value;
161                 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
162                 {
163                     TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
164                 }
165             }
166         }
167
168         private void OnTextChanged(IntPtr textField)
169         {
170             TextChangedEventArgs e = new TextChangedEventArgs();
171
172             // Populate all members of "e" (TextChangedEventArgs) with real data
173             e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
174
175             if (_textFieldTextChangedEventHandler != null)
176             {
177                 //here we send all data to user event handlers
178                 _textFieldTextChangedEventHandler(this, e);
179             }
180
181         }
182
183         /// <summary>
184         /// MaxLengthReached event.
185         /// </summary>
186         public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
187         {
188             add
189             {
190                 if (_textFieldMaxLengthReachedEventHandler == null)
191                 {
192                     _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
193                     MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
194                 }
195                 _textFieldMaxLengthReachedEventHandler += value;
196             }
197             remove
198             {
199                 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
200                 {
201                     this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
202                 }
203                 _textFieldMaxLengthReachedEventHandler -= value;
204             }
205         }
206
207         private void OnMaxLengthReached(IntPtr textField)
208         {
209             MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
210
211             // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
212             e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
213
214             if (_textFieldMaxLengthReachedEventHandler != null)
215             {
216                 //here we send all data to user event handlers
217                 _textFieldMaxLengthReachedEventHandler(this, e);
218             }
219
220         }
221
222         internal class Property
223         {
224             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
225             internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
226             internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
227             internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
228             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
229             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
230             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
231             internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
232             internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
233             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
234             internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
235             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
236             internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
237             internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
238             internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
239             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
240             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
241             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
242             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
243             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
244             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
245             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
246             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
247             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
248             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
249             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
250             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
251             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
252             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
253             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
254             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
255             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
256             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
257             internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
258             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
259             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
260             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
261             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
262             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
263             internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
264             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
265             internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
266             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
267             internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
268             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
269             internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
270             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
271             internal static readonly int HIDDEN_INPUT_SETTINGS = NDalicManualPINVOKE.TextField_Property_HIDDEN_INPUT_SETTINGS_get();
272             internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextField_Property_PIXEL_SIZE_get();
273
274         }
275
276         internal class InputStyle
277         {
278             internal enum Mask
279             {
280                 None = 0x0000,
281                 Color = 0x0001,
282                 FontFamily = 0x0002,
283                 PointSize = 0x0004,
284                 FontStyle = 0x0008,
285                 Underline = 0x0010,
286                 Shadow = 0x0020,
287                 Emboss = 0x0040,
288                 Outline = 0x0080
289             }
290
291         }
292
293         /// <summary>
294         /// Creates the TextField control.
295         /// </summary>
296         public TextField() : this(NDalicPINVOKE.TextField_New(), true)
297         {
298             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
299
300         }
301         internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
302         {
303             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304         }
305
306         internal TextFieldSignal TextChangedSignal()
307         {
308             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
309             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
310             return ret;
311         }
312
313         internal TextFieldSignal MaxLengthReachedSignal()
314         {
315             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
316             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
317             return ret;
318         }
319
320         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
321         {
322             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);
323             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
324             return ret;
325         }
326
327         internal enum ExceedPolicyType
328         {
329             ExceedPolicyOriginal,
330             ExceedPolicyClip
331         }
332
333         /// <summary>
334         /// Text property.
335         /// </summary>
336         public string Text
337         {
338             get
339             {
340                 string temp;
341                 GetProperty(TextField.Property.TEXT).Get(out temp);
342                 return temp;
343             }
344             set
345             {
346                 SetProperty(TextField.Property.TEXT, new Tizen.NUI.PropertyValue(value));
347             }
348         }
349
350         /// <summary>
351         /// PlaceholderText property.
352         /// </summary>
353         public string PlaceholderText
354         {
355             get
356             {
357                 string temp;
358                 GetProperty(TextField.Property.PLACEHOLDER_TEXT).Get(out temp);
359                 return temp;
360             }
361             set
362             {
363                 SetProperty(TextField.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue(value));
364             }
365         }
366
367         /// <summary>
368         /// PlaceholderTextFocused property.
369         /// </summary>
370         public string PlaceholderTextFocused
371         {
372             get
373             {
374                 string temp;
375                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED).Get(out temp);
376                 return temp;
377             }
378             set
379             {
380                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED, new Tizen.NUI.PropertyValue(value));
381             }
382         }
383
384         /// <summary>
385         /// FontFamily property.
386         /// </summary>
387         public string FontFamily
388         {
389             get
390             {
391                 string temp;
392                 GetProperty(TextField.Property.FONT_FAMILY).Get(out temp);
393                 return temp;
394             }
395             set
396             {
397                 SetProperty(TextField.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
398             }
399         }
400
401         /// <summary>
402         /// FontStyle property.
403         /// </summary>
404         public PropertyMap FontStyle
405         {
406             get
407             {
408                 PropertyMap temp = new PropertyMap();
409                 GetProperty(TextField.Property.FONT_STYLE).Get(temp);
410                 return temp;
411             }
412             set
413             {
414                 SetProperty(TextField.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
415             }
416         }
417
418         /// <summary>
419         /// PointSize property.
420         /// </summary>
421         public float PointSize
422         {
423             get
424             {
425                 float temp = 0.0f;
426                 GetProperty(TextField.Property.POINT_SIZE).Get(out temp);
427                 return temp;
428             }
429             set
430             {
431                 SetProperty(TextField.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
432             }
433         }
434
435         /// <summary>
436         /// MaxLength property.
437         /// </summary>
438         public int MaxLength
439         {
440             get
441             {
442                 int temp = 0;
443                 GetProperty(TextField.Property.MAX_LENGTH).Get(out temp);
444                 return temp;
445             }
446             set
447             {
448                 SetProperty(TextField.Property.MAX_LENGTH, new Tizen.NUI.PropertyValue(value));
449             }
450         }
451
452         /// <summary>
453         /// ExceedPolicy property.
454         /// </summary>
455         public int ExceedPolicy
456         {
457             get
458             {
459                 int temp = 0;
460                 GetProperty(TextField.Property.EXCEED_POLICY).Get(out temp);
461                 return temp;
462             }
463             set
464             {
465                 SetProperty(TextField.Property.EXCEED_POLICY, new Tizen.NUI.PropertyValue(value));
466             }
467         }
468
469         /// <summary>
470         /// HorizontalAlignment property.
471         /// </summary>
472         public HorizontalAlignment HorizontalAlignment
473         {
474             get
475             {
476                 string temp;
477                 if (GetProperty(TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
478                 {
479 #if DEBUG_ON
480                     Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
481 #endif
482                 }
483
484                 switch (temp)
485                 {
486                     case "BEGIN":
487                         return HorizontalAlignment.Begin;
488                     case "CENTER":
489                         return HorizontalAlignment.Center;
490                     case "END":
491                         return HorizontalAlignment.End;
492                     default:
493                         return HorizontalAlignment.Begin;
494                 }
495             }
496             set
497             {
498                 string valueToString = "";
499                 switch (value)
500                 {
501                     case HorizontalAlignment.Begin:
502                     {
503                         valueToString = "BEGIN";
504                         break;
505                     }
506                     case HorizontalAlignment.Center:
507                     {
508                         valueToString = "CENTER";
509                         break;
510                     }
511                     case HorizontalAlignment.End:
512                     {
513                         valueToString = "END";
514                         break;
515                     }
516                     default:
517                     {
518                         valueToString = "BEGIN";
519                         break;
520                     }
521                 }
522                 SetProperty(TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
523             }
524         }
525
526         /// <summary>
527         /// VerticalAlignment property.
528         /// </summary>
529         public VerticalAlignment VerticalAlignment
530         {
531             get
532             {
533                 string temp;
534                 if (GetProperty(TextField.Property.VERTICAL_ALIGNMENT).Get(out temp) == false)
535                 {
536 #if DEBUG_ON
537                     Tizen.Log.Error("NUI", "VerticalAlignment get error!");
538 #endif
539                 }
540
541                 switch (temp)
542                 {
543                     case "TOP":
544                         return VerticalAlignment.Top;
545                     case "CENTER":
546                         return VerticalAlignment.Center;
547                     case "BOTTOM":
548                         return VerticalAlignment.Bottom;
549                     default:
550                         return VerticalAlignment.Bottom;
551                 }
552             }
553             set
554             {
555                 string valueToString = "";
556                 switch (value)
557                 {
558                     case VerticalAlignment.Top:
559                     {
560                         valueToString = "TOP";
561                         break;
562                     }
563                     case VerticalAlignment.Center:
564                     {
565                         valueToString = "CENTER";
566                         break;
567                     }
568                     case VerticalAlignment.Bottom:
569                     {
570                         valueToString = "BOTTOM";
571                         break;
572                     }
573                     default:
574                     {
575                         valueToString = "BOTTOM";
576                         break;
577                     }
578                 }
579                 SetProperty(TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
580             }
581         }
582
583         /// <summary>
584         /// TextColor property.
585         /// </summary>
586         public Color TextColor
587         {
588             get
589             {
590                 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
591                 GetProperty(TextField.Property.TEXT_COLOR).Get(temp);
592                 return temp;
593             }
594             set
595             {
596                 SetProperty(TextField.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
597             }
598         }
599
600         /// <summary>
601         /// PlaceholderTextColor property.
602         /// </summary>
603         public Vector4 PlaceholderTextColor
604         {
605             get
606             {
607                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
608                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
609                 return temp;
610             }
611             set
612             {
613                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
614             }
615         }
616
617         /// <summary>
618         /// ShadowOffset property.
619         /// </summary>
620         public Vector2 ShadowOffset
621         {
622             get
623             {
624                 Vector2 temp = new Vector2(0.0f, 0.0f);
625                 GetProperty(TextField.Property.SHADOW_OFFSET).Get(temp);
626                 return temp;
627             }
628             set
629             {
630                 SetProperty(TextField.Property.SHADOW_OFFSET, new Tizen.NUI.PropertyValue(value));
631             }
632         }
633
634         /// <summary>
635         /// ShadowColor property.
636         /// </summary>
637         public Vector4 ShadowColor
638         {
639             get
640             {
641                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
642                 GetProperty(TextField.Property.SHADOW_COLOR).Get(temp);
643                 return temp;
644             }
645             set
646             {
647                 SetProperty(TextField.Property.SHADOW_COLOR, new Tizen.NUI.PropertyValue(value));
648             }
649         }
650
651         /// <summary>
652         /// PrimaryCursorColor property.
653         /// </summary>
654         public Vector4 PrimaryCursorColor
655         {
656             get
657             {
658                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
659                 GetProperty(TextField.Property.PRIMARY_CURSOR_COLOR).Get(temp);
660                 return temp;
661             }
662             set
663             {
664                 SetProperty(TextField.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
665             }
666         }
667
668         /// <summary>
669         /// SecondaryCursorColor property.
670         /// </summary>
671         public Vector4 SecondaryCursorColor
672         {
673             get
674             {
675                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
676                 GetProperty(TextField.Property.SECONDARY_CURSOR_COLOR).Get(temp);
677                 return temp;
678             }
679             set
680             {
681                 SetProperty(TextField.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
682             }
683         }
684
685         /// <summary>
686         /// EnableCursorBlink property.
687         /// </summary>
688         public bool EnableCursorBlink
689         {
690             get
691             {
692                 bool temp = false;
693                 GetProperty(TextField.Property.ENABLE_CURSOR_BLINK).Get(out temp);
694                 return temp;
695             }
696             set
697             {
698                 SetProperty(TextField.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
699             }
700         }
701
702         /// <summary>
703         /// CursorBlinkInterval property.
704         /// </summary>
705         public float CursorBlinkInterval
706         {
707             get
708             {
709                 float temp = 0.0f;
710                 GetProperty(TextField.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
711                 return temp;
712             }
713             set
714             {
715                 SetProperty(TextField.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
716             }
717         }
718
719         /// <summary>
720         /// CursorBlinkDuration property.
721         /// </summary>
722         public float CursorBlinkDuration
723         {
724             get
725             {
726                 float temp = 0.0f;
727                 GetProperty(TextField.Property.CURSOR_BLINK_DURATION).Get(out temp);
728                 return temp;
729             }
730             set
731             {
732                 SetProperty(TextField.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
733             }
734         }
735
736         /// <summary>
737         /// CursorWidth property.
738         /// </summary>
739         public int CursorWidth
740         {
741             get
742             {
743                 int temp = 0;
744                 GetProperty(TextField.Property.CURSOR_WIDTH).Get(out temp);
745                 return temp;
746             }
747             set
748             {
749                 SetProperty(TextField.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
750             }
751         }
752
753         /// <summary>
754         /// GrabHandleImage property.
755         /// </summary>
756         public string GrabHandleImage
757         {
758             get
759             {
760                 string temp;
761                 GetProperty(TextField.Property.GRAB_HANDLE_IMAGE).Get(out temp);
762                 return temp;
763             }
764             set
765             {
766                 SetProperty(TextField.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
767             }
768         }
769
770         /// <summary>
771         /// GrabHandlePressedImage property.
772         /// </summary>
773         public string GrabHandlePressedImage
774         {
775             get
776             {
777                 string temp;
778                 GetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
779                 return temp;
780             }
781             set
782             {
783                 SetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
784             }
785         }
786
787         /// <summary>
788         /// ScrollThreshold property.
789         /// </summary>
790         public float ScrollThreshold
791         {
792             get
793             {
794                 float temp = 0.0f;
795                 GetProperty(TextField.Property.SCROLL_THRESHOLD).Get(out temp);
796                 return temp;
797             }
798             set
799             {
800                 SetProperty(TextField.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
801             }
802         }
803
804         /// <summary>
805         /// ScrollSpeed property.
806         /// </summary>
807         public float ScrollSpeed
808         {
809             get
810             {
811                 float temp = 0.0f;
812                 GetProperty(TextField.Property.SCROLL_SPEED).Get(out temp);
813                 return temp;
814             }
815             set
816             {
817                 SetProperty(TextField.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
818             }
819         }
820
821         /// <summary>
822         /// SelectionHandleImageLeft property.
823         /// </summary>
824         public PropertyMap SelectionHandleImageLeft
825         {
826             get
827             {
828                 PropertyMap temp = new PropertyMap();
829                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
830                 return temp;
831             }
832             set
833             {
834                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
835             }
836         }
837
838         /// <summary>
839         /// SelectionHandleImageRight property.
840         /// </summary>
841         public PropertyMap SelectionHandleImageRight
842         {
843             get
844             {
845                 PropertyMap temp = new PropertyMap();
846                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
847                 return temp;
848             }
849             set
850             {
851                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
852             }
853         }
854
855         /// <summary>
856         /// SelectionHandlePressedImageLeft property.
857         /// </summary>
858         public PropertyMap SelectionHandlePressedImageLeft
859         {
860             get
861             {
862                 PropertyMap temp = new PropertyMap();
863                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
864                 return temp;
865             }
866             set
867             {
868                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
869             }
870         }
871
872         /// <summary>
873         /// SelectionHandlePressedImageRight property.
874         /// </summary>
875         public PropertyMap SelectionHandlePressedImageRight
876         {
877             get
878             {
879                 PropertyMap temp = new PropertyMap();
880                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
881                 return temp;
882             }
883             set
884             {
885                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
886             }
887         }
888
889         /// <summary>
890         /// SelectionHandleMarkerImageLeft property.
891         /// </summary>
892         public PropertyMap SelectionHandleMarkerImageLeft
893         {
894             get
895             {
896                 PropertyMap temp = new PropertyMap();
897                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
898                 return temp;
899             }
900             set
901             {
902                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
903             }
904         }
905
906         /// <summary>
907         /// SelectionHandleMarkerImageRight property.
908         /// </summary>
909         public PropertyMap SelectionHandleMarkerImageRight
910         {
911             get
912             {
913                 PropertyMap temp = new PropertyMap();
914                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
915                 return temp;
916             }
917             set
918             {
919                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
920             }
921         }
922
923         /// <summary>
924         /// SelectionHighlightColor property.
925         /// </summary>
926         public Vector4 SelectionHighlightColor
927         {
928             get
929             {
930                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
931                 GetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
932                 return temp;
933             }
934             set
935             {
936                 SetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
937             }
938         }
939
940         /// <summary>
941         /// DecorationBoundingBox property.
942         /// </summary>
943         public Rectangle DecorationBoundingBox
944         {
945             get
946             {
947                 Rectangle temp = new Rectangle(0, 0, 0, 0);
948                 GetProperty(TextField.Property.DECORATION_BOUNDING_BOX).Get(temp);
949                 return temp;
950             }
951             set
952             {
953                 SetProperty(TextField.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
954             }
955         }
956
957         /// <summary>
958         /// InputMethodSettings property.
959         /// </summary>
960         public PropertyMap InputMethodSettings
961         {
962             get
963             {
964                 PropertyMap temp = new PropertyMap();
965                 GetProperty(TextField.Property.INPUT_METHOD_SETTINGS).Get(temp);
966                 return temp;
967             }
968             set
969             {
970                 SetProperty(TextField.Property.INPUT_METHOD_SETTINGS, new Tizen.NUI.PropertyValue(value));
971             }
972         }
973
974         /// <summary>
975         /// InputColor property.
976         /// </summary>
977         public Vector4 InputColor
978         {
979             get
980             {
981                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
982                 GetProperty(TextField.Property.INPUT_COLOR).Get(temp);
983                 return temp;
984             }
985             set
986             {
987                 SetProperty(TextField.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
988             }
989         }
990
991         /// <summary>
992         /// EnableMarkup property.
993         /// </summary>
994         public bool EnableMarkup
995         {
996             get
997             {
998                 bool temp = false;
999                 GetProperty(TextField.Property.ENABLE_MARKUP).Get(out temp);
1000                 return temp;
1001             }
1002             set
1003             {
1004                 SetProperty(TextField.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
1005             }
1006         }
1007
1008         /// <summary>
1009         /// InputFontFamily property.
1010         /// </summary>
1011         public string InputFontFamily
1012         {
1013             get
1014             {
1015                 string temp;
1016                 GetProperty(TextField.Property.INPUT_FONT_FAMILY).Get(out temp);
1017                 return temp;
1018             }
1019             set
1020             {
1021                 SetProperty(TextField.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
1022             }
1023         }
1024
1025         /// <summary>
1026         /// InputFontStyle property.
1027         /// </summary>
1028         public PropertyMap InputFontStyle
1029         {
1030             get
1031             {
1032                 PropertyMap temp = new PropertyMap();
1033                 GetProperty(TextField.Property.INPUT_FONT_STYLE).Get(temp);
1034                 return temp;
1035             }
1036             set
1037             {
1038                 SetProperty(TextField.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
1039             }
1040         }
1041
1042         /// <summary>
1043         /// InputPointSize property.
1044         /// </summary>
1045         public float InputPointSize
1046         {
1047             get
1048             {
1049                 float temp = 0.0f;
1050                 GetProperty(TextField.Property.INPUT_POINT_SIZE).Get(out temp);
1051                 return temp;
1052             }
1053             set
1054             {
1055                 SetProperty(TextField.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
1056             }
1057         }
1058
1059         /// <summary>
1060         /// Underline property.
1061         /// </summary>
1062         public PropertyMap Underline
1063         {
1064             get
1065             {
1066                 PropertyMap temp = new PropertyMap();
1067                 GetProperty(TextField.Property.UNDERLINE).Get(temp);
1068                 return temp;
1069             }
1070             set
1071             {
1072                 SetProperty(TextField.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
1073             }
1074         }
1075
1076         /// <summary>
1077         /// InputUnderline property.
1078         /// </summary>
1079         public string InputUnderline
1080         {
1081             get
1082             {
1083                 string temp;
1084                 GetProperty(TextField.Property.INPUT_UNDERLINE).Get(out temp);
1085                 return temp;
1086             }
1087             set
1088             {
1089                 SetProperty(TextField.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
1090             }
1091         }
1092
1093         /// <summary>
1094         /// Shadow property.
1095         /// </summary>
1096         public PropertyMap Shadow
1097         {
1098             get
1099             {
1100                 PropertyMap temp = new PropertyMap();
1101                 GetProperty(TextField.Property.SHADOW).Get(temp);
1102                 return temp;
1103             }
1104             set
1105             {
1106                 SetProperty(TextField.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
1107             }
1108         }
1109
1110         /// <summary>
1111         /// InputShadow property.
1112         /// </summary>
1113         public string InputShadow
1114         {
1115             get
1116             {
1117                 string temp;
1118                 GetProperty(TextField.Property.INPUT_SHADOW).Get(out temp);
1119                 return temp;
1120             }
1121             set
1122             {
1123                 SetProperty(TextField.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
1124             }
1125         }
1126
1127         /// <summary>
1128         /// Emboss property.
1129         /// </summary>
1130         public string Emboss
1131         {
1132             get
1133             {
1134                 string temp;
1135                 GetProperty(TextField.Property.EMBOSS).Get(out temp);
1136                 return temp;
1137             }
1138             set
1139             {
1140                 SetProperty(TextField.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
1141             }
1142         }
1143
1144         /// <summary>
1145         /// InputEmboss property.
1146         /// </summary>
1147         public string InputEmboss
1148         {
1149             get
1150             {
1151                 string temp;
1152                 GetProperty(TextField.Property.INPUT_EMBOSS).Get(out temp);
1153                 return temp;
1154             }
1155             set
1156             {
1157                 SetProperty(TextField.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1158             }
1159         }
1160
1161         /// <summary>
1162         /// Outline property.
1163         /// </summary>
1164         public string Outline
1165         {
1166             get
1167             {
1168                 string temp;
1169                 GetProperty(TextField.Property.OUTLINE).Get(out temp);
1170                 return temp;
1171             }
1172             set
1173             {
1174                 SetProperty(TextField.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1175             }
1176         }
1177
1178         /// <summary>
1179         /// InputOutline property.
1180         /// </summary>
1181         public string InputOutline
1182         {
1183             get
1184             {
1185                 string temp;
1186                 GetProperty(TextField.Property.INPUT_OUTLINE).Get(out temp);
1187                 return temp;
1188             }
1189             set
1190             {
1191                 SetProperty(TextField.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1192             }
1193         }
1194
1195         /// <summary>
1196         /// HiddenInputSettings property.
1197         /// </summary>
1198         public Tizen.NUI.PropertyMap HiddenInputSettings
1199         {
1200             get
1201             {
1202                 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1203                 GetProperty(TextField.Property.HIDDEN_INPUT_SETTINGS).Get(temp);
1204                 return temp;
1205             }
1206             set
1207             {
1208                 SetProperty(TextField.Property.HIDDEN_INPUT_SETTINGS, new Tizen.NUI.PropertyValue(value));
1209             }
1210         }
1211
1212         /// <summary>
1213         /// PixelSize property.
1214         /// </summary>
1215         public float PixelSize
1216         {
1217             get
1218             {
1219                 float temp = 0.0f;
1220                 GetProperty(TextField.Property.PIXEL_SIZE).Get(out temp);
1221                 return temp;
1222             }
1223             set
1224             {
1225                 SetProperty(TextField.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue(value));
1226             }
1227         }
1228
1229     }
1230
1231 }