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 public override void Dispose()
60 if (!Window.IsInstalled())
62 DisposeQueue.Instance.Add(this);
68 if (swigCPtr.Handle != global::System.IntPtr.Zero)
73 NDalicPINVOKE.delete_Button(swigCPtr);
75 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
77 global::System.GC.SuppressFinalize(this);
83 private EventHandlerWithReturnType<object, EventArgs, bool> _clickedEventHandler;
84 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
85 private delegate bool ClickedCallbackType(global::System.IntPtr data);
86 private ClickedCallbackType _clickedCallback;
89 /// Clicked will be triggered when the button is touched and the touch point doesn't leave the boundary of the button.
91 public event EventHandlerWithReturnType<object, EventArgs, bool> Clicked
95 if (_clickedEventHandler == null)
97 _clickedCallback = OnClicked;
98 ClickedSignal().Connect(_clickedCallback);
101 _clickedEventHandler += value;
106 _clickedEventHandler -= value;
108 if (_clickedEventHandler == null && ClickedSignal().Empty() == false)
110 ClickedSignal().Disconnect(_clickedCallback);
116 private bool OnClicked(IntPtr data)
118 if (_clickedEventHandler != null)
120 return _clickedEventHandler(this, null);
127 private EventHandlerWithReturnType<object, EventArgs, bool> _pressedEventHandler;
128 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
129 private delegate bool PressedCallbackType(global::System.IntPtr data);
130 private PressedCallbackType _pressedCallback;
133 /// Pressed will be triggered when the button is touched.
135 public event EventHandlerWithReturnType<object, EventArgs, bool> Pressed
139 if (_pressedEventHandler == null)
141 _pressedCallback = OnPressed;
142 PressedSignal().Connect(_pressedCallback);
145 _pressedEventHandler += value;
150 _pressedEventHandler -= value;
152 if (_pressedEventHandler == null && PressedSignal().Empty() == false)
154 this.PressedSignal().Disconnect(_pressedCallback);
159 private bool OnPressed(IntPtr data)
161 if (_pressedEventHandler != null)
163 return _pressedEventHandler(this, null);
170 private EventHandlerWithReturnType<object, EventArgs, bool> _releasedEventHandler;
171 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
172 private delegate bool ReleasedCallbackType(global::System.IntPtr data);
173 private ReleasedCallbackType _releasedCallback;
176 /// Released will be triggered when the button is touched and the touch point leaves the boundary of the button.
178 public event EventHandlerWithReturnType<object, EventArgs, bool> Released
182 if (_releasedEventHandler == null)
184 _releasedCallback = OnReleased;
185 ReleasedSignal().Connect(_releasedCallback);
187 _releasedEventHandler += value;
192 _releasedEventHandler -= value;
194 if (_releasedEventHandler == null && ReleasedSignal().Empty() == false)
196 ReleasedSignal().Disconnect(_releasedCallback);
202 private bool OnReleased(IntPtr data)
204 if (_releasedEventHandler != null)
206 return _releasedEventHandler(this, null);
212 private EventHandlerWithReturnType<object, EventArgs, bool> _stateChangedEventHandler;
213 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
214 private delegate bool StateChangedCallback(global::System.IntPtr data);
215 private StateChangedCallback _stateChangedCallback;
218 /// StateChanged will be triggered when the button's state is changed.
220 public event EventHandlerWithReturnType<object, EventArgs, bool> StateChanged
224 if (_stateChangedEventHandler == null)
226 _stateChangedCallback = OnStateChanged;
227 StateChangedSignal().Connect(_stateChangedCallback);
230 _stateChangedEventHandler += value;
235 _stateChangedEventHandler -= value;
237 if (_stateChangedEventHandler == null && StateChangedSignal().Empty() == false)
239 StateChangedSignal().Disconnect(_stateChangedCallback);
244 private bool OnStateChanged(IntPtr data)
246 if (_stateChangedEventHandler != null)
248 return _stateChangedEventHandler(this, null);
255 internal static Button GetButtonFromPtr(global::System.IntPtr cPtr)
257 Button ret = new Button(cPtr, false);
258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
263 /// Gets/Sets the unselected button foreground/icon visual
265 public Tizen.NUI.PropertyMap UnselectedVisual
269 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
270 GetProperty(Button.Property.UNSELECTED_VISUAL).Get(temp);
275 SetProperty(Button.Property.UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
280 /// Gets/Sets the selected button foreground/icon visual
282 public Tizen.NUI.PropertyMap SelectedVisual
286 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
287 GetProperty(Button.Property.SELECTED_VISUAL).Get(temp);
292 SetProperty(Button.Property.SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
297 /// Gets/Sets the disabled selected state foreground/icon button visual
299 public Tizen.NUI.PropertyMap DisabledSelectedVisual
303 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
304 GetProperty(Button.Property.DISABLED_SELECTED_VISUAL).Get(temp);
309 SetProperty(Button.Property.DISABLED_SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
314 /// Gets/Sets the disabled unselected state foreground/icon visual
316 public Tizen.NUI.PropertyMap DisabledUnselectedVisual
320 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
321 GetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL).Get(temp);
326 SetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
331 /// Gets/Sets the disabled in the unselected state background, button visual
333 public Tizen.NUI.PropertyMap UnselectedBackgroundVisual
337 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
338 GetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL).Get(temp);
343 SetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
348 /// Gets/Sets the selected background button visual
350 public Tizen.NUI.PropertyMap SelectedBackgroundVisual
354 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
355 GetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL).Get(temp);
360 SetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
365 /// Gets/Sets the disabled while unselected background button visual
367 public Tizen.NUI.PropertyMap DisabledUnselectedBackgroundVisual
371 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
372 GetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL).Get(temp);
377 SetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
382 /// Gets/Sets the disabled while selected background button visual
384 public Tizen.NUI.PropertyMap DisabledSelectedBackgroundVisual
388 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
389 GetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL).Get(temp);
394 SetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
399 /// Gets/Sets the position of the the label in relation to the foreground/icon if both present
401 public Align LabelRelativeAlignment
406 if (GetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT).Get(out temp) == false)
409 Tizen.Log.Error("NUI", "LabelRelativeAlignment get error!");
428 string valueToString = "";
433 valueToString = "BEGIN";
438 valueToString = "END";
443 valueToString = "TOP";
448 valueToString = "BOTTOM";
453 valueToString = "END";
457 SetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
462 /// Gets/Sets the padding around the text
464 public Vector4 LabelPadding
468 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
469 GetProperty(Button.Property.LABEL_PADDING).Get(temp);
474 SetProperty(Button.Property.LABEL_PADDING, new Tizen.NUI.PropertyValue(value));
479 /// Gets/Sets the padding around the foreground visual
481 public Vector4 VisualPadding
485 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
486 GetProperty(Button.Property.VISUAL_PADDING).Get(temp);
491 SetProperty(Button.Property.VISUAL_PADDING, new Tizen.NUI.PropertyValue(value));
495 internal class Property : global::System.IDisposable
497 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
498 protected bool swigCMemOwn;
500 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
502 swigCMemOwn = cMemoryOwn;
503 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
506 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
508 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
513 DisposeQueue.Instance.Add(this);
516 public virtual void Dispose()
518 if (!Window.IsInstalled()) {
519 DisposeQueue.Instance.Add(this);
525 if (swigCPtr.Handle != global::System.IntPtr.Zero)
530 NDalicPINVOKE.delete_Button_Property(swigCPtr);
532 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
534 global::System.GC.SuppressFinalize(this);
538 internal static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
539 internal static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
540 internal static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
541 internal static readonly int DISABLED_UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_VISUAL_get();
542 internal static readonly int UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
543 internal static readonly int SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_BACKGROUND_VISUAL_get();
544 internal static readonly int DISABLED_UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
545 internal static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
546 internal static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
547 internal static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
548 internal static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
550 internal Property() : this(NDalicPINVOKE.new_Button_Property(), true)
552 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
555 internal static readonly int DISABLED = NDalicPINVOKE.Button_Property_DISABLED_get();
556 internal static readonly int AUTO_REPEATING = NDalicPINVOKE.Button_Property_AUTO_REPEATING_get();
557 internal static readonly int INITIAL_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_INITIAL_AUTO_REPEATING_DELAY_get();
558 internal static readonly int NEXT_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_NEXT_AUTO_REPEATING_DELAY_get();
559 internal static readonly int TOGGLABLE = NDalicPINVOKE.Button_Property_TOGGLABLE_get();
560 internal static readonly int SELECTED = NDalicPINVOKE.Button_Property_SELECTED_get();
561 internal static readonly int UNSELECTED_COLOR = NDalicPINVOKE.Button_Property_UNSELECTED_COLOR_get();
562 internal static readonly int SELECTED_COLOR = NDalicPINVOKE.Button_Property_SELECTED_COLOR_get();
563 internal static readonly int LABEL = NDalicPINVOKE.Button_Property_LABEL_get();
564 internal static readonly int LABEL_TEXT = NDalicPINVOKE.Button_Property_LABEL_TEXT_get();
569 /// Creates an uninitialized Button.<br>
570 /// Only derived versions can be instantiated.<br>
572 public Button() : this(NDalicPINVOKE.new_Button__SWIG_0(), true)
574 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
577 internal Button(Button button) : this(NDalicPINVOKE.new_Button__SWIG_1(Button.getCPtr(button)), true)
579 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
582 internal Button Assign(Button button)
584 Button ret = new Button(NDalicPINVOKE.Button_Assign(swigCPtr, Button.getCPtr(button)), false);
585 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
590 /// Downcasts a handle to Button handle.<br>
591 /// If handle points to a Button, the downcast produces valid handle.<br>
592 /// If not the returned handle is left uninitialized.<br>
594 /// <param name="handle">Handle to an object</param>
595 /// <returns>A handle to a Button or an uninitialized handle</returns>
596 public new static Button DownCast(BaseHandle handle)
598 Button ret = new Button(NDalicPINVOKE.Button_DownCast(BaseHandle.getCPtr(handle)), true);
599 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
603 internal bool IsDisabled()
605 bool ret = NDalicPINVOKE.Button_IsDisabled(swigCPtr);
606 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
610 internal bool IsAutoRepeating()
612 bool ret = NDalicPINVOKE.Button_IsAutoRepeating(swigCPtr);
613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617 internal float GetInitialAutoRepeatingDelay()
619 float ret = NDalicPINVOKE.Button_GetInitialAutoRepeatingDelay(swigCPtr);
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
624 internal float GetNextAutoRepeatingDelay()
626 float ret = NDalicPINVOKE.Button_GetNextAutoRepeatingDelay(swigCPtr);
627 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
631 internal bool IsTogglableButton()
633 bool ret = NDalicPINVOKE.Button_IsTogglableButton(swigCPtr);
634 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
638 internal bool IsSelected()
640 bool ret = NDalicPINVOKE.Button_IsSelected(swigCPtr);
641 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
646 /// Retrieves button's animation time.
648 /// <returns></returns>
649 public float GetAnimationTime()
651 float ret = NDalicPINVOKE.Button_GetAnimationTime(swigCPtr);
652 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
656 internal string GetLabelText()
658 string ret = NDalicPINVOKE.Button_GetLabelText(swigCPtr);
659 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
663 internal void SetLabel(View label)
665 NDalicPINVOKE.Button_SetLabel(swigCPtr, View.getCPtr(label));
666 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
669 internal void SetButtonImage(Image image)
671 NDalicPINVOKE.Button_SetButtonImage(swigCPtr, Image.getCPtr(image));
672 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
675 internal void SetSelectedImage(Image image)
677 NDalicPINVOKE.Button_SetSelectedImage(swigCPtr, Image.getCPtr(image));
678 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
681 internal View GetButtonImage()
683 View ret = new View(NDalicPINVOKE.Button_GetButtonImage(swigCPtr), true);
684 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
688 internal View GetSelectedImage()
690 View ret = new View(NDalicPINVOKE.Button_GetSelectedImage(swigCPtr), true);
691 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
695 internal ButtonSignal PressedSignal()
697 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_PressedSignal(swigCPtr), false);
698 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
702 internal ButtonSignal ReleasedSignal()
704 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ReleasedSignal(swigCPtr), false);
705 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
709 internal ButtonSignal ClickedSignal()
711 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ClickedSignal(swigCPtr), false);
712 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
716 internal ButtonSignal StateChangedSignal()
718 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_StateChangedSignal(swigCPtr), false);
719 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
723 internal enum PropertyRange
725 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
726 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
730 /// Gets/Sets the button as disabled.
737 GetProperty(Button.Property.DISABLED).Get(ref temp);
742 SetProperty(Button.Property.DISABLED, new Tizen.NUI.PropertyValue(value));
747 /// If the autorepeating property is set to true then the togglable property is set to false.
749 public bool AutoRepeating
754 GetProperty(Button.Property.AUTO_REPEATING).Get(ref temp);
759 SetProperty(Button.Property.AUTO_REPEATING, new Tizen.NUI.PropertyValue(value));
764 /// By default this value is set to 0.15 seconds.
766 public float InitialAutoRepeatingDelay
771 GetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get(ref temp);
776 SetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
781 /// default this value is set to 0.05 seconds.
783 public float NextAutoRepeatingDelay
788 GetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY).Get(ref temp);
793 SetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
798 /// If the togglable property is set to true, then the autorepeating property is set to false.
800 public bool Togglable
805 GetProperty(Button.Property.TOGGLABLE).Get(ref temp);
810 SetProperty(Button.Property.TOGGLABLE, new Tizen.NUI.PropertyValue(value));
815 /// /Gets/Sets the togglable button as either selected or unselected, togglable property must be set to true.
822 GetProperty(Button.Property.SELECTED).Get(ref temp);
827 SetProperty(Button.Property.SELECTED, new Tizen.NUI.PropertyValue(value));
832 /// Gets/Sets unselected color.
834 public Color UnselectedColor
838 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
839 GetProperty(Button.Property.UNSELECTED_COLOR).Get(temp);
844 SetProperty(Button.Property.UNSELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
849 /// Gets/Sets selected color.
851 public Color SelectedColor
855 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
856 GetProperty(Button.Property.SELECTED_COLOR).Get(temp);
861 SetProperty(Button.Property.SELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
868 public Tizen.NUI.PropertyMap Label
872 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
873 GetProperty(Button.Property.LABEL).Get(temp);
878 SetProperty(Button.Property.LABEL, new Tizen.NUI.PropertyValue(value));
883 /// Gets/Sets text of label.
885 public string LabelText
890 GetProperty(Button.Property.LABEL_TEXT).Get(out temp);
895 SetProperty(Button.Property.LABEL_TEXT, new Tizen.NUI.PropertyValue(value));
900 /// Enumeration for describing the position the text label can be in relation to the control(and foreground/icon).
905 /// At the start of the control before the foreground/icon
909 /// At the end of the control after the foreground/icon
913 /// At the top of the control above the foreground/icon
917 /// At the bottom of the control below the foreground/icon