-
- /// <summary>
- /// Downcasts a handle to pushButton handle.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use as keyword.
- [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public new static PushButton DownCast(BaseHandle handle)
- {
- PushButton ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as PushButton;
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// UnselectedIcon.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use UnselectedVisual.
- [Obsolete("Please do not use! This will be deprecated! Please use UnselectedVisual instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string UnselectedIcon
- {
- set
- {
- SetProperty(PushButton.Property.UNSELECTED_ICON, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
- /// SelectedIcon.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use SelectedVisual.
- [Obsolete("Please do not use! This will be deprecated! Please use SelectedVisual instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string SelectedIcon
- {
- set
- {
- SetProperty(PushButton.Property.SELECTED_ICON, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use LabelRelativeAlignment instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public IconAlignmentType IconAlignment
- {
- get
- {
- string temp;
- if (GetProperty(PushButton.Property.ICON_ALIGNMENT).Get(out temp) == false)
- {
- NUILog.Error("IconAlignment get error!");
- }
- switch (temp)
- {
- case "LEFT":
- return IconAlignmentType.Left;
- case "RIGHT":
- return IconAlignmentType.Right;
- case "TOP":
- return IconAlignmentType.Top;
- case "BOTTOM":
- return IconAlignmentType.Bottom;
- default:
- return IconAlignmentType.Default;
- }
- }
- set
- {
- string valueToString = "";
- switch (value)
- {
- case IconAlignmentType.Left:
- {
- valueToString = "LEFT";
- break;
- }
- case IconAlignmentType.Right:
- {
- valueToString = "RIGHT";
- break;
- }
- case IconAlignmentType.Top:
- {
- valueToString = "TOP";
- break;
- }
- case IconAlignmentType.Bottom:
- {
- valueToString = "BOTTOM";
- break;
- }
- default:
- {
- valueToString = "DEFAULT";
- break;
- }
- }
- SetProperty(PushButton.Property.ICON_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
- }
- }
-
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// no use
- [Obsolete("Please do not use! This will be deprecated! Please use Button.LabelPadding instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public new Vector4 LabelPadding
- {
- get
- {
- Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
- GetProperty(PushButton.Property.LABEL_PADDING).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(PushButton.Property.LABEL_PADDING, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// no use
- [Obsolete("Please do not use! This will be deprecated! Please use ForegroundVisualPadding instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Vector4 IconPadding
- {
- get
- {
- Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
- GetProperty(PushButton.Property.ICON_PADDING).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(PushButton.Property.ICON_PADDING, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// no use
- [Obsolete("Please do not use! This will be deprecated! Please use Button.Align instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum IconAlignmentType
- {
- /// <summary>
- /// The icon located to the left of text.
- /// </summary>
- Left,
- /// <summary>
- /// The icon located to the right of text.
- /// </summary>
- Right,
- /// <summary>
- /// The icon located to the top of text.
- /// </summary>
- Top,
- /// <summary>
- /// The icon located to the bottom of text.
- /// </summary>
- Bottom,
- /// <summary>
- /// The icon located to the right of text by default.
- /// </summary>
- Default = Right
- }
-