Merge "SVACE issue resolved" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / Button.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Dali {
12
13 using System;
14 using System.Runtime.InteropServices;
15
16
17 public class Button : View {
18   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
19
20   internal Button(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Button_SWIGUpcast(cPtr), cMemoryOwn) {
21     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
22   }
23
24   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Button obj) {
25     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26   }
27
28   ~Button() {
29     DisposeQueue.Instance.Add(this);
30   }
31
32   public override void Dispose() {
33     if (!Stage.IsInstalled()) {
34       DisposeQueue.Instance.Add(this);
35       return;
36     }
37
38     lock(this) {
39       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
40         if (swigCMemOwn) {
41           swigCMemOwn = false;
42           NDalicPINVOKE.delete_Button(swigCPtr);
43         }
44         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
45       }
46       global::System.GC.SuppressFinalize(this);
47       base.Dispose();
48     }
49   }
50
51
52
53 public class ClickedEventArgs : EventArgs
54 {
55    private Button _button;
56
57    public Button Button
58    {
59       get
60       {
61          return _button;
62       }
63       set
64       {
65          _button = value;
66       }
67    }
68 }
69
70 public class PressedEventArgs : EventArgs
71 {
72    private Button _button;
73
74    public Button Button
75    {
76       get
77       {
78          return _button;
79       }
80       set
81       {
82          _button = value;
83       }
84    }
85 }
86
87 public class ReleasedEventArgs : EventArgs
88 {
89    private Button _button;
90
91    public Button Button
92    {
93       get
94       {
95          return _button;
96       }
97       set
98       {
99          _button = value;
100       }
101    }
102 }
103
104 public class StateChangedEventArgs : EventArgs
105 {
106    private Button _button;
107
108    public Button Button
109    {
110       get
111       {
112          return _button;
113       }
114       set
115       {
116          _button = value;
117       }
118    }
119 }
120
121
122   [UnmanagedFunctionPointer(CallingConvention.StdCall)]
123   private delegate bool ClickedCallbackDelegate(global::System.IntPtr data);
124   private DaliEventHandlerWithReturnType<object,ClickedEventArgs,bool> _buttonClickedEventHandler;
125   private ClickedCallbackDelegate _buttonClickedCallbackDelegate;
126
127   [UnmanagedFunctionPointer(CallingConvention.StdCall)]
128   private delegate bool PressedCallbackDelegate(global::System.IntPtr data);
129   private DaliEventHandlerWithReturnType<object,PressedEventArgs,bool> _buttonPressedEventHandler;
130   private PressedCallbackDelegate _buttonPressedCallbackDelegate;
131
132   [UnmanagedFunctionPointer(CallingConvention.StdCall)]
133   private delegate bool ReleasedCallbackDelegate(global::System.IntPtr data);
134   private DaliEventHandlerWithReturnType<object,ReleasedEventArgs,bool>  _buttonReleasedEventHandler;
135   private ReleasedCallbackDelegate _buttonReleasedCallbackDelegate;
136
137   [UnmanagedFunctionPointer(CallingConvention.StdCall)]
138   private delegate bool StateChangedCallbackDelegate(global::System.IntPtr data);
139   private DaliEventHandlerWithReturnType<object,StateChangedEventArgs,bool> _buttonStateChangedEventHandler;
140   private StateChangedCallbackDelegate _buttonStateChangedCallbackDelegate;
141
142
143   public event DaliEventHandlerWithReturnType<object,ClickedEventArgs,bool> Clicked
144   {
145      add
146      {
147         lock(this)
148         {
149            // Restricted to only one listener
150            if (_buttonClickedEventHandler == null)
151            {
152               _buttonClickedEventHandler += value;
153
154               _buttonClickedCallbackDelegate = new ClickedCallbackDelegate(OnClicked);
155               this.ClickedSignal().Connect(_buttonClickedCallbackDelegate);
156            }
157         }
158      }
159
160      remove
161      {
162         lock(this)
163         {
164            if (_buttonClickedEventHandler != null)
165            {
166                this.ClickedSignal().Disconnect(_buttonClickedCallbackDelegate);
167            }
168
169            _buttonClickedEventHandler -= value;
170         }
171      }
172   }
173
174   // Callback for button click signal
175   private bool OnClicked (IntPtr data)
176   {
177      ClickedEventArgs e = new ClickedEventArgs();
178
179      e.Button = Button.GetButtonFromPtr(data);
180
181      if (_buttonClickedEventHandler != null)
182      {
183         //here we send all data to user event handlers
184         return _buttonClickedEventHandler(this, e);
185      }
186      return false;
187   }
188
189
190   public event DaliEventHandlerWithReturnType<object,PressedEventArgs,bool> Pressed
191   {
192      add
193      {
194         lock(this)
195         {
196            // Restricted to only one listener
197            if (_buttonPressedEventHandler == null)
198            {
199               _buttonPressedEventHandler += value;
200
201               _buttonPressedCallbackDelegate = new PressedCallbackDelegate(OnPressed);
202               this.PressedSignal().Connect(_buttonPressedCallbackDelegate);
203            }
204         }
205      }
206
207      remove
208      {
209         lock(this)
210         {
211            if (_buttonPressedEventHandler != null)
212            {
213                this.PressedSignal().Disconnect(_buttonPressedCallbackDelegate);
214            }
215
216            _buttonPressedEventHandler -= value;
217         }
218      }
219   }
220
221   // Callback for button click signal
222   private bool OnPressed (IntPtr data)
223   {
224      PressedEventArgs e = new PressedEventArgs();
225
226      e.Button = Button.GetButtonFromPtr(data);
227
228      if (_buttonPressedEventHandler != null)
229      {
230         //here we send all data to user event handlers
231        return _buttonPressedEventHandler(this, e);
232      }
233      return false;
234   }
235
236
237   public event DaliEventHandlerWithReturnType<object,ReleasedEventArgs,bool> Released
238   {
239      add
240      {
241         lock(this)
242         {
243            // Restricted to only one listener
244            if (_buttonReleasedEventHandler == null)
245            {
246               _buttonReleasedEventHandler += value;
247
248               _buttonReleasedCallbackDelegate = new ReleasedCallbackDelegate(OnReleased);
249               this.ReleasedSignal().Connect(_buttonReleasedCallbackDelegate);
250            }
251         }
252      }
253
254      remove
255      {
256         lock(this)
257         {
258            if (_buttonReleasedEventHandler != null)
259            {
260                this.ReleasedSignal().Disconnect(_buttonReleasedCallbackDelegate);
261            }
262
263            _buttonReleasedEventHandler -= value;
264         }
265      }
266   }
267
268   // Callback for button click signal
269   private bool OnReleased (IntPtr data)
270   {
271      ReleasedEventArgs e = new ReleasedEventArgs();
272
273      e.Button = Button.GetButtonFromPtr(data);
274
275      if (_buttonReleasedEventHandler != null)
276      {
277         //here we send all data to user event handlers
278        return _buttonReleasedEventHandler(this, e);
279      }
280      return false;
281   }
282
283
284   public event DaliEventHandlerWithReturnType<object,StateChangedEventArgs,bool> StateChanged
285   {
286      add
287      {
288         lock(this)
289         {
290            // Restricted to only one listener
291            if (_buttonStateChangedEventHandler == null)
292            {
293               _buttonStateChangedEventHandler += value;
294
295               _buttonStateChangedCallbackDelegate = new StateChangedCallbackDelegate(OnStateChanged);
296               this.StateChangedSignal().Connect(_buttonStateChangedCallbackDelegate);
297            }
298         }
299      }
300
301      remove
302      {
303         lock(this)
304         {
305            if (_buttonStateChangedEventHandler != null)
306            {
307                this.StateChangedSignal().Disconnect(_buttonStateChangedCallbackDelegate);
308            }
309
310            _buttonStateChangedEventHandler -= value;
311         }
312      }
313   }
314
315   // Callback for button click signal
316   private bool OnStateChanged (IntPtr data)
317   {
318      StateChangedEventArgs e = new StateChangedEventArgs();
319
320      e.Button = Button.GetButtonFromPtr(data);
321
322      if (_buttonStateChangedEventHandler != null)
323      {
324         //here we send all data to user event handlers
325        return _buttonStateChangedEventHandler(this, e);
326      }
327      return false;
328   }
329
330  public static Button GetButtonFromPtr(global::System.IntPtr cPtr) {
331     Button ret = new Button(cPtr, false);
332    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
333     return ret;
334   }
335
336   public Dali.Property.Map UnselectedVisual
337   {
338     get
339     {
340       Dali.Property.Map temp = new Dali.Property.Map();
341       GetProperty( Button.Property.UNSELECTED_VISUAL).Get(  temp );
342       return temp;
343     }
344     set
345     {
346       SetProperty( Button.Property.UNSELECTED_VISUAL, new Dali.Property.Value( value ) );
347     }
348   }
349
350   public Dali.Property.Map SelectedVisual
351   {
352     get
353     {
354       Dali.Property.Map temp = new Dali.Property.Map();
355       GetProperty( Button.Property.SELECTED_VISUAL).Get(  temp );
356       return temp;
357     }
358     set
359     {
360       SetProperty( Button.Property.SELECTED_VISUAL, new Dali.Property.Value( value ) );
361     }
362   }
363
364   public Dali.Property.Map DisabledSelectedVisual
365   {
366     get
367     {
368       Dali.Property.Map temp = new Dali.Property.Map();
369       GetProperty( Button.Property.DISABLED_SELECTED_VISUAL).Get(  temp );
370       return temp;
371     }
372     set
373     {
374       SetProperty( Button.Property.DISABLED_SELECTED_VISUAL, new Dali.Property.Value( value ) );
375     }
376   }
377
378   public Dali.Property.Map DisabledUnselectedVisual
379   {
380     get
381     {
382       Dali.Property.Map temp = new Dali.Property.Map();
383       GetProperty( Button.Property.DISABLED_UNSELECTED_VISUAL).Get(  temp );
384       return temp;
385     }
386     set
387     {
388       SetProperty( Button.Property.DISABLED_UNSELECTED_VISUAL, new Dali.Property.Value( value ) );
389     }
390   }
391
392   public Dali.Property.Map UnselectedBackgroundVisual
393   {
394     get
395     {
396       Dali.Property.Map temp = new Dali.Property.Map();
397       GetProperty( Button.Property.UNSELECTED_BACKGROUND_VISUAL).Get(  temp );
398       return temp;
399     }
400     set
401     {
402       SetProperty( Button.Property.UNSELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
403     }
404   }
405
406   public Dali.Property.Map SelectedBackgroundVisual
407   {
408     get
409     {
410       Dali.Property.Map temp = new Dali.Property.Map();
411       GetProperty( Button.Property.SELECTED_BACKGROUND_VISUAL).Get(  temp );
412       return temp;
413     }
414     set
415     {
416       SetProperty( Button.Property.SELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
417     }
418   }
419
420   public Dali.Property.Map DisabledUnselectedBackgroundVisual
421   {
422     get
423     {
424       Dali.Property.Map temp = new Dali.Property.Map();
425       GetProperty( Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL).Get(  temp );
426       return temp;
427     }
428     set
429     {
430       SetProperty( Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
431     }
432   }
433
434   public Dali.Property.Map DisabledSelectedBackgroundVisual
435   {
436     get
437     {
438       Dali.Property.Map temp = new Dali.Property.Map();
439       GetProperty( Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL).Get(  temp );
440       return temp;
441     }
442     set
443     {
444       SetProperty( Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
445     }
446   }
447
448   public string LabelRelativeAlignment
449   {
450     get
451     {
452       string temp;
453       GetProperty( Button.Property.LABEL_RELATIVE_ALIGNMENT).Get( out temp );
454       return temp;
455     }
456     set
457     {
458       SetProperty( Button.Property.LABEL_RELATIVE_ALIGNMENT, new Dali.Property.Value( value ) );
459     }
460   }
461
462   public Vector4 LabelPadding
463   {
464     get
465     {
466       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
467       GetProperty( Button.Property.LABEL_PADDING).Get(  temp );
468       return temp;
469     }
470     set
471     {
472       SetProperty( Button.Property.LABEL_PADDING, new Dali.Property.Value( value ) );
473     }
474   }
475
476   public Vector4 VisualPadding
477   {
478     get
479     {
480       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
481       GetProperty( Button.Property.VISUAL_PADDING).Get(  temp );
482       return temp;
483     }
484     set
485     {
486       SetProperty( Button.Property.VISUAL_PADDING, new Dali.Property.Value( value ) );
487     }
488   }
489
490   public class Property : global::System.IDisposable {
491     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
492     protected bool swigCMemOwn;
493   
494     internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
495       swigCMemOwn = cMemoryOwn;
496       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
497     }
498   
499     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
500       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
501     }
502   
503     ~Property() {
504       Dispose();
505     }
506   
507     public virtual void Dispose() {
508       lock(this) {
509         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
510           if (swigCMemOwn) {
511             swigCMemOwn = false;
512             NDalicPINVOKE.delete_Button_Property(swigCPtr);
513           }
514           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
515         }
516         global::System.GC.SuppressFinalize(this);
517       }
518     }
519   
520     public static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
521     public static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
522     public static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
523     public static readonly int DISABLED_UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_VISUAL_get();
524     public static readonly int UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
525     public static readonly int SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_BACKGROUND_VISUAL_get();
526     public static readonly int DISABLED_UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
527     public static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
528     public static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
529     public static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
530     public static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
531   
532     public Property() : this(NDalicPINVOKE.new_Button_Property(), true) {
533       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
534     }
535   
536     public static readonly int DISABLED = NDalicPINVOKE.Button_Property_DISABLED_get();
537     public static readonly int AUTO_REPEATING = NDalicPINVOKE.Button_Property_AUTO_REPEATING_get();
538     public static readonly int INITIAL_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_INITIAL_AUTO_REPEATING_DELAY_get();
539     public static readonly int NEXT_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_NEXT_AUTO_REPEATING_DELAY_get();
540     public static readonly int TOGGLABLE = NDalicPINVOKE.Button_Property_TOGGLABLE_get();
541     public static readonly int SELECTED = NDalicPINVOKE.Button_Property_SELECTED_get();
542     public static readonly int UNSELECTED_STATE_IMAGE = NDalicPINVOKE.Button_Property_UNSELECTED_STATE_IMAGE_get();
543     public static readonly int SELECTED_STATE_IMAGE = NDalicPINVOKE.Button_Property_SELECTED_STATE_IMAGE_get();
544     public static readonly int DISABLED_STATE_IMAGE = NDalicPINVOKE.Button_Property_DISABLED_STATE_IMAGE_get();
545     public static readonly int UNSELECTED_COLOR = NDalicPINVOKE.Button_Property_UNSELECTED_COLOR_get();
546     public static readonly int SELECTED_COLOR = NDalicPINVOKE.Button_Property_SELECTED_COLOR_get();
547     public static readonly int LABEL = NDalicPINVOKE.Button_Property_LABEL_get();
548     public static readonly int LABEL_TEXT = NDalicPINVOKE.Button_Property_LABEL_TEXT_get();
549   
550   }
551
552   public Button() : this(NDalicPINVOKE.new_Button__SWIG_0(), true) {
553     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
554   }
555
556   public Button(Button button) : this(NDalicPINVOKE.new_Button__SWIG_1(Button.getCPtr(button)), true) {
557     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558   }
559
560   public Button Assign(Button button) {
561     Button ret = new Button(NDalicPINVOKE.Button_Assign(swigCPtr, Button.getCPtr(button)), false);
562     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563     return ret;
564   }
565
566   public new static Button DownCast(BaseHandle handle) {
567     Button ret = new Button(NDalicPINVOKE.Button_DownCast(BaseHandle.getCPtr(handle)), true);
568     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
569     return ret;
570   }
571
572   public bool IsDisabled() {
573     bool ret = NDalicPINVOKE.Button_IsDisabled(swigCPtr);
574     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
575     return ret;
576   }
577
578   public bool IsAutoRepeating() {
579     bool ret = NDalicPINVOKE.Button_IsAutoRepeating(swigCPtr);
580     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
581     return ret;
582   }
583
584   public float GetInitialAutoRepeatingDelay() {
585     float ret = NDalicPINVOKE.Button_GetInitialAutoRepeatingDelay(swigCPtr);
586     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
587     return ret;
588   }
589
590   public float GetNextAutoRepeatingDelay() {
591     float ret = NDalicPINVOKE.Button_GetNextAutoRepeatingDelay(swigCPtr);
592     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593     return ret;
594   }
595
596   public bool IsTogglableButton() {
597     bool ret = NDalicPINVOKE.Button_IsTogglableButton(swigCPtr);
598     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
599     return ret;
600   }
601
602   public bool IsSelected() {
603     bool ret = NDalicPINVOKE.Button_IsSelected(swigCPtr);
604     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
605     return ret;
606   }
607
608   public float GetAnimationTime() {
609     float ret = NDalicPINVOKE.Button_GetAnimationTime(swigCPtr);
610     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
611     return ret;
612   }
613
614   public string GetLabelText() {
615     string ret = NDalicPINVOKE.Button_GetLabelText(swigCPtr);
616     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617     return ret;
618   }
619
620   public void SetLabel(Actor label) {
621     NDalicPINVOKE.Button_SetLabel(swigCPtr, Actor.getCPtr(label));
622     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
623   }
624
625   public void SetButtonImage(Image image) {
626     NDalicPINVOKE.Button_SetButtonImage(swigCPtr, Image.getCPtr(image));
627     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
628   }
629
630   public void SetSelectedImage(Image image) {
631     NDalicPINVOKE.Button_SetSelectedImage(swigCPtr, Image.getCPtr(image));
632     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
633   }
634
635   public Actor GetButtonImage() {
636     Actor ret = new Actor(NDalicPINVOKE.Button_GetButtonImage(swigCPtr), true);
637     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
638     return ret;
639   }
640
641   public Actor GetSelectedImage() {
642     Actor ret = new Actor(NDalicPINVOKE.Button_GetSelectedImage(swigCPtr), true);
643     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
644     return ret;
645   }
646
647   public ButtonSignal PressedSignal() {
648     ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_PressedSignal(swigCPtr), false);
649     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
650     return ret;
651   }
652
653   public ButtonSignal ReleasedSignal() {
654     ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ReleasedSignal(swigCPtr), false);
655     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
656     return ret;
657   }
658
659   public ButtonSignal ClickedSignal() {
660     ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ClickedSignal(swigCPtr), false);
661     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
662     return ret;
663   }
664
665   public ButtonSignal StateChangedSignal() {
666     ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_StateChangedSignal(swigCPtr), false);
667     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
668     return ret;
669   }
670
671   public enum PropertyRange {
672     PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
673     PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000
674   }
675
676   public bool Disabled
677   {
678     get
679     {
680       bool temp = false;
681       GetProperty( Button.Property.DISABLED).Get( ref temp );
682       return temp;
683     }
684     set
685     {
686       SetProperty( Button.Property.DISABLED, new Dali.Property.Value( value ) );
687     }
688   }
689   public bool AutoRepeating
690   {
691     get
692     {
693       bool temp = false;
694       GetProperty( Button.Property.AUTO_REPEATING).Get( ref temp );
695       return temp;
696     }
697     set
698     {
699       SetProperty( Button.Property.AUTO_REPEATING, new Dali.Property.Value( value ) );
700     }
701   }
702   public float InitialAutoRepeatingDelay
703   {
704     get
705     {
706       float temp = 0.0f;
707       GetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get( ref temp );
708       return temp;
709     }
710     set
711     {
712       SetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY, new Dali.Property.Value( value ) );
713     }
714   }
715   public float NextAutoRepeatingDelay
716   {
717     get
718     {
719       float temp = 0.0f;
720       GetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY).Get( ref temp );
721       return temp;
722     }
723     set
724     {
725       SetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY, new Dali.Property.Value( value ) );
726     }
727   }
728   public bool Togglable
729   {
730     get
731     {
732       bool temp = false;
733       GetProperty( Button.Property.TOGGLABLE).Get( ref temp );
734       return temp;
735     }
736     set
737     {
738       SetProperty( Button.Property.TOGGLABLE, new Dali.Property.Value( value ) );
739     }
740   }
741   public bool Selected
742   {
743     get
744     {
745       bool temp = false;
746       GetProperty( Button.Property.SELECTED).Get( ref temp );
747       return temp;
748     }
749     set
750     {
751       SetProperty( Button.Property.SELECTED, new Dali.Property.Value( value ) );
752     }
753   }
754   public Dali.Property.Map UnselectedStateImage
755   {
756     get
757     {
758       Dali.Property.Map temp = new Dali.Property.Map();
759       GetProperty( Button.Property.UNSELECTED_STATE_IMAGE).Get(  temp );
760       return temp;
761     }
762     set
763     {
764       SetProperty( Button.Property.UNSELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
765     }
766   }
767   public Dali.Property.Map SelectedStateImage
768   {
769     get
770     {
771       Dali.Property.Map temp = new Dali.Property.Map();
772       GetProperty( Button.Property.SELECTED_STATE_IMAGE).Get(  temp );
773       return temp;
774     }
775     set
776     {
777       SetProperty( Button.Property.SELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
778     }
779   }
780   public Dali.Property.Map DisabledStateImage
781   {
782     get
783     {
784       Dali.Property.Map temp = new Dali.Property.Map();
785       GetProperty( Button.Property.DISABLED_STATE_IMAGE).Get(  temp );
786       return temp;
787     }
788     set
789     {
790       SetProperty( Button.Property.DISABLED_STATE_IMAGE, new Dali.Property.Value( value ) );
791     }
792   }
793   public Vector4 UnselectedColor
794   {
795     get
796     {
797       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
798       GetProperty( Button.Property.UNSELECTED_COLOR).Get(  temp );
799       return temp;
800     }
801     set
802     {
803       SetProperty( Button.Property.UNSELECTED_COLOR, new Dali.Property.Value( value ) );
804     }
805   }
806   public Vector4 SelectedColor
807   {
808     get
809     {
810       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
811       GetProperty( Button.Property.SELECTED_COLOR).Get(  temp );
812       return temp;
813     }
814     set
815     {
816       SetProperty( Button.Property.SELECTED_COLOR, new Dali.Property.Value( value ) );
817     }
818   }
819   public Dali.Property.Map Label
820   {
821     get
822     {
823       Dali.Property.Map temp = new Dali.Property.Map();
824       GetProperty( Button.Property.LABEL).Get(  temp );
825       return temp;
826     }
827     set
828     {
829       SetProperty( Button.Property.LABEL, new Dali.Property.Value( value ) );
830     }
831   }
832   public string LabelText
833   {
834     get
835     {
836       string temp;
837       GetProperty( Button.Property.LABEL_TEXT).Get( out temp );
838       return temp;
839     }
840     set
841     {
842       SetProperty( Button.Property.LABEL_TEXT, new Dali.Property.Value( value ) );
843     }
844   }
845
846 }
847
848 }