1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
\r
2 // PROPRIETARY/CONFIDENTIAL
\r
3 // This software is the confidential and proprietary
\r
4 // information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall
\r
5 // not disclose such Confidential Information and shall use it only in
\r
6 // accordance with the terms of the license agreement you entered into with
\r
7 // SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the
\r
8 // suitability of the software, either express or implied, including but not
\r
9 // limited to the implied warranties of merchantability, fitness for a
\r
10 // particular purpose, or non-infringement. SAMSUNG shall not be liable for any
\r
11 // damages suffered by licensee as a result of using, modifying or distributing
\r
12 // this software or its derivatives.
\r
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
\r
16 // Licensed under the Apache License, Version 2.0 (the "License");
\r
17 // you may not use this file except in compliance with the License.
\r
18 // You may obtain a copy of the License at
\r
20 // http://www.apache.org/licenses/LICENSE-2.0
\r
22 // Unless required by applicable law or agreed to in writing, software
\r
23 // distributed under the License is distributed on an "AS IS" BASIS,
\r
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
25 // See the License for the specific language governing permissions and
\r
26 // limitations under the License.
\r
29 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
\r
30 // Some have been manually changed
\r
36 using System.Runtime.InteropServices;
\r
39 public class Button : View
\r
41 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
43 internal Button(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Button_SWIGUpcast(cPtr), cMemoryOwn)
\r
45 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
48 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Button obj)
\r
50 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
55 DisposeQueue.Instance.Add(this);
\r
58 public override void Dispose()
\r
60 if (!Stage.IsInstalled())
\r
62 DisposeQueue.Instance.Add(this);
\r
68 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
72 swigCMemOwn = false;
\r
73 NDalicPINVOKE.delete_Button(swigCPtr);
\r
75 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
77 global::System.GC.SuppressFinalize(this);
\r
85 public class ClickedEventArgs : EventArgs
\r
87 private Button _button;
\r
89 public Button Button
\r
102 public class PressedEventArgs : EventArgs
\r
104 private Button _button;
\r
106 public Button Button
\r
119 public class ReleasedEventArgs : EventArgs
\r
121 private Button _button;
\r
123 public Button Button
\r
136 public class StateChangedEventArgs : EventArgs
\r
138 private Button _button;
\r
140 public Button Button
\r
154 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
155 private delegate bool ClickedCallbackDelegate(global::System.IntPtr data);
\r
156 private DaliEventHandlerWithReturnType<object, ClickedEventArgs, bool> _buttonClickedEventHandler;
\r
157 private ClickedCallbackDelegate _buttonClickedCallbackDelegate;
\r
159 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
160 private delegate bool PressedCallbackDelegate(global::System.IntPtr data);
\r
161 private DaliEventHandlerWithReturnType<object, PressedEventArgs, bool> _buttonPressedEventHandler;
\r
162 private PressedCallbackDelegate _buttonPressedCallbackDelegate;
\r
164 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
165 private delegate bool ReleasedCallbackDelegate(global::System.IntPtr data);
\r
166 private DaliEventHandlerWithReturnType<object, ReleasedEventArgs, bool> _buttonReleasedEventHandler;
\r
167 private ReleasedCallbackDelegate _buttonReleasedCallbackDelegate;
\r
169 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
170 private delegate bool StateChangedCallbackDelegate(global::System.IntPtr data);
\r
171 private DaliEventHandlerWithReturnType<object, StateChangedEventArgs, bool> _buttonStateChangedEventHandler;
\r
172 private StateChangedCallbackDelegate _buttonStateChangedCallbackDelegate;
\r
175 public event DaliEventHandlerWithReturnType<object, ClickedEventArgs, bool> Clicked
\r
181 // Restricted to only one listener
\r
182 if (_buttonClickedEventHandler == null)
\r
184 _buttonClickedEventHandler += value;
\r
186 _buttonClickedCallbackDelegate = new ClickedCallbackDelegate(OnClicked);
\r
187 this.ClickedSignal().Connect(_buttonClickedCallbackDelegate);
\r
196 if (_buttonClickedEventHandler != null)
\r
198 this.ClickedSignal().Disconnect(_buttonClickedCallbackDelegate);
\r
201 _buttonClickedEventHandler -= value;
\r
206 // Callback for button click signal
\r
207 private bool OnClicked(IntPtr data)
\r
209 ClickedEventArgs e = new ClickedEventArgs();
\r
211 e.Button = Button.GetButtonFromPtr(data);
\r
213 if (_buttonClickedEventHandler != null)
\r
215 //here we send all data to user event handlers
\r
216 return _buttonClickedEventHandler(this, e);
\r
222 public event DaliEventHandlerWithReturnType<object, PressedEventArgs, bool> Pressed
\r
228 // Restricted to only one listener
\r
229 if (_buttonPressedEventHandler == null)
\r
231 _buttonPressedEventHandler += value;
\r
233 _buttonPressedCallbackDelegate = new PressedCallbackDelegate(OnPressed);
\r
234 this.PressedSignal().Connect(_buttonPressedCallbackDelegate);
\r
243 if (_buttonPressedEventHandler != null)
\r
245 this.PressedSignal().Disconnect(_buttonPressedCallbackDelegate);
\r
248 _buttonPressedEventHandler -= value;
\r
253 // Callback for button click signal
\r
254 private bool OnPressed(IntPtr data)
\r
256 PressedEventArgs e = new PressedEventArgs();
\r
258 e.Button = Button.GetButtonFromPtr(data);
\r
260 if (_buttonPressedEventHandler != null)
\r
262 //here we send all data to user event handlers
\r
263 return _buttonPressedEventHandler(this, e);
\r
269 public event DaliEventHandlerWithReturnType<object, ReleasedEventArgs, bool> Released
\r
275 // Restricted to only one listener
\r
276 if (_buttonReleasedEventHandler == null)
\r
278 _buttonReleasedEventHandler += value;
\r
280 _buttonReleasedCallbackDelegate = new ReleasedCallbackDelegate(OnReleased);
\r
281 this.ReleasedSignal().Connect(_buttonReleasedCallbackDelegate);
\r
290 if (_buttonReleasedEventHandler != null)
\r
292 this.ReleasedSignal().Disconnect(_buttonReleasedCallbackDelegate);
\r
295 _buttonReleasedEventHandler -= value;
\r
300 // Callback for button click signal
\r
301 private bool OnReleased(IntPtr data)
\r
303 ReleasedEventArgs e = new ReleasedEventArgs();
\r
305 e.Button = Button.GetButtonFromPtr(data);
\r
307 if (_buttonReleasedEventHandler != null)
\r
309 //here we send all data to user event handlers
\r
310 return _buttonReleasedEventHandler(this, e);
\r
316 public event DaliEventHandlerWithReturnType<object, StateChangedEventArgs, bool> StateChanged
\r
322 // Restricted to only one listener
\r
323 if (_buttonStateChangedEventHandler == null)
\r
325 _buttonStateChangedEventHandler += value;
\r
327 _buttonStateChangedCallbackDelegate = new StateChangedCallbackDelegate(OnStateChanged);
\r
328 this.StateChangedSignal().Connect(_buttonStateChangedCallbackDelegate);
\r
337 if (_buttonStateChangedEventHandler != null)
\r
339 this.StateChangedSignal().Disconnect(_buttonStateChangedCallbackDelegate);
\r
342 _buttonStateChangedEventHandler -= value;
\r
347 // Callback for button click signal
\r
348 private bool OnStateChanged(IntPtr data)
\r
350 StateChangedEventArgs e = new StateChangedEventArgs();
\r
352 e.Button = Button.GetButtonFromPtr(data);
\r
354 if (_buttonStateChangedEventHandler != null)
\r
356 //here we send all data to user event handlers
\r
357 return _buttonStateChangedEventHandler(this, e);
\r
363 private EventHandlerWithReturnType<object, EventArgs, bool> _clickedEventHandler;
\r
364 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
365 private delegate bool ClickedCallbackType(global::System.IntPtr data);
\r
366 private ClickedCallbackType _clickedCallback;
\r
368 public event EventHandlerWithReturnType<object, EventArgs, bool> Clicked
\r
372 if (_clickedEventHandler == null)
\r
374 _clickedCallback = OnClicked;
\r
375 ClickedSignal().Connect(_clickedCallback);
\r
378 _clickedEventHandler += value;
\r
383 if (_clickedEventHandler != null)
\r
385 ClickedSignal().Disconnect(_clickedCallback);
\r
388 _clickedEventHandler -= value;
\r
393 private bool OnClicked(IntPtr data)
\r
395 if (_clickedEventHandler != null)
\r
397 return _clickedEventHandler(this, null);
\r
404 private EventHandlerWithReturnType<object, EventArgs, bool> _pressedEventHandler;
\r
405 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
406 private delegate bool PressedCallbackType(global::System.IntPtr data);
\r
407 private PressedCallbackType _pressedCallback;
\r
409 public event EventHandlerWithReturnType<object, EventArgs, bool> Pressed
\r
413 if (_pressedEventHandler == null)
\r
415 _pressedCallback = OnPressed;
\r
416 PressedSignal().Connect(_pressedCallback);
\r
419 _pressedEventHandler += value;
\r
424 if (_pressedEventHandler != null)
\r
426 this.PressedSignal().Disconnect(_pressedCallback);
\r
429 _pressedEventHandler -= value;
\r
433 private bool OnPressed(IntPtr data)
\r
435 if (_pressedEventHandler != null)
\r
437 return _pressedEventHandler(this, null);
\r
444 private EventHandlerWithReturnType<object, EventArgs, bool> _releasedEventHandler;
\r
445 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
446 private delegate bool ReleasedCallbackType(global::System.IntPtr data);
\r
447 private ReleasedCallbackType _releasedCallback;
\r
449 public event EventHandlerWithReturnType<object, EventArgs, bool> Released
\r
453 if (_releasedEventHandler == null)
\r
455 _releasedCallback = OnReleased;
\r
456 ReleasedSignal().Connect(_releasedCallback);
\r
459 _releasedEventHandler += value;
\r
466 if (_releasedEventHandler != null)
\r
468 ReleasedSignal().Disconnect(_releasedCallback);
\r
471 _releasedEventHandler -= value;
\r
476 private bool OnReleased(IntPtr data)
\r
478 if (_releasedEventHandler != null)
\r
480 return _releasedEventHandler(this, null);
\r
486 private EventHandlerWithReturnType<object, EventArgs, bool> _stateChangedEventHandler;
\r
487 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
488 private delegate bool StateChangedCallback(global::System.IntPtr data);
\r
489 private StateChangedCallback _stateChangedCallback;
\r
491 public event EventHandlerWithReturnType<object, EventArgs, bool> StateChanged
\r
495 if (_stateChangedEventHandler == null)
\r
497 _stateChangedCallback = OnStateChanged;
\r
498 StateChangedSignal().Connect(_stateChangedCallback);
\r
501 _stateChangedEventHandler += value;
\r
506 if (_stateChangedEventHandler != null)
\r
508 StateChangedSignal().Disconnect(_stateChangedCallback);
\r
511 _stateChangedEventHandler -= value;
\r
515 private bool OnStateChanged(IntPtr data)
\r
517 if (_stateChangedEventHandler != null)
\r
519 return _stateChangedEventHandler(this, null);
\r
525 public static Button GetButtonFromPtr(global::System.IntPtr cPtr)
\r
527 Button ret = new Button(cPtr, false);
\r
528 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
532 public Tizen.NUI.PropertyMap UnselectedVisual
\r
536 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
537 GetProperty(Button.Property.UNSELECTED_VISUAL).Get(temp);
\r
542 SetProperty(Button.Property.UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
\r
546 public Tizen.NUI.PropertyMap SelectedVisual
\r
550 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
551 GetProperty(Button.Property.SELECTED_VISUAL).Get(temp);
\r
556 SetProperty(Button.Property.SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
\r
560 public Tizen.NUI.PropertyMap DisabledSelectedVisual
\r
564 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
565 GetProperty(Button.Property.DISABLED_SELECTED_VISUAL).Get(temp);
\r
570 SetProperty(Button.Property.DISABLED_SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
\r
574 public Tizen.NUI.PropertyMap DisabledUnselectedVisual
\r
578 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
579 GetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL).Get(temp);
\r
584 SetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
\r
588 public Tizen.NUI.PropertyMap UnselectedBackgroundVisual
\r
592 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
593 GetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL).Get(temp);
\r
598 SetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
\r
602 public Tizen.NUI.PropertyMap SelectedBackgroundVisual
\r
606 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
607 GetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL).Get(temp);
\r
612 SetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
\r
616 public Tizen.NUI.PropertyMap DisabledUnselectedBackgroundVisual
\r
620 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
621 GetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL).Get(temp);
\r
626 SetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
\r
630 public Tizen.NUI.PropertyMap DisabledSelectedBackgroundVisual
\r
634 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
635 GetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL).Get(temp);
\r
640 SetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
\r
644 public string LabelRelativeAlignment
\r
649 GetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT).Get(out temp);
\r
654 SetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
\r
658 public Vector4 LabelPadding
\r
662 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
\r
663 GetProperty(Button.Property.LABEL_PADDING).Get(temp);
\r
668 SetProperty(Button.Property.LABEL_PADDING, new Tizen.NUI.PropertyValue(value));
\r
672 public Vector4 VisualPadding
\r
676 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
\r
677 GetProperty(Button.Property.VISUAL_PADDING).Get(temp);
\r
682 SetProperty(Button.Property.VISUAL_PADDING, new Tizen.NUI.PropertyValue(value));
\r
686 internal class Property : global::System.IDisposable
\r
688 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
689 protected bool swigCMemOwn;
\r
691 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
693 swigCMemOwn = cMemoryOwn;
\r
694 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
697 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
\r
699 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
707 public virtual void Dispose()
\r
711 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
715 swigCMemOwn = false;
\r
716 NDalicPINVOKE.delete_Button_Property(swigCPtr);
\r
718 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
720 global::System.GC.SuppressFinalize(this);
\r
724 internal static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
\r
725 internal static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
\r
726 internal static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
\r
727 internal static readonly int DISABLED_UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_VISUAL_get();
\r
728 internal static readonly int UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
\r
729 internal static readonly int SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_BACKGROUND_VISUAL_get();
\r
730 internal static readonly int DISABLED_UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
\r
731 internal static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
\r
732 internal static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
\r
733 internal static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
\r
734 internal static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
\r
736 internal Property() : this(NDalicPINVOKE.new_Button_Property(), true)
\r
738 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
741 internal static readonly int DISABLED = NDalicPINVOKE.Button_Property_DISABLED_get();
\r
742 internal static readonly int AUTO_REPEATING = NDalicPINVOKE.Button_Property_AUTO_REPEATING_get();
\r
743 internal static readonly int INITIAL_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_INITIAL_AUTO_REPEATING_DELAY_get();
\r
744 internal static readonly int NEXT_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_NEXT_AUTO_REPEATING_DELAY_get();
\r
745 internal static readonly int TOGGLABLE = NDalicPINVOKE.Button_Property_TOGGLABLE_get();
\r
746 internal static readonly int SELECTED = NDalicPINVOKE.Button_Property_SELECTED_get();
\r
747 internal static readonly int UNSELECTED_STATE_IMAGE = NDalicPINVOKE.Button_Property_UNSELECTED_STATE_IMAGE_get();
\r
748 internal static readonly int SELECTED_STATE_IMAGE = NDalicPINVOKE.Button_Property_SELECTED_STATE_IMAGE_get();
\r
749 internal static readonly int DISABLED_STATE_IMAGE = NDalicPINVOKE.Button_Property_DISABLED_STATE_IMAGE_get();
\r
750 internal static readonly int UNSELECTED_COLOR = NDalicPINVOKE.Button_Property_UNSELECTED_COLOR_get();
\r
751 internal static readonly int SELECTED_COLOR = NDalicPINVOKE.Button_Property_SELECTED_COLOR_get();
\r
752 internal static readonly int LABEL = NDalicPINVOKE.Button_Property_LABEL_get();
\r
753 internal static readonly int LABEL_TEXT = NDalicPINVOKE.Button_Property_LABEL_TEXT_get();
\r
757 public Button() : this(NDalicPINVOKE.new_Button__SWIG_0(), true)
\r
759 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
762 internal Button(Button button) : this(NDalicPINVOKE.new_Button__SWIG_1(Button.getCPtr(button)), true)
\r
764 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
767 internal Button Assign(Button button)
\r
769 Button ret = new Button(NDalicPINVOKE.Button_Assign(swigCPtr, Button.getCPtr(button)), false);
\r
770 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
774 public new static Button DownCast(BaseHandle handle)
\r
776 Button ret = new Button(NDalicPINVOKE.Button_DownCast(BaseHandle.getCPtr(handle)), true);
\r
777 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
781 internal bool IsDisabled()
\r
783 bool ret = NDalicPINVOKE.Button_IsDisabled(swigCPtr);
\r
784 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
788 internal bool IsAutoRepeating()
\r
790 bool ret = NDalicPINVOKE.Button_IsAutoRepeating(swigCPtr);
\r
791 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
795 internal float GetInitialAutoRepeatingDelay()
\r
797 float ret = NDalicPINVOKE.Button_GetInitialAutoRepeatingDelay(swigCPtr);
\r
798 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
802 internal float GetNextAutoRepeatingDelay()
\r
804 float ret = NDalicPINVOKE.Button_GetNextAutoRepeatingDelay(swigCPtr);
\r
805 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
809 internal bool IsTogglableButton()
\r
811 bool ret = NDalicPINVOKE.Button_IsTogglableButton(swigCPtr);
\r
812 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
816 internal bool IsSelected()
\r
818 bool ret = NDalicPINVOKE.Button_IsSelected(swigCPtr);
\r
819 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
823 public float GetAnimationTime()
\r
825 float ret = NDalicPINVOKE.Button_GetAnimationTime(swigCPtr);
\r
826 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
830 internal string GetLabelText()
\r
832 string ret = NDalicPINVOKE.Button_GetLabelText(swigCPtr);
\r
833 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
837 internal void SetLabel(Actor label)
\r
839 NDalicPINVOKE.Button_SetLabel(swigCPtr, Actor.getCPtr(label));
\r
840 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
843 internal void SetButtonImage(Image image)
\r
845 NDalicPINVOKE.Button_SetButtonImage(swigCPtr, Image.getCPtr(image));
\r
846 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
849 internal void SetSelectedImage(Image image)
\r
851 NDalicPINVOKE.Button_SetSelectedImage(swigCPtr, Image.getCPtr(image));
\r
852 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
855 internal Actor GetButtonImage()
\r
857 Actor ret = new Actor(NDalicPINVOKE.Button_GetButtonImage(swigCPtr), true);
\r
858 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
862 internal Actor GetSelectedImage()
\r
864 Actor ret = new Actor(NDalicPINVOKE.Button_GetSelectedImage(swigCPtr), true);
\r
865 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
869 internal ButtonSignal PressedSignal()
\r
871 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_PressedSignal(swigCPtr), false);
\r
872 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
876 internal ButtonSignal ReleasedSignal()
\r
878 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ReleasedSignal(swigCPtr), false);
\r
879 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
883 internal ButtonSignal ClickedSignal()
\r
885 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ClickedSignal(swigCPtr), false);
\r
886 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
890 internal ButtonSignal StateChangedSignal()
\r
892 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_StateChangedSignal(swigCPtr), false);
\r
893 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
897 internal enum PropertyRange
\r
899 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
\r
900 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
\r
903 public bool Disabled
\r
908 GetProperty(Button.Property.DISABLED).Get(ref temp);
\r
913 SetProperty(Button.Property.DISABLED, new Tizen.NUI.PropertyValue(value));
\r
916 public bool AutoRepeating
\r
921 GetProperty(Button.Property.AUTO_REPEATING).Get(ref temp);
\r
926 SetProperty(Button.Property.AUTO_REPEATING, new Tizen.NUI.PropertyValue(value));
\r
929 public float InitialAutoRepeatingDelay
\r
934 GetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get(ref temp);
\r
939 SetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
\r
942 public float NextAutoRepeatingDelay
\r
947 GetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY).Get(ref temp);
\r
952 SetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
\r
955 public bool Togglable
\r
960 GetProperty(Button.Property.TOGGLABLE).Get(ref temp);
\r
965 SetProperty(Button.Property.TOGGLABLE, new Tizen.NUI.PropertyValue(value));
\r
968 public bool Selected
\r
973 GetProperty(Button.Property.SELECTED).Get(ref temp);
\r
978 SetProperty(Button.Property.SELECTED, new Tizen.NUI.PropertyValue(value));
\r
981 public Tizen.NUI.PropertyMap UnselectedStateImage
\r
985 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
986 GetProperty(Button.Property.UNSELECTED_STATE_IMAGE).Get(temp);
\r
991 SetProperty(Button.Property.UNSELECTED_STATE_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
994 public Tizen.NUI.PropertyMap SelectedStateImage
\r
998 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
999 GetProperty(Button.Property.SELECTED_STATE_IMAGE).Get(temp);
\r
1004 SetProperty(Button.Property.SELECTED_STATE_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
1007 public Tizen.NUI.PropertyMap DisabledStateImage
\r
1011 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
1012 GetProperty(Button.Property.DISABLED_STATE_IMAGE).Get(temp);
\r
1017 SetProperty(Button.Property.DISABLED_STATE_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
1020 public Color UnselectedColor
\r
1024 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
\r
1025 GetProperty(Button.Property.UNSELECTED_COLOR).Get(temp);
\r
1030 SetProperty(Button.Property.UNSELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
\r
1033 public Color SelectedColor
\r
1037 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
\r
1038 GetProperty(Button.Property.SELECTED_COLOR).Get(temp);
\r
1043 SetProperty(Button.Property.SELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
\r
1046 public Tizen.NUI.PropertyMap Label
\r
1050 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
1051 GetProperty(Button.Property.LABEL).Get(temp);
\r
1056 SetProperty(Button.Property.LABEL, new Tizen.NUI.PropertyValue(value));
\r
1059 public string LabelText
\r
1064 GetProperty(Button.Property.LABEL_TEXT).Get(out temp);
\r
1069 SetProperty(Button.Property.LABEL_TEXT, new Tizen.NUI.PropertyValue(value));
\r