b1ffe59d68ffc50c7135c40301c2a1e9f8afde5e
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / events / textfield-event.i
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 %define TEXTFIELD_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
19 %typemap(csimports) NameSpace::ClassName %{
20 using System;
21 using System.Runtime.InteropServices;
22
23 %}
24
25 %enddef
26
27 %define TEXTFIELD_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
28 %typemap(cscode) NameSpace::ClassName %{
29
30 public class TextChangedEventArgs : EventArgs
31 {
32    private TextField _textField;
33
34    public TextField TextField
35    {
36       get
37       {
38          return _textField;
39       }
40       set
41       {
42          _textField = value;
43       }
44    }
45 }
46
47 public class MaxLengthReachedEventArgs : EventArgs
48 {
49    private TextField _textField;
50
51    public TextField TextField
52    {
53       get
54       {
55          return _textField;
56       }
57       set
58       {
59          _textField = value;
60       }
61    }
62 }
63
64
65   [UnmanagedFunctionPointer(CallingConvention.StdCall)]
66   private delegate void TextChangedCallbackDelegate(IntPtr textField);
67   private DaliEventHandler<object,TextChangedEventArgs> _textFieldTextChangedEventHandler;
68   private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
69
70   [UnmanagedFunctionPointer(CallingConvention.StdCall)]
71   private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
72   private DaliEventHandler<object,MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
73   private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
74
75   public event DaliEventHandler<object,TextChangedEventArgs> TextChanged
76   {
77      add
78      {
79         lock(this)
80         {
81            // Restricted to only one listener
82            if (_textFieldTextChangedEventHandler == null)
83            {
84               _textFieldTextChangedEventHandler += value;
85
86               _textFieldTextChangedCallbackDelegate = new TextChangedCallbackDelegate(OnTextChanged);
87               this.TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
88            }
89         }
90      }
91
92      remove
93      {
94         lock(this)
95         {
96            if (_textFieldTextChangedEventHandler != null)
97            {
98               this.TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
99            }
100
101            _textFieldTextChangedEventHandler -= value;
102         }
103      }
104   }
105
106  private void OnTextChanged(IntPtr textField)
107   {
108    TextChangedEventArgs e = new TextChangedEventArgs();
109
110    // Populate all members of "e" (TextChangedEventArgs) with real data
111    e.TextField = Dali.TextField.GetTextFieldFromPtr(textField);
112
113    if (_textFieldTextChangedEventHandler != null)
114    {
115       //here we send all data to user event handlers
116       _textFieldTextChangedEventHandler(this, e);
117    }
118
119   }
120
121   public event DaliEventHandler<object,MaxLengthReachedEventArgs> MaxLengthReached
122   {
123      add
124      {
125         lock(this)
126         {
127            // Restricted to only one listener
128            if (_textFieldMaxLengthReachedEventHandler == null)
129            {
130               _textFieldMaxLengthReachedEventHandler += value;
131
132               _textFieldMaxLengthReachedCallbackDelegate = new MaxLengthReachedCallbackDelegate(OnMaxLengthReached);
133               this.MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
134            }
135         }
136      }
137
138      remove
139      {
140         lock(this)
141         {
142            if (_textFieldMaxLengthReachedEventHandler != null)
143            {
144               this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
145            }
146
147            _textFieldMaxLengthReachedEventHandler -= value;
148         }
149      }
150   }
151
152  private void OnMaxLengthReached(IntPtr textField)
153   {
154    MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
155
156    // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
157    e.TextField = Dali.TextField.GetTextFieldFromPtr(textField);
158
159    if (_textFieldMaxLengthReachedEventHandler != null)
160    {
161       //here we send all data to user event handlers
162       _textFieldMaxLengthReachedEventHandler(this, e);
163    }
164
165   }
166
167  public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
168    ClassName ret = new ClassName(cPtr, false);
169    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
170     return ret;
171   }
172
173 /* Properties earlier added by Ruby Script */
174
175   public int RenderingBackend
176   {
177     get
178     {
179       int temp = 0;
180       GetProperty( TextField.Property.RENDERING_BACKEND).Get( ref temp );
181       return temp;
182     }
183     set
184     {
185       SetProperty( TextField.Property.RENDERING_BACKEND, new Dali.Property.Value( value ) );
186     }
187   }
188   public string Text
189   {
190     get
191     {
192       string temp;
193       GetProperty( TextField.Property.TEXT).Get( out temp );
194       return temp;
195     }
196     set
197     {
198       SetProperty( TextField.Property.TEXT, new Dali.Property.Value( value ) );
199     }
200   }
201   public string PlaceholderText
202   {
203     get
204     {
205       string temp;
206       GetProperty( TextField.Property.PLACEHOLDER_TEXT).Get( out temp );
207       return temp;
208     }
209     set
210     {
211       SetProperty( TextField.Property.PLACEHOLDER_TEXT, new Dali.Property.Value( value ) );
212     }
213   }
214   public string PlaceholderTextFocused
215   {
216     get
217     {
218       string temp;
219       GetProperty( TextField.Property.PLACEHOLDER_TEXT_FOCUSED).Get( out temp );
220       return temp;
221     }
222     set
223     {
224       SetProperty( TextField.Property.PLACEHOLDER_TEXT_FOCUSED, new Dali.Property.Value( value ) );
225     }
226   }
227   public string FontFamily
228   {
229     get
230     {
231       string temp;
232       GetProperty( TextField.Property.FONT_FAMILY).Get( out temp );
233       return temp;
234     }
235     set
236     {
237       SetProperty( TextField.Property.FONT_FAMILY, new Dali.Property.Value( value ) );
238     }
239   }
240   public Dali.Property.Map FontStyle
241   {
242     get
243     {
244       Dali.Property.Map temp = new Dali.Property.Map();
245       GetProperty( TextField.Property.FONT_STYLE).Get(  temp );
246       return temp;
247     }
248     set
249     {
250       SetProperty( TextField.Property.FONT_STYLE, new Dali.Property.Value( value ) );
251     }
252   }
253   public float PointSize
254   {
255     get
256     {
257       float temp = 0.0f;
258       GetProperty( TextField.Property.POINT_SIZE).Get( ref temp );
259       return temp;
260     }
261     set
262     {
263       SetProperty( TextField.Property.POINT_SIZE, new Dali.Property.Value( value ) );
264     }
265   }
266   public int MaxLength
267   {
268     get
269     {
270       int temp = 0;
271       GetProperty( TextField.Property.MAX_LENGTH).Get( ref temp );
272       return temp;
273     }
274     set
275     {
276       SetProperty( TextField.Property.MAX_LENGTH, new Dali.Property.Value( value ) );
277     }
278   }
279   public int ExceedPolicy
280   {
281     get
282     {
283       int temp = 0;
284       GetProperty( TextField.Property.EXCEED_POLICY).Get( ref temp );
285       return temp;
286     }
287     set
288     {
289       SetProperty( TextField.Property.EXCEED_POLICY, new Dali.Property.Value( value ) );
290     }
291   }
292   public string HorizontalAlignment
293   {
294     get
295     {
296       string temp;
297       GetProperty( TextField.Property.HORIZONTAL_ALIGNMENT).Get( out temp );
298       return temp;
299     }
300     set
301     {
302       SetProperty( TextField.Property.HORIZONTAL_ALIGNMENT, new Dali.Property.Value( value ) );
303     }
304   }
305   public string VerticalAlignment
306   {
307     get
308     {
309       string temp;
310       GetProperty( TextField.Property.VERTICAL_ALIGNMENT).Get( out temp );
311       return temp;
312     }
313     set
314     {
315       SetProperty( TextField.Property.VERTICAL_ALIGNMENT, new Dali.Property.Value( value ) );
316     }
317   }
318   public Dali.CSharp.Color TextColor
319   {
320     get
321     {
322       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
323       GetProperty( TextField.Property.TEXT_COLOR).Get(  temp );
324       Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
325       return ret;
326     }
327     set
328     {
329       SetProperty( TextField.Property.TEXT_COLOR, new Dali.Property.Value( value ) );
330     }
331   }
332   public Dali.CSharp.Color PlaceholderTextColor
333   {
334     get
335     {
336       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
337       GetProperty( TextField.Property.PLACEHOLDER_TEXT_COLOR).Get(  temp );
338       Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
339       return ret;
340     }
341     set
342     {
343       SetProperty( TextField.Property.PLACEHOLDER_TEXT_COLOR, new Dali.Property.Value( value ) );
344     }
345   }
346   public Dali.CSharp.Size ShadowOffset
347   {
348     get
349     {
350       Vector2 temp = new Vector2(0.0f,0.0f);
351       GetProperty( TextField.Property.SHADOW_OFFSET).Get(  temp );
352       Dali.CSharp.Size ret = new Dali.CSharp.Size(temp.x, temp.y);
353       return ret;
354     }
355     set
356     {
357       SetProperty( TextField.Property.SHADOW_OFFSET, new Dali.Property.Value( value ) );
358     }
359   }
360   public Dali.CSharp.Color ShadowColor
361   {
362     get
363     {
364       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
365       GetProperty( TextField.Property.SHADOW_COLOR).Get(  temp );
366       Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
367       return ret;
368     }
369     set
370     {
371       SetProperty( TextField.Property.SHADOW_COLOR, new Dali.Property.Value( value ) );
372     }
373   }
374   public Dali.CSharp.Color PrimaryCursorColor
375   {
376     get
377     {
378       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
379       GetProperty( TextField.Property.PRIMARY_CURSOR_COLOR).Get(  temp );
380       Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
381       return ret;
382     }
383     set
384     {
385       SetProperty( TextField.Property.PRIMARY_CURSOR_COLOR, new Dali.Property.Value( value ) );
386     }
387   }
388   public Dali.CSharp.Color SecondaryCursorColor
389   {
390     get
391     {
392       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
393       GetProperty( TextField.Property.SECONDARY_CURSOR_COLOR).Get(  temp );
394       Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
395       return ret;
396     }
397     set
398     {
399       SetProperty( TextField.Property.SECONDARY_CURSOR_COLOR, new Dali.Property.Value( value ) );
400     }
401   }
402   public bool EnableCursorBlink
403   {
404     get
405     {
406       bool temp = false;
407       GetProperty( TextField.Property.ENABLE_CURSOR_BLINK).Get( ref temp );
408       return temp;
409     }
410     set
411     {
412       SetProperty( TextField.Property.ENABLE_CURSOR_BLINK, new Dali.Property.Value( value ) );
413     }
414   }
415   public float CursorBlinkInterval
416   {
417     get
418     {
419       float temp = 0.0f;
420       GetProperty( TextField.Property.CURSOR_BLINK_INTERVAL).Get( ref temp );
421       return temp;
422     }
423     set
424     {
425       SetProperty( TextField.Property.CURSOR_BLINK_INTERVAL, new Dali.Property.Value( value ) );
426     }
427   }
428   public float CursorBlinkDuration
429   {
430     get
431     {
432       float temp = 0.0f;
433       GetProperty( TextField.Property.CURSOR_BLINK_DURATION).Get( ref temp );
434       return temp;
435     }
436     set
437     {
438       SetProperty( TextField.Property.CURSOR_BLINK_DURATION, new Dali.Property.Value( value ) );
439     }
440   }
441   public int CursorWidth
442   {
443     get
444     {
445       int temp = 0;
446       GetProperty( TextField.Property.CURSOR_WIDTH).Get( ref temp );
447       return temp;
448     }
449     set
450     {
451       SetProperty( TextField.Property.CURSOR_WIDTH, new Dali.Property.Value( value ) );
452     }
453   }
454   public string GrabHandleImage
455   {
456     get
457     {
458       string temp;
459       GetProperty( TextField.Property.GRAB_HANDLE_IMAGE).Get( out temp );
460       return temp;
461     }
462     set
463     {
464       SetProperty( TextField.Property.GRAB_HANDLE_IMAGE, new Dali.Property.Value( value ) );
465     }
466   }
467   public string GrabHandlePressedImage
468   {
469     get
470     {
471       string temp;
472       GetProperty( TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get( out temp );
473       return temp;
474     }
475     set
476     {
477       SetProperty( TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Dali.Property.Value( value ) );
478     }
479   }
480   public float ScrollThreshold
481   {
482     get
483     {
484       float temp = 0.0f;
485       GetProperty( TextField.Property.SCROLL_THRESHOLD).Get( ref temp );
486       return temp;
487     }
488     set
489     {
490       SetProperty( TextField.Property.SCROLL_THRESHOLD, new Dali.Property.Value( value ) );
491     }
492   }
493   public float ScrollSpeed
494   {
495     get
496     {
497       float temp = 0.0f;
498       GetProperty( TextField.Property.SCROLL_SPEED).Get( ref temp );
499       return temp;
500     }
501     set
502     {
503       SetProperty( TextField.Property.SCROLL_SPEED, new Dali.Property.Value( value ) );
504     }
505   }
506   public Dali.Property.Map SelectionHandleImageLeft
507   {
508     get
509     {
510       Dali.Property.Map temp = new Dali.Property.Map();
511       GetProperty( TextField.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(  temp );
512       return temp;
513     }
514     set
515     {
516       SetProperty( TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Dali.Property.Value( value ) );
517     }
518   }
519   public Dali.Property.Map SelectionHandleImageRight
520   {
521     get
522     {
523       Dali.Property.Map temp = new Dali.Property.Map();
524       GetProperty( TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(  temp );
525       return temp;
526     }
527     set
528     {
529       SetProperty( TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Dali.Property.Value( value ) );
530     }
531   }
532   public Dali.Property.Map SelectionHandlePressedImageLeft
533   {
534     get
535     {
536       Dali.Property.Map temp = new Dali.Property.Map();
537       GetProperty( TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(  temp );
538       return temp;
539     }
540     set
541     {
542       SetProperty( TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Dali.Property.Value( value ) );
543     }
544   }
545   public Dali.Property.Map SelectionHandlePressedImageRight
546   {
547     get
548     {
549       Dali.Property.Map temp = new Dali.Property.Map();
550       GetProperty( TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(  temp );
551       return temp;
552     }
553     set
554     {
555       SetProperty( TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Dali.Property.Value( value ) );
556     }
557   }
558   public Dali.Property.Map SelectionHandleMarkerImageLeft
559   {
560     get
561     {
562       Dali.Property.Map temp = new Dali.Property.Map();
563       GetProperty( TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(  temp );
564       return temp;
565     }
566     set
567     {
568       SetProperty( TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Dali.Property.Value( value ) );
569     }
570   }
571   public Dali.Property.Map SelectionHandleMarkerImageRight
572   {
573     get
574     {
575       Dali.Property.Map temp = new Dali.Property.Map();
576       GetProperty( TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(  temp );
577       return temp;
578     }
579     set
580     {
581       SetProperty( TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Dali.Property.Value( value ) );
582     }
583   }
584   public Dali.CSharp.Color SelectionHighlightColor
585   {
586     get
587     {
588       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
589       GetProperty( TextField.Property.SELECTION_HIGHLIGHT_COLOR).Get(  temp );
590       Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
591       return ret;
592     }
593     set
594     {
595       SetProperty( TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Dali.Property.Value( value ) );
596     }
597   }
598   public RectInteger DecorationBoundingBox
599   {
600     get
601     {
602       RectInteger temp = new RectInteger(0,0,0,0);
603       GetProperty( TextField.Property.DECORATION_BOUNDING_BOX).Get(  temp );
604       return temp;
605     }
606     set
607     {
608       SetProperty( TextField.Property.DECORATION_BOUNDING_BOX, new Dali.Property.Value( value ) );
609     }
610   }
611   public Dali.Property.Map InputMethodSettings
612   {
613     get
614     {
615       Dali.Property.Map temp = new Dali.Property.Map();
616       GetProperty( TextField.Property.INPUT_METHOD_SETTINGS).Get(  temp );
617       return temp;
618     }
619     set
620     {
621       SetProperty( TextField.Property.INPUT_METHOD_SETTINGS, new Dali.Property.Value( value ) );
622     }
623   }
624   public Dali.CSharp.Color InputColor
625   {
626     get
627     {
628       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
629       GetProperty( TextField.Property.INPUT_COLOR).Get(  temp );
630       Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
631       return ret;
632     }
633     set
634     {
635       SetProperty( TextField.Property.INPUT_COLOR, new Dali.Property.Value( value ) );
636     }
637   }
638   public bool EnableMarkup
639   {
640     get
641     {
642       bool temp = false;
643       GetProperty( TextField.Property.ENABLE_MARKUP).Get( ref temp );
644       return temp;
645     }
646     set
647     {
648       SetProperty( TextField.Property.ENABLE_MARKUP, new Dali.Property.Value( value ) );
649     }
650   }
651   public string InputFontFamily
652   {
653     get
654     {
655       string temp;
656       GetProperty( TextField.Property.INPUT_FONT_FAMILY).Get( out temp );
657       return temp;
658     }
659     set
660     {
661       SetProperty( TextField.Property.INPUT_FONT_FAMILY, new Dali.Property.Value( value ) );
662     }
663   }
664   public Dali.Property.Map InputFontStyle
665   {
666     get
667     {
668       Dali.Property.Map temp = new Dali.Property.Map();
669       GetProperty( TextField.Property.INPUT_FONT_STYLE).Get(  temp );
670       return temp;
671     }
672     set
673     {
674       SetProperty( TextField.Property.INPUT_FONT_STYLE, new Dali.Property.Value( value ) );
675     }
676   }
677   public float InputPointSize
678   {
679     get
680     {
681       float temp = 0.0f;
682       GetProperty( TextField.Property.INPUT_POINT_SIZE).Get( ref temp );
683       return temp;
684     }
685     set
686     {
687       SetProperty( TextField.Property.INPUT_POINT_SIZE, new Dali.Property.Value( value ) );
688     }
689   }
690   public Dali.Property.Map Underline
691   {
692     get
693     {
694       Dali.Property.Map temp = new Dali.Property.Map();
695       GetProperty( TextField.Property.UNDERLINE).Get(  temp );
696       return temp;
697     }
698     set
699     {
700       SetProperty( TextField.Property.UNDERLINE, new Dali.Property.Value( value ) );
701     }
702   }
703   public Dali.Property.Map InputUnderline
704   {
705     get
706     {
707       Dali.Property.Map temp = new Dali.Property.Map();
708       GetProperty( TextField.Property.INPUT_UNDERLINE).Get(  temp );
709       return temp;
710     }
711     set
712     {
713       SetProperty( TextField.Property.INPUT_UNDERLINE, new Dali.Property.Value( value ) );
714     }
715   }
716   public Dali.Property.Map Shadow
717   {
718     get
719     {
720       Dali.Property.Map temp = new Dali.Property.Map();
721       GetProperty( TextField.Property.SHADOW).Get(  temp );
722       return temp;
723     }
724     set
725     {
726       SetProperty( TextField.Property.SHADOW, new Dali.Property.Value( value ) );
727     }
728   }
729   public Dali.Property.Map InputShadow
730   {
731     get
732     {
733       Dali.Property.Map temp = new Dali.Property.Map();
734       GetProperty( TextField.Property.INPUT_SHADOW).Get(  temp );
735       return temp;
736     }
737     set
738     {
739       SetProperty( TextField.Property.INPUT_SHADOW, new Dali.Property.Value( value ) );
740     }
741   }
742   public Dali.Property.Map Emboss
743   {
744     get
745     {
746       Dali.Property.Map temp = new Dali.Property.Map();
747       GetProperty( TextField.Property.EMBOSS).Get(  temp );
748       return temp;
749     }
750     set
751     {
752       SetProperty( TextField.Property.EMBOSS, new Dali.Property.Value( value ) );
753     }
754   }
755   public Dali.Property.Map InputEmboss
756   {
757     get
758     {
759       Dali.Property.Map temp = new Dali.Property.Map();
760       GetProperty( TextField.Property.INPUT_EMBOSS).Get(  temp );
761       return temp;
762     }
763     set
764     {
765       SetProperty( TextField.Property.INPUT_EMBOSS, new Dali.Property.Value( value ) );
766     }
767   }
768   public Dali.Property.Map Outline
769   {
770     get
771     {
772       Dali.Property.Map temp = new Dali.Property.Map();
773       GetProperty( TextField.Property.OUTLINE).Get(  temp );
774       return temp;
775     }
776     set
777     {
778       SetProperty( TextField.Property.OUTLINE, new Dali.Property.Value( value ) );
779     }
780   }
781   public Dali.Property.Map InputOutline
782   {
783     get
784     {
785       Dali.Property.Map temp = new Dali.Property.Map();
786       GetProperty( TextField.Property.INPUT_OUTLINE).Get(  temp );
787       return temp;
788     }
789     set
790     {
791       SetProperty( TextField.Property.INPUT_OUTLINE, new Dali.Property.Value( value ) );
792     }
793   }
794
795 /* Properties ends */
796
797 %}
798
799 %enddef
800
801 %define DALI_TEXTFIELD_EVENTHANDLER_PARAM( NameSpace, ClassName)
802
803   TEXTFIELD_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
804   TEXTFIELD_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
805
806 %enddef
807
808 namespace Dali
809 {
810   DALI_TEXTFIELD_EVENTHANDLER_PARAM( Dali::Toolkit, TextField);
811 }