ApiButtonWidget
ApiButtonWidget is a subclass of ApiBaseWidget.
Methods
| Method | Returns | Description |
|---|---|---|
| Delete | boolean | Removes widget from parent field. |
| GetBackgroundColor | ApiColor | Gets widget background color. |
| GetBehavior | ButtonBehavior | Gets button widget behavior. |
| GetBorderColor | ApiColor | Gets widget border color. |
| GetBorderStyle | WidgetBorderStyle | Gets widget border style. |
| GetBorderWidth | WidgetBorderWidth | Gets widget border width. |
| GetClassType | "buttonWidget" | Returns a type of the ApiButtonWidget class. |
| GetIconXPos | percentage | Gets button widget icon x position. |
| GetIconYPos | percentage | Gets button widget icon y position. |
| GetLabel | string | Gets label from button widget field. |
| GetLayout | ButtonLayout | Gets button widget layout type |
| GetPosition | Point | Gets widget position. |
| GetRect | Rect | Sets field rect. |
| GetScaleHow | ButtonScaleHow | Gets button widget scale when type |
| GetScaleWhen | ButtonScaleWhen | Gets button widget scale when type |
| GetTextColor | ApiColor | Gets widget text color. |
| GetTextSize | pt | Gets widget text size. 💡 Text size === 0 means autofit |
| IsAutoFit | boolean | Checks if text is autofit. |
| IsFitBounds | boolean | Checks if button widget is fit bounds. |
| SetAutoFit | boolean | Sets text autofit. |
| SetBackgroundColor | boolean | Sets widget background color. |
| SetBehavior | boolean | Sets button widget behavior. |
| SetBorderColor | boolean | Sets widget border color. |
| SetBorderStyle | boolean | Sets widget border style. |
| SetBorderWidth | boolean | Sets widget border width. |
| SetFitBounds | boolean | Sets button widget fit bounds. |
| SetIconXPos | boolean | Sets button widget icon x position. |
| SetIconYPos | boolean | Sets button widget icon y position. |
| SetImage | boolean | Sets image to button widget field. |
| SetLabel | boolean | Sets label to button widget field. |
| SetLayout | boolean | Sets button widget layout type |
| SetPosition | boolean | Sets widget position. |
| SetRect | boolean | Sets field rect. |
| SetScaleHow | boolean | Sets button widget scale how type |
| SetScaleWhen | boolean | Sets button widget scale when type |
| SetTextColor | boolean | Sets widget text color. |
| SetTextSize | boolean | Sets widget text size. 💡 Text size === 0 means autofit |