1 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 // Some have been manually changed
19 namespace Tizen.NUI.UIComponents
23 using System.Runtime.InteropServices;
24 using Tizen.NUI.BaseComponents;
27 /// Button is a base class for different kinds of buttons.<br>
28 /// This class provides the disabled property and the clicked signal.<br>
29 /// A Clicked event handler is emitted when the button is touched and the touch point doesn't leave the boundary of the button.<br>
30 /// When the disabled property is set to true, no signal is emitted.<br>
31 /// 'Visual' describes not just traditional images like png, bmp but refers to whatever is used to show the button, it could be a color, gradient or some other kind of renderer.<br>
32 /// The button's appearance can be modified by setting properties for the various visuals/images.<br>
33 /// It is not mandatory to set all visuals. A button could be defined only by setting its background visual or by setting its background and selected visuals.<br>
34 /// The button visual is shown over the background visual.<br>
35 /// When pressed the unselected visuals are replaced by the selected visual.<br>
36 /// The text label is always placed on the top of all images.<br>
37 /// When the button is disabled, background, button and selected visuals are replaced by their disabled visuals.<br>
39 public class Button : View
41 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
43 internal Button(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Button_SWIGUpcast(cPtr), cMemoryOwn)
45 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
46 // By default, we do not want the position to use the anchor point
47 PositionUsesAnchorPoint = false;
50 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Button obj)
52 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
56 /// To make Button instance be disposed.
58 protected override void Dispose(DisposeTypes type)
65 if (type == DisposeTypes.Explicit)
68 //Release your own managed resources here.
69 //You should release all of your own disposable objects here.
73 //Release your own unmanaged resources here.
74 //You should not access any managed member here except static instance.
75 //because the execution order of Finalizes is non-deterministic.
77 //Unreference this from if a static instance refer to this.
78 ViewRegistry.UnregisterView(this);
80 if (swigCPtr.Handle != global::System.IntPtr.Zero)
85 NDalicPINVOKE.delete_Button(swigCPtr);
87 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
94 private EventHandlerWithReturnType<object, EventArgs, bool> _clickedEventHandler;
95 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
96 private delegate bool ClickedCallbackType(global::System.IntPtr data);
97 private ClickedCallbackType _clickedCallback;
100 /// Clicked will be triggered when the button is touched and the touch point doesn't leave the boundary of the button.
102 public event EventHandlerWithReturnType<object, EventArgs, bool> Clicked
106 if (_clickedEventHandler == null)
108 _clickedCallback = OnClicked;
109 ClickedSignal().Connect(_clickedCallback);
112 _clickedEventHandler += value;
117 _clickedEventHandler -= value;
119 if (_clickedEventHandler == null && ClickedSignal().Empty() == false)
121 ClickedSignal().Disconnect(_clickedCallback);
127 private bool OnClicked(IntPtr data)
129 if (_clickedEventHandler != null)
131 return _clickedEventHandler(this, null);
138 private EventHandlerWithReturnType<object, EventArgs, bool> _pressedEventHandler;
139 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
140 private delegate bool PressedCallbackType(global::System.IntPtr data);
141 private PressedCallbackType _pressedCallback;
144 /// Pressed will be triggered when the button is touched.
146 public event EventHandlerWithReturnType<object, EventArgs, bool> Pressed
150 if (_pressedEventHandler == null)
152 _pressedCallback = OnPressed;
153 PressedSignal().Connect(_pressedCallback);
156 _pressedEventHandler += value;
161 _pressedEventHandler -= value;
163 if (_pressedEventHandler == null && PressedSignal().Empty() == false)
165 this.PressedSignal().Disconnect(_pressedCallback);
170 private bool OnPressed(IntPtr data)
172 if (_pressedEventHandler != null)
174 return _pressedEventHandler(this, null);
181 private EventHandlerWithReturnType<object, EventArgs, bool> _releasedEventHandler;
182 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
183 private delegate bool ReleasedCallbackType(global::System.IntPtr data);
184 private ReleasedCallbackType _releasedCallback;
187 /// Released will be triggered when the button is touched and the touch point leaves the boundary of the button.
189 public event EventHandlerWithReturnType<object, EventArgs, bool> Released
193 if (_releasedEventHandler == null)
195 _releasedCallback = OnReleased;
196 ReleasedSignal().Connect(_releasedCallback);
198 _releasedEventHandler += value;
203 _releasedEventHandler -= value;
205 if (_releasedEventHandler == null && ReleasedSignal().Empty() == false)
207 ReleasedSignal().Disconnect(_releasedCallback);
213 private bool OnReleased(IntPtr data)
215 if (_releasedEventHandler != null)
217 return _releasedEventHandler(this, null);
223 private EventHandlerWithReturnType<object, EventArgs, bool> _stateChangedEventHandler;
224 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
225 private delegate bool StateChangedCallback(global::System.IntPtr data);
226 private StateChangedCallback _stateChangedCallback;
229 /// StateChanged will be triggered when the button's state is changed.
231 public event EventHandlerWithReturnType<object, EventArgs, bool> StateChanged
235 if (_stateChangedEventHandler == null)
237 _stateChangedCallback = OnStateChanged;
238 StateChangedSignal().Connect(_stateChangedCallback);
241 _stateChangedEventHandler += value;
246 _stateChangedEventHandler -= value;
248 if (_stateChangedEventHandler == null && StateChangedSignal().Empty() == false)
250 StateChangedSignal().Disconnect(_stateChangedCallback);
255 private bool OnStateChanged(IntPtr data)
257 if (_stateChangedEventHandler != null)
259 return _stateChangedEventHandler(this, null);
266 internal static Button GetButtonFromPtr(global::System.IntPtr cPtr)
268 Button ret = new Button(cPtr, false);
269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
274 /// Gets/Sets the unselected button foreground/icon visual
276 public Tizen.NUI.PropertyMap UnselectedVisual
280 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
281 GetProperty(Button.Property.UNSELECTED_VISUAL).Get(temp);
286 SetProperty(Button.Property.UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
291 /// Gets/Sets the selected button foreground/icon visual
293 public Tizen.NUI.PropertyMap SelectedVisual
297 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
298 GetProperty(Button.Property.SELECTED_VISUAL).Get(temp);
303 SetProperty(Button.Property.SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
308 /// Gets/Sets the disabled selected state foreground/icon button visual
310 public Tizen.NUI.PropertyMap DisabledSelectedVisual
314 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
315 GetProperty(Button.Property.DISABLED_SELECTED_VISUAL).Get(temp);
320 SetProperty(Button.Property.DISABLED_SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
325 /// Gets/Sets the disabled unselected state foreground/icon visual
327 public Tizen.NUI.PropertyMap DisabledUnselectedVisual
331 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
332 GetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL).Get(temp);
337 SetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
342 /// Gets/Sets the disabled in the unselected state background, button visual
344 public Tizen.NUI.PropertyMap UnselectedBackgroundVisual
348 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
349 GetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL).Get(temp);
354 SetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
359 /// Gets/Sets the selected background button visual
361 public Tizen.NUI.PropertyMap SelectedBackgroundVisual
365 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
366 GetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL).Get(temp);
371 SetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
376 /// Gets/Sets the disabled while unselected background button visual
378 public Tizen.NUI.PropertyMap DisabledUnselectedBackgroundVisual
382 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
383 GetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL).Get(temp);
388 SetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
393 /// Gets/Sets the disabled while selected background button visual
395 public Tizen.NUI.PropertyMap DisabledSelectedBackgroundVisual
399 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
400 GetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL).Get(temp);
405 SetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
410 /// Gets/Sets the position of the the label in relation to the foreground/icon if both present
412 public Align LabelRelativeAlignment
417 if (GetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT).Get(out temp) == false)
420 Tizen.Log.Error("NUI", "LabelRelativeAlignment get error!");
439 string valueToString = "";
444 valueToString = "BEGIN";
449 valueToString = "END";
454 valueToString = "TOP";
459 valueToString = "BOTTOM";
464 valueToString = "END";
468 SetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
473 /// Gets/Sets the padding around the text
475 public Vector4 LabelPadding
479 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
480 GetProperty(Button.Property.LABEL_PADDING).Get(temp);
485 SetProperty(Button.Property.LABEL_PADDING, new Tizen.NUI.PropertyValue(value));
490 /// Gets/Sets the padding around the foreground visual
492 public Vector4 VisualPadding
496 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
497 GetProperty(Button.Property.VISUAL_PADDING).Get(temp);
502 SetProperty(Button.Property.VISUAL_PADDING, new Tizen.NUI.PropertyValue(value));
506 internal class Property : global::System.IDisposable
508 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
509 protected bool swigCMemOwn;
511 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
513 swigCMemOwn = cMemoryOwn;
514 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
517 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
519 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
522 //A Flag to check who called Dispose(). (By User or DisposeQueue)
523 private bool isDisposeQueued = false;
524 //A Flat to check if it is already disposed.
525 protected bool disposed = false;
529 if (!isDisposeQueued)
531 isDisposeQueued = true;
532 DisposeQueue.Instance.Add(this);
536 public void Dispose()
538 //Throw excpetion if Dispose() is called in separate thread.
539 if (!Window.IsInstalled())
541 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
546 Dispose(DisposeTypes.Implicit);
550 Dispose(DisposeTypes.Explicit);
551 System.GC.SuppressFinalize(this);
555 protected virtual void Dispose(DisposeTypes type)
562 if (type == DisposeTypes.Explicit)
565 //Release your own managed resources here.
566 //You should release all of your own disposable objects here.
570 //Release your own unmanaged resources here.
571 //You should not access any managed member here except static instance.
572 //because the execution order of Finalizes is non-deterministic.
574 if (swigCPtr.Handle != global::System.IntPtr.Zero)
579 NDalicPINVOKE.delete_Button_Property(swigCPtr);
581 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
587 internal static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
588 internal static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
589 internal static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
590 internal static readonly int DISABLED_UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_VISUAL_get();
591 internal static readonly int UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
592 internal static readonly int SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_BACKGROUND_VISUAL_get();
593 internal static readonly int DISABLED_UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
594 internal static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
595 internal static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
596 internal static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
597 internal static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
599 internal Property() : this(NDalicPINVOKE.new_Button_Property(), true)
601 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
604 internal static readonly int DISABLED = NDalicPINVOKE.Button_Property_DISABLED_get();
605 internal static readonly int AUTO_REPEATING = NDalicPINVOKE.Button_Property_AUTO_REPEATING_get();
606 internal static readonly int INITIAL_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_INITIAL_AUTO_REPEATING_DELAY_get();
607 internal static readonly int NEXT_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_NEXT_AUTO_REPEATING_DELAY_get();
608 internal static readonly int TOGGLABLE = NDalicPINVOKE.Button_Property_TOGGLABLE_get();
609 internal static readonly int SELECTED = NDalicPINVOKE.Button_Property_SELECTED_get();
610 internal static readonly int UNSELECTED_COLOR = NDalicPINVOKE.Button_Property_UNSELECTED_COLOR_get();
611 internal static readonly int SELECTED_COLOR = NDalicPINVOKE.Button_Property_SELECTED_COLOR_get();
612 internal static readonly int LABEL = NDalicPINVOKE.Button_Property_LABEL_get();
613 internal static readonly int LABEL_TEXT = NDalicPINVOKE.Button_Property_LABEL_TEXT_get();
618 /// Creates an uninitialized Button.<br>
619 /// Only derived versions can be instantiated.<br>
621 public Button() : this(NDalicPINVOKE.new_Button__SWIG_0(), true)
623 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626 internal Button(Button button) : this(NDalicPINVOKE.new_Button__SWIG_1(Button.getCPtr(button)), true)
628 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
631 internal Button Assign(Button button)
633 Button ret = new Button(NDalicPINVOKE.Button_Assign(swigCPtr, Button.getCPtr(button)), false);
634 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
639 /// Downcasts a handle to Button handle.<br>
640 /// If handle points to a Button, the downcast produces valid handle.<br>
641 /// If not the returned handle is left uninitialized.<br>
643 /// <param name="handle">Handle to an object</param>
644 /// <returns>A handle to a Button or an uninitialized handle</returns>
645 public new static Button DownCast(BaseHandle handle)
647 Button ret = new Button(NDalicPINVOKE.Button_DownCast(BaseHandle.getCPtr(handle)), true);
648 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
652 internal bool IsDisabled()
654 bool ret = NDalicPINVOKE.Button_IsDisabled(swigCPtr);
655 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
659 internal bool IsAutoRepeating()
661 bool ret = NDalicPINVOKE.Button_IsAutoRepeating(swigCPtr);
662 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
666 internal float GetInitialAutoRepeatingDelay()
668 float ret = NDalicPINVOKE.Button_GetInitialAutoRepeatingDelay(swigCPtr);
669 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
673 internal float GetNextAutoRepeatingDelay()
675 float ret = NDalicPINVOKE.Button_GetNextAutoRepeatingDelay(swigCPtr);
676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
680 internal bool IsTogglableButton()
682 bool ret = NDalicPINVOKE.Button_IsTogglableButton(swigCPtr);
683 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
687 internal bool IsSelected()
689 bool ret = NDalicPINVOKE.Button_IsSelected(swigCPtr);
690 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
695 /// Retrieves button's animation time.
697 /// <returns></returns>
698 public float GetAnimationTime()
700 float ret = NDalicPINVOKE.Button_GetAnimationTime(swigCPtr);
701 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
705 internal string GetLabelText()
707 string ret = NDalicPINVOKE.Button_GetLabelText(swigCPtr);
708 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
712 internal void SetLabel(View label)
714 NDalicPINVOKE.Button_SetLabel(swigCPtr, View.getCPtr(label));
715 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
718 internal void SetButtonImage(Image image)
720 NDalicPINVOKE.Button_SetButtonImage(swigCPtr, Image.getCPtr(image));
721 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
724 internal void SetSelectedImage(Image image)
726 NDalicPINVOKE.Button_SetSelectedImage(swigCPtr, Image.getCPtr(image));
727 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
730 internal View GetButtonImage()
732 View ret = new View(NDalicPINVOKE.Button_GetButtonImage(swigCPtr), true);
733 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
737 internal View GetSelectedImage()
739 View ret = new View(NDalicPINVOKE.Button_GetSelectedImage(swigCPtr), true);
740 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
744 internal ButtonSignal PressedSignal()
746 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_PressedSignal(swigCPtr), false);
747 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
751 internal ButtonSignal ReleasedSignal()
753 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ReleasedSignal(swigCPtr), false);
754 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
758 internal ButtonSignal ClickedSignal()
760 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ClickedSignal(swigCPtr), false);
761 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
765 internal ButtonSignal StateChangedSignal()
767 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_StateChangedSignal(swigCPtr), false);
768 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
772 internal enum PropertyRange
774 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
775 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
779 /// Gets/Sets the button as disabled.
786 GetProperty(Button.Property.DISABLED).Get(ref temp);
791 SetProperty(Button.Property.DISABLED, new Tizen.NUI.PropertyValue(value));
796 /// If the autorepeating property is set to true then the togglable property is set to false.
798 public bool AutoRepeating
803 GetProperty(Button.Property.AUTO_REPEATING).Get(ref temp);
808 SetProperty(Button.Property.AUTO_REPEATING, new Tizen.NUI.PropertyValue(value));
813 /// By default this value is set to 0.15 seconds.
815 public float InitialAutoRepeatingDelay
820 GetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get(ref temp);
825 SetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
830 /// default this value is set to 0.05 seconds.
832 public float NextAutoRepeatingDelay
837 GetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY).Get(ref temp);
842 SetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
847 /// If the togglable property is set to true, then the autorepeating property is set to false.
849 public bool Togglable
854 GetProperty(Button.Property.TOGGLABLE).Get(ref temp);
859 SetProperty(Button.Property.TOGGLABLE, new Tizen.NUI.PropertyValue(value));
864 /// /Gets/Sets the togglable button as either selected or unselected, togglable property must be set to true.
871 GetProperty(Button.Property.SELECTED).Get(ref temp);
876 SetProperty(Button.Property.SELECTED, new Tizen.NUI.PropertyValue(value));
881 /// Gets/Sets unselected color.
883 public Color UnselectedColor
887 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
888 GetProperty(Button.Property.UNSELECTED_COLOR).Get(temp);
893 SetProperty(Button.Property.UNSELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
898 /// Gets/Sets selected color.
900 public Color SelectedColor
904 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
905 GetProperty(Button.Property.SELECTED_COLOR).Get(temp);
910 SetProperty(Button.Property.SELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
917 public Tizen.NUI.PropertyMap Label
921 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
922 GetProperty(Button.Property.LABEL).Get(temp);
927 SetProperty(Button.Property.LABEL, new Tizen.NUI.PropertyValue(value));
932 /// Gets/Sets text of label.
934 public string LabelText
939 GetProperty(Button.Property.LABEL_TEXT).Get(out temp);
944 SetProperty(Button.Property.LABEL_TEXT, new Tizen.NUI.PropertyValue(value));
949 /// Enumeration for describing the position the text label can be in relation to the control(and foreground/icon).
954 /// At the start of the control before the foreground/icon
958 /// At the end of the control after the foreground/icon
962 /// At the top of the control above the foreground/icon
966 /// At the bottom of the control below the foreground/icon