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);
48 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Button obj)
50 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
54 /// To make Button instance be disposed.
56 public override void Dispose()
58 if (!Window.IsInstalled())
60 DisposeQueue.Instance.Add(this);
66 if (swigCPtr.Handle != global::System.IntPtr.Zero)
71 NDalicPINVOKE.delete_Button(swigCPtr);
73 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
75 global::System.GC.SuppressFinalize(this);
81 private EventHandlerWithReturnType<object, EventArgs, bool> _clickedEventHandler;
82 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
83 private delegate bool ClickedCallbackType(global::System.IntPtr data);
84 private ClickedCallbackType _clickedCallback;
87 /// Clicked will be triggered when the button is touched and the touch point doesn't leave the boundary of the button.
89 public event EventHandlerWithReturnType<object, EventArgs, bool> Clicked
93 if (_clickedEventHandler == null)
95 _clickedCallback = OnClicked;
96 ClickedSignal().Connect(_clickedCallback);
99 _clickedEventHandler += value;
104 _clickedEventHandler -= value;
106 if (_clickedEventHandler == null && ClickedSignal().Empty() == false)
108 ClickedSignal().Disconnect(_clickedCallback);
114 private bool OnClicked(IntPtr data)
116 if (_clickedEventHandler != null)
118 return _clickedEventHandler(this, null);
125 private EventHandlerWithReturnType<object, EventArgs, bool> _pressedEventHandler;
126 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
127 private delegate bool PressedCallbackType(global::System.IntPtr data);
128 private PressedCallbackType _pressedCallback;
131 /// Pressed will be triggered when the button is touched.
133 public event EventHandlerWithReturnType<object, EventArgs, bool> Pressed
137 if (_pressedEventHandler == null)
139 _pressedCallback = OnPressed;
140 PressedSignal().Connect(_pressedCallback);
143 _pressedEventHandler += value;
148 _pressedEventHandler -= value;
150 if (_pressedEventHandler == null && PressedSignal().Empty() == false)
152 this.PressedSignal().Disconnect(_pressedCallback);
157 private bool OnPressed(IntPtr data)
159 if (_pressedEventHandler != null)
161 return _pressedEventHandler(this, null);
168 private EventHandlerWithReturnType<object, EventArgs, bool> _releasedEventHandler;
169 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
170 private delegate bool ReleasedCallbackType(global::System.IntPtr data);
171 private ReleasedCallbackType _releasedCallback;
174 /// Released will be triggered when the button is touched and the touch point leaves the boundary of the button.
176 public event EventHandlerWithReturnType<object, EventArgs, bool> Released
180 if (_releasedEventHandler == null)
182 _releasedCallback = OnReleased;
183 ReleasedSignal().Connect(_releasedCallback);
185 _releasedEventHandler += value;
190 _releasedEventHandler -= value;
192 if (_releasedEventHandler == null && ReleasedSignal().Empty() == false)
194 ReleasedSignal().Disconnect(_releasedCallback);
200 private bool OnReleased(IntPtr data)
202 if (_releasedEventHandler != null)
204 return _releasedEventHandler(this, null);
210 private EventHandlerWithReturnType<object, EventArgs, bool> _stateChangedEventHandler;
211 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
212 private delegate bool StateChangedCallback(global::System.IntPtr data);
213 private StateChangedCallback _stateChangedCallback;
216 /// StateChanged will be triggered when the button's state is changed.
218 public event EventHandlerWithReturnType<object, EventArgs, bool> StateChanged
222 if (_stateChangedEventHandler == null)
224 _stateChangedCallback = OnStateChanged;
225 StateChangedSignal().Connect(_stateChangedCallback);
228 _stateChangedEventHandler += value;
233 _stateChangedEventHandler -= value;
235 if (_stateChangedEventHandler == null && StateChangedSignal().Empty() == false)
237 StateChangedSignal().Disconnect(_stateChangedCallback);
242 private bool OnStateChanged(IntPtr data)
244 if (_stateChangedEventHandler != null)
246 return _stateChangedEventHandler(this, null);
253 internal static Button GetButtonFromPtr(global::System.IntPtr cPtr)
255 Button ret = new Button(cPtr, false);
256 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
261 /// Gets/Sets the unselected button foreground/icon visual
263 public Tizen.NUI.PropertyMap UnselectedVisual
267 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
268 GetProperty(Button.Property.UNSELECTED_VISUAL).Get(temp);
273 SetProperty(Button.Property.UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
278 /// Gets/Sets the selected button foreground/icon visual
280 public Tizen.NUI.PropertyMap SelectedVisual
284 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
285 GetProperty(Button.Property.SELECTED_VISUAL).Get(temp);
290 SetProperty(Button.Property.SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
295 /// Gets/Sets the disabled selected state foreground/icon button visual
297 public Tizen.NUI.PropertyMap DisabledSelectedVisual
301 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
302 GetProperty(Button.Property.DISABLED_SELECTED_VISUAL).Get(temp);
307 SetProperty(Button.Property.DISABLED_SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
312 /// Gets/Sets the disabled unselected state foreground/icon visual
314 public Tizen.NUI.PropertyMap DisabledUnselectedVisual
318 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
319 GetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL).Get(temp);
324 SetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
329 /// Gets/Sets the disabled in the unselected state background, button visual
331 public Tizen.NUI.PropertyMap UnselectedBackgroundVisual
335 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
336 GetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL).Get(temp);
341 SetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
346 /// Gets/Sets the selected background button visual
348 public Tizen.NUI.PropertyMap SelectedBackgroundVisual
352 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
353 GetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL).Get(temp);
358 SetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
363 /// Gets/Sets the disabled while unselected background button visual
365 public Tizen.NUI.PropertyMap DisabledUnselectedBackgroundVisual
369 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
370 GetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL).Get(temp);
375 SetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
380 /// Gets/Sets the disabled while selected background button visual
382 public Tizen.NUI.PropertyMap DisabledSelectedBackgroundVisual
386 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
387 GetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL).Get(temp);
392 SetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
397 /// Gets/Sets the position of the the label in relation to the foreground/icon if both present
399 public Align LabelRelativeAlignment
404 if (GetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT).Get(out temp) == false)
407 Tizen.Log.Error("NUI", "LabelRelativeAlignment get error!");
426 string valueToString = "";
431 valueToString = "BEGIN";
436 valueToString = "END";
441 valueToString = "TOP";
446 valueToString = "BOTTOM";
451 valueToString = "END";
455 SetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
460 /// Gets/Sets the padding around the text
462 public Vector4 LabelPadding
466 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
467 GetProperty(Button.Property.LABEL_PADDING).Get(temp);
472 SetProperty(Button.Property.LABEL_PADDING, new Tizen.NUI.PropertyValue(value));
477 /// Gets/Sets the padding around the foreground visual
479 public Vector4 VisualPadding
483 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
484 GetProperty(Button.Property.VISUAL_PADDING).Get(temp);
489 SetProperty(Button.Property.VISUAL_PADDING, new Tizen.NUI.PropertyValue(value));
493 internal class Property : global::System.IDisposable
495 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
496 protected bool swigCMemOwn;
498 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
500 swigCMemOwn = cMemoryOwn;
501 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
504 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
506 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
511 DisposeQueue.Instance.Add(this);
514 public virtual void Dispose()
516 if (!Window.IsInstalled()) {
517 DisposeQueue.Instance.Add(this);
523 if (swigCPtr.Handle != global::System.IntPtr.Zero)
528 NDalicPINVOKE.delete_Button_Property(swigCPtr);
530 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
532 global::System.GC.SuppressFinalize(this);
536 internal static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
537 internal static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
538 internal static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
539 internal static readonly int DISABLED_UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_VISUAL_get();
540 internal static readonly int UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
541 internal static readonly int SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_BACKGROUND_VISUAL_get();
542 internal static readonly int DISABLED_UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
543 internal static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
544 internal static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
545 internal static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
546 internal static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
548 internal Property() : this(NDalicPINVOKE.new_Button_Property(), true)
550 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
553 internal static readonly int DISABLED = NDalicPINVOKE.Button_Property_DISABLED_get();
554 internal static readonly int AUTO_REPEATING = NDalicPINVOKE.Button_Property_AUTO_REPEATING_get();
555 internal static readonly int INITIAL_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_INITIAL_AUTO_REPEATING_DELAY_get();
556 internal static readonly int NEXT_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_NEXT_AUTO_REPEATING_DELAY_get();
557 internal static readonly int TOGGLABLE = NDalicPINVOKE.Button_Property_TOGGLABLE_get();
558 internal static readonly int SELECTED = NDalicPINVOKE.Button_Property_SELECTED_get();
559 internal static readonly int UNSELECTED_COLOR = NDalicPINVOKE.Button_Property_UNSELECTED_COLOR_get();
560 internal static readonly int SELECTED_COLOR = NDalicPINVOKE.Button_Property_SELECTED_COLOR_get();
561 internal static readonly int LABEL = NDalicPINVOKE.Button_Property_LABEL_get();
562 internal static readonly int LABEL_TEXT = NDalicPINVOKE.Button_Property_LABEL_TEXT_get();
567 /// Creates an uninitialized Button.<br>
568 /// Only derived versions can be instantiated.<br>
570 public Button() : this(NDalicPINVOKE.new_Button__SWIG_0(), true)
572 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
575 internal Button(Button button) : this(NDalicPINVOKE.new_Button__SWIG_1(Button.getCPtr(button)), true)
577 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 internal Button Assign(Button button)
582 Button ret = new Button(NDalicPINVOKE.Button_Assign(swigCPtr, Button.getCPtr(button)), false);
583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
588 /// Downcasts a handle to Button handle.<br>
589 /// If handle points to a Button, the downcast produces valid handle.<br>
590 /// If not the returned handle is left uninitialized.<br>
592 /// <param name="handle">Handle to an object</param>
593 /// <returns>A handle to a Button or an uninitialized handle</returns>
594 public new static Button DownCast(BaseHandle handle)
596 Button ret = new Button(NDalicPINVOKE.Button_DownCast(BaseHandle.getCPtr(handle)), true);
597 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
601 internal bool IsDisabled()
603 bool ret = NDalicPINVOKE.Button_IsDisabled(swigCPtr);
604 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
608 internal bool IsAutoRepeating()
610 bool ret = NDalicPINVOKE.Button_IsAutoRepeating(swigCPtr);
611 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
615 internal float GetInitialAutoRepeatingDelay()
617 float ret = NDalicPINVOKE.Button_GetInitialAutoRepeatingDelay(swigCPtr);
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
622 internal float GetNextAutoRepeatingDelay()
624 float ret = NDalicPINVOKE.Button_GetNextAutoRepeatingDelay(swigCPtr);
625 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
629 internal bool IsTogglableButton()
631 bool ret = NDalicPINVOKE.Button_IsTogglableButton(swigCPtr);
632 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
636 internal bool IsSelected()
638 bool ret = NDalicPINVOKE.Button_IsSelected(swigCPtr);
639 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
644 /// Retrieves button's animation time.
646 /// <returns></returns>
647 public float GetAnimationTime()
649 float ret = NDalicPINVOKE.Button_GetAnimationTime(swigCPtr);
650 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 internal string GetLabelText()
656 string ret = NDalicPINVOKE.Button_GetLabelText(swigCPtr);
657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
661 internal void SetLabel(View label)
663 NDalicPINVOKE.Button_SetLabel(swigCPtr, View.getCPtr(label));
664 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
667 internal void SetButtonImage(Image image)
669 NDalicPINVOKE.Button_SetButtonImage(swigCPtr, Image.getCPtr(image));
670 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
673 internal void SetSelectedImage(Image image)
675 NDalicPINVOKE.Button_SetSelectedImage(swigCPtr, Image.getCPtr(image));
676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
679 internal View GetButtonImage()
681 View ret = new View(NDalicPINVOKE.Button_GetButtonImage(swigCPtr), true);
682 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686 internal View GetSelectedImage()
688 View ret = new View(NDalicPINVOKE.Button_GetSelectedImage(swigCPtr), true);
689 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
693 internal ButtonSignal PressedSignal()
695 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_PressedSignal(swigCPtr), false);
696 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
700 internal ButtonSignal ReleasedSignal()
702 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ReleasedSignal(swigCPtr), false);
703 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
707 internal ButtonSignal ClickedSignal()
709 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ClickedSignal(swigCPtr), false);
710 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
714 internal ButtonSignal StateChangedSignal()
716 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_StateChangedSignal(swigCPtr), false);
717 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
721 internal enum PropertyRange
723 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
724 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
728 /// Gets/Sets the button as disabled.
735 GetProperty(Button.Property.DISABLED).Get(ref temp);
740 SetProperty(Button.Property.DISABLED, new Tizen.NUI.PropertyValue(value));
745 /// If the autorepeating property is set to true then the togglable property is set to false.
747 public bool AutoRepeating
752 GetProperty(Button.Property.AUTO_REPEATING).Get(ref temp);
757 SetProperty(Button.Property.AUTO_REPEATING, new Tizen.NUI.PropertyValue(value));
762 /// By default this value is set to 0.15 seconds.
764 public float InitialAutoRepeatingDelay
769 GetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get(ref temp);
774 SetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
779 /// default this value is set to 0.05 seconds.
781 public float NextAutoRepeatingDelay
786 GetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY).Get(ref temp);
791 SetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
796 /// If the togglable property is set to true, then the autorepeating property is set to false.
798 public bool Togglable
803 GetProperty(Button.Property.TOGGLABLE).Get(ref temp);
808 SetProperty(Button.Property.TOGGLABLE, new Tizen.NUI.PropertyValue(value));
813 /// /Gets/Sets the togglable button as either selected or unselected, togglable property must be set to true.
820 GetProperty(Button.Property.SELECTED).Get(ref temp);
825 SetProperty(Button.Property.SELECTED, new Tizen.NUI.PropertyValue(value));
830 /// Gets/Sets unselected color.
832 public Color UnselectedColor
836 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
837 GetProperty(Button.Property.UNSELECTED_COLOR).Get(temp);
842 SetProperty(Button.Property.UNSELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
847 /// Gets/Sets selected color.
849 public Color SelectedColor
853 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
854 GetProperty(Button.Property.SELECTED_COLOR).Get(temp);
859 SetProperty(Button.Property.SELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
866 public Tizen.NUI.PropertyMap Label
870 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
871 GetProperty(Button.Property.LABEL).Get(temp);
876 SetProperty(Button.Property.LABEL, new Tizen.NUI.PropertyValue(value));
881 /// Gets/Sets text of label.
883 public string LabelText
888 GetProperty(Button.Property.LABEL_TEXT).Get(out temp);
893 SetProperty(Button.Property.LABEL_TEXT, new Tizen.NUI.PropertyValue(value));
898 /// Enumeration for describing the position the text label can be in relation to the control(and foreground/icon).
903 /// At the start of the control before the foreground/icon
907 /// At the end of the control after the foreground/icon
911 /// At the top of the control above the foreground/icon
915 /// At the bottom of the control below the foreground/icon