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
23 using System.Runtime.InteropServices;
26 /// Button is a base class for different kinds of buttons.
27 /// This class provides the disabled property and the clicked signal.
28 /// A Clicked event handler is emitted when the button is touched and the touch point doesn't leave the boundary of the button.
29 /// When the disabled property is set to true, no signal is emitted.
30 /// '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.
31 /// The button's appearance can be modified by setting properties for the various visuals/images.
32 /// 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.
33 /// The button visual is shown over the background visual.
34 /// When pressed the unselected visuals are replaced by the selected visual.
35 /// The text label is always placed on the top of all images.
36 /// When the button is disabled, background, button and selected visuals are replaced by their disabled visuals.
38 public class Button : View
40 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
42 internal Button(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Button_SWIGUpcast(cPtr), cMemoryOwn)
44 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
47 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Button obj)
49 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
54 DisposeQueue.Instance.Add(this);
58 /// To make Button instance be disposed.
60 public override void Dispose()
62 if (!Stage.IsInstalled())
64 DisposeQueue.Instance.Add(this);
70 if (swigCPtr.Handle != global::System.IntPtr.Zero)
75 NDalicPINVOKE.delete_Button(swigCPtr);
77 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
79 global::System.GC.SuppressFinalize(this);
85 private EventHandlerWithReturnType<object, EventArgs, bool> _clickedEventHandler;
86 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
87 private delegate bool ClickedCallbackType(global::System.IntPtr data);
88 private ClickedCallbackType _clickedCallback;
90 public event EventHandlerWithReturnType<object, EventArgs, bool> Clicked
94 if (_clickedEventHandler == null)
96 _clickedCallback = OnClicked;
97 ClickedSignal().Connect(_clickedCallback);
100 _clickedEventHandler += value;
105 _clickedEventHandler -= value;
107 if (_clickedEventHandler == null && _clickedCallback != null)
109 ClickedSignal().Disconnect(_clickedCallback);
115 private bool OnClicked(IntPtr data)
117 if (_clickedEventHandler != null)
119 return _clickedEventHandler(this, null);
126 private EventHandlerWithReturnType<object, EventArgs, bool> _pressedEventHandler;
127 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
128 private delegate bool PressedCallbackType(global::System.IntPtr data);
129 private PressedCallbackType _pressedCallback;
131 public event EventHandlerWithReturnType<object, EventArgs, bool> Pressed
135 if (_pressedEventHandler == null)
137 _pressedCallback = OnPressed;
138 PressedSignal().Connect(_pressedCallback);
141 _pressedEventHandler += value;
146 _pressedEventHandler -= value;
148 if (_pressedEventHandler == null && _pressedCallback != null)
150 this.PressedSignal().Disconnect(_pressedCallback);
155 private bool OnPressed(IntPtr data)
157 if (_pressedEventHandler != null)
159 return _pressedEventHandler(this, null);
166 private EventHandlerWithReturnType<object, EventArgs, bool> _releasedEventHandler;
167 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
168 private delegate bool ReleasedCallbackType(global::System.IntPtr data);
169 private ReleasedCallbackType _releasedCallback;
171 public event EventHandlerWithReturnType<object, EventArgs, bool> Released
175 if (_releasedEventHandler == null)
177 _releasedCallback = OnReleased;
178 ReleasedSignal().Connect(_releasedCallback);
180 _releasedEventHandler += value;
185 _releasedEventHandler -= value;
187 if (_releasedEventHandler == null && _releasedCallback != null)
189 ReleasedSignal().Disconnect(_releasedCallback);
195 private bool OnReleased(IntPtr data)
197 if (_releasedEventHandler != null)
199 return _releasedEventHandler(this, null);
205 private EventHandlerWithReturnType<object, EventArgs, bool> _stateChangedEventHandler;
206 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
207 private delegate bool StateChangedCallback(global::System.IntPtr data);
208 private StateChangedCallback _stateChangedCallback;
210 public event EventHandlerWithReturnType<object, EventArgs, bool> StateChanged
214 if (_stateChangedEventHandler == null)
216 _stateChangedCallback = OnStateChanged;
217 StateChangedSignal().Connect(_stateChangedCallback);
220 _stateChangedEventHandler += value;
225 _stateChangedEventHandler -= value;
227 if (_stateChangedEventHandler == null && _stateChangedCallback != null)
229 StateChangedSignal().Disconnect(_stateChangedCallback);
234 private bool OnStateChanged(IntPtr data)
236 if (_stateChangedEventHandler != null)
238 return _stateChangedEventHandler(this, null);
245 public static Button GetButtonFromPtr(global::System.IntPtr cPtr)
247 Button ret = new Button(cPtr, false);
248 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
253 /// Gets/Sets the unselected button foreground/icon visual
255 public Tizen.NUI.PropertyMap UnselectedVisual
259 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
260 GetProperty(Button.Property.UNSELECTED_VISUAL).Get(temp);
265 SetProperty(Button.Property.UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
270 /// Gets/Sets the selected button foreground/icon visual
272 public Tizen.NUI.PropertyMap SelectedVisual
276 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
277 GetProperty(Button.Property.SELECTED_VISUAL).Get(temp);
282 SetProperty(Button.Property.SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
287 /// Gets/Sets the disabled selected state foreground/icon button visual
289 public Tizen.NUI.PropertyMap DisabledSelectedVisual
293 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
294 GetProperty(Button.Property.DISABLED_SELECTED_VISUAL).Get(temp);
299 SetProperty(Button.Property.DISABLED_SELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
304 /// Gets/Sets the disabled unselected state foreground/icon visual
306 public Tizen.NUI.PropertyMap DisabledUnselectedVisual
310 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
311 GetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL).Get(temp);
316 SetProperty(Button.Property.DISABLED_UNSELECTED_VISUAL, new Tizen.NUI.PropertyValue(value));
321 /// Gets/Sets the disabled in the unselected state background, button visual
323 public Tizen.NUI.PropertyMap UnselectedBackgroundVisual
327 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
328 GetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL).Get(temp);
333 SetProperty(Button.Property.UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
338 /// Gets/Sets the selected background button visual
340 public Tizen.NUI.PropertyMap SelectedBackgroundVisual
344 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
345 GetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL).Get(temp);
350 SetProperty(Button.Property.SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
355 /// Gets/Sets the disabled while unselected background button visual
357 public Tizen.NUI.PropertyMap DisabledUnselectedBackgroundVisual
361 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
362 GetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL).Get(temp);
367 SetProperty(Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
372 /// Gets/Sets the disabled while selected background button visual
374 public Tizen.NUI.PropertyMap DisabledSelectedBackgroundVisual
378 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
379 GetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL).Get(temp);
384 SetProperty(Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL, new Tizen.NUI.PropertyValue(value));
389 /// Gets/Sets the position of the the label in relation to the foreground/icon if both present
391 public string LabelRelativeAlignment
396 GetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT).Get(out temp);
401 SetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
406 /// Gets/Sets the padding around the text
408 public Vector4 LabelPadding
412 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
413 GetProperty(Button.Property.LABEL_PADDING).Get(temp);
418 SetProperty(Button.Property.LABEL_PADDING, new Tizen.NUI.PropertyValue(value));
423 /// Gets/Sets the padding around the foreground visual
425 public Vector4 VisualPadding
429 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
430 GetProperty(Button.Property.VISUAL_PADDING).Get(temp);
435 SetProperty(Button.Property.VISUAL_PADDING, new Tizen.NUI.PropertyValue(value));
439 internal class Property : global::System.IDisposable
441 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
442 protected bool swigCMemOwn;
444 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
446 swigCMemOwn = cMemoryOwn;
447 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
450 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
452 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
460 public virtual void Dispose()
464 if (swigCPtr.Handle != global::System.IntPtr.Zero)
469 NDalicPINVOKE.delete_Button_Property(swigCPtr);
471 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
473 global::System.GC.SuppressFinalize(this);
477 internal static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
478 internal static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
479 internal static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
480 internal static readonly int DISABLED_UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_VISUAL_get();
481 internal static readonly int UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
482 internal static readonly int SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_BACKGROUND_VISUAL_get();
483 internal static readonly int DISABLED_UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
484 internal static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
485 internal static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
486 internal static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
487 internal static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
489 internal Property() : this(NDalicPINVOKE.new_Button_Property(), true)
491 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494 internal static readonly int DISABLED = NDalicPINVOKE.Button_Property_DISABLED_get();
495 internal static readonly int AUTO_REPEATING = NDalicPINVOKE.Button_Property_AUTO_REPEATING_get();
496 internal static readonly int INITIAL_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_INITIAL_AUTO_REPEATING_DELAY_get();
497 internal static readonly int NEXT_AUTO_REPEATING_DELAY = NDalicPINVOKE.Button_Property_NEXT_AUTO_REPEATING_DELAY_get();
498 internal static readonly int TOGGLABLE = NDalicPINVOKE.Button_Property_TOGGLABLE_get();
499 internal static readonly int SELECTED = NDalicPINVOKE.Button_Property_SELECTED_get();
500 internal static readonly int UNSELECTED_STATE_IMAGE = NDalicPINVOKE.Button_Property_UNSELECTED_STATE_IMAGE_get();
501 internal static readonly int SELECTED_STATE_IMAGE = NDalicPINVOKE.Button_Property_SELECTED_STATE_IMAGE_get();
502 internal static readonly int DISABLED_STATE_IMAGE = NDalicPINVOKE.Button_Property_DISABLED_STATE_IMAGE_get();
503 internal static readonly int UNSELECTED_COLOR = NDalicPINVOKE.Button_Property_UNSELECTED_COLOR_get();
504 internal static readonly int SELECTED_COLOR = NDalicPINVOKE.Button_Property_SELECTED_COLOR_get();
505 internal static readonly int LABEL = NDalicPINVOKE.Button_Property_LABEL_get();
506 internal static readonly int LABEL_TEXT = NDalicPINVOKE.Button_Property_LABEL_TEXT_get();
511 /// Creates an uninitialized Button.
512 /// Only derived versions can be instantiated.
514 public Button() : this(NDalicPINVOKE.new_Button__SWIG_0(), true)
516 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519 internal Button(Button button) : this(NDalicPINVOKE.new_Button__SWIG_1(Button.getCPtr(button)), true)
521 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524 internal Button Assign(Button button)
526 Button ret = new Button(NDalicPINVOKE.Button_Assign(swigCPtr, Button.getCPtr(button)), false);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
532 /// Downcasts a handle to Button handle.
533 /// If handle points to a Button, the downcast produces valid handle.
534 /// If not the returned handle is left uninitialized.
536 /// <param name="handle">Handle to an object</param>
537 /// <returns>A handle to a Button or an uninitialized handle</returns>
538 public new static Button DownCast(BaseHandle handle)
540 Button ret = new Button(NDalicPINVOKE.Button_DownCast(BaseHandle.getCPtr(handle)), true);
541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545 internal bool IsDisabled()
547 bool ret = NDalicPINVOKE.Button_IsDisabled(swigCPtr);
548 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
552 internal bool IsAutoRepeating()
554 bool ret = NDalicPINVOKE.Button_IsAutoRepeating(swigCPtr);
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
559 internal float GetInitialAutoRepeatingDelay()
561 float ret = NDalicPINVOKE.Button_GetInitialAutoRepeatingDelay(swigCPtr);
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
566 internal float GetNextAutoRepeatingDelay()
568 float ret = NDalicPINVOKE.Button_GetNextAutoRepeatingDelay(swigCPtr);
569 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573 internal bool IsTogglableButton()
575 bool ret = NDalicPINVOKE.Button_IsTogglableButton(swigCPtr);
576 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 internal bool IsSelected()
582 bool ret = NDalicPINVOKE.Button_IsSelected(swigCPtr);
583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
588 /// Retrieves button's animation time.
590 /// <returns></returns>
591 public float GetAnimationTime()
593 float ret = NDalicPINVOKE.Button_GetAnimationTime(swigCPtr);
594 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
598 internal string GetLabelText()
600 string ret = NDalicPINVOKE.Button_GetLabelText(swigCPtr);
601 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
605 internal void SetLabel(Actor label)
607 NDalicPINVOKE.Button_SetLabel(swigCPtr, Actor.getCPtr(label));
608 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
611 internal void SetButtonImage(Image image)
613 NDalicPINVOKE.Button_SetButtonImage(swigCPtr, Image.getCPtr(image));
614 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617 internal void SetSelectedImage(Image image)
619 NDalicPINVOKE.Button_SetSelectedImage(swigCPtr, Image.getCPtr(image));
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
623 internal Actor GetButtonImage()
625 Actor ret = new Actor(NDalicPINVOKE.Button_GetButtonImage(swigCPtr), true);
626 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
630 internal Actor GetSelectedImage()
632 Actor ret = new Actor(NDalicPINVOKE.Button_GetSelectedImage(swigCPtr), true);
633 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
637 internal ButtonSignal PressedSignal()
639 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_PressedSignal(swigCPtr), false);
640 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
644 internal ButtonSignal ReleasedSignal()
646 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ReleasedSignal(swigCPtr), false);
647 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
651 internal ButtonSignal ClickedSignal()
653 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_ClickedSignal(swigCPtr), false);
654 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
658 internal ButtonSignal StateChangedSignal()
660 ButtonSignal ret = new ButtonSignal(NDalicPINVOKE.Button_StateChangedSignal(swigCPtr), false);
661 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
665 internal enum PropertyRange
667 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
668 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
672 /// Gets/Sets the button as disabled.
679 GetProperty(Button.Property.DISABLED).Get(ref temp);
684 SetProperty(Button.Property.DISABLED, new Tizen.NUI.PropertyValue(value));
689 /// If the autorepeating property is set to true then the togglable property is set to false
691 public bool AutoRepeating
696 GetProperty(Button.Property.AUTO_REPEATING).Get(ref temp);
701 SetProperty(Button.Property.AUTO_REPEATING, new Tizen.NUI.PropertyValue(value));
706 /// By default this value is set to 0.15 seconds.
708 public float InitialAutoRepeatingDelay
713 GetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get(ref temp);
718 SetProperty(Button.Property.INITIAL_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
723 /// default this value is set to 0.05 seconds
725 public float NextAutoRepeatingDelay
730 GetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY).Get(ref temp);
735 SetProperty(Button.Property.NEXT_AUTO_REPEATING_DELAY, new Tizen.NUI.PropertyValue(value));
740 /// If the togglable property is set to true, then the autorepeating property is set to false.
742 public bool Togglable
747 GetProperty(Button.Property.TOGGLABLE).Get(ref temp);
752 SetProperty(Button.Property.TOGGLABLE, new Tizen.NUI.PropertyValue(value));
757 /// /Gets/Sets the togglable button as either selected or unselected, togglable property must be set to true.
764 GetProperty(Button.Property.SELECTED).Get(ref temp);
769 SetProperty(Button.Property.SELECTED, new Tizen.NUI.PropertyValue(value));
774 /// Gets/Sets the unselected button foreground image
776 public Tizen.NUI.PropertyMap UnselectedStateImage
780 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
781 GetProperty(Button.Property.UNSELECTED_STATE_IMAGE).Get(temp);
786 SetProperty(Button.Property.UNSELECTED_STATE_IMAGE, new Tizen.NUI.PropertyValue(value));
791 /// Gets/Sets the selected button foreground image
793 public Tizen.NUI.PropertyMap SelectedStateImage
797 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
798 GetProperty(Button.Property.SELECTED_STATE_IMAGE).Get(temp);
803 SetProperty(Button.Property.SELECTED_STATE_IMAGE, new Tizen.NUI.PropertyValue(value));
808 /// Gets/Sets the disabled whilst unselected foreground button visual
810 public Tizen.NUI.PropertyMap DisabledStateImage
814 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
815 GetProperty(Button.Property.DISABLED_STATE_IMAGE).Get(temp);
820 SetProperty(Button.Property.DISABLED_STATE_IMAGE, new Tizen.NUI.PropertyValue(value));
825 /// Gets/Sets unselected color
827 public Color UnselectedColor
831 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
832 GetProperty(Button.Property.UNSELECTED_COLOR).Get(temp);
837 SetProperty(Button.Property.UNSELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
842 /// Gets/Sets selected color
844 public Color SelectedColor
848 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
849 GetProperty(Button.Property.SELECTED_COLOR).Get(temp);
854 SetProperty(Button.Property.SELECTED_COLOR, new Tizen.NUI.PropertyValue(value));
861 public Tizen.NUI.PropertyMap Label
865 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
866 GetProperty(Button.Property.LABEL).Get(temp);
871 SetProperty(Button.Property.LABEL, new Tizen.NUI.PropertyValue(value));
876 /// Gets/Sets text of label
878 public string LabelText
883 GetProperty(Button.Property.LABEL_TEXT).Get(out temp);
888 SetProperty(Button.Property.LABEL_TEXT, new Tizen.NUI.PropertyValue(value));