Skip to main content

ApiButtonWidget

ApiButtonWidget is a subclass of ApiBaseWidget.

Methods

MethodReturnsDescription
DeletebooleanRemoves widget from parent field.
GetBackgroundColorApiColorGets widget background color.
GetBehaviorButtonBehaviorGets button widget behavior.
GetBorderColorApiColorGets widget border color.
GetBorderStyleWidgetBorderStyleGets widget border style.
GetBorderWidthWidgetBorderWidthGets widget border width.
GetClassType"buttonWidget"Returns a type of the ApiButtonWidget class.
GetIconXPospercentageGets button widget icon x position.
GetIconYPospercentageGets button widget icon y position.
GetLabelstringGets label from button widget field.
GetLayoutButtonLayoutGets button widget layout type
GetPositionPointGets widget position.
GetRectRectSets field rect.
GetScaleHowButtonScaleHowGets button widget scale when type
GetScaleWhenButtonScaleWhenGets button widget scale when type
GetTextColorApiColorGets widget text color.
GetTextSizeptGets widget text size. 💡 Text size === 0 means autofit
IsAutoFitbooleanChecks if text is autofit.
IsFitBoundsbooleanChecks if button widget is fit bounds.
SetAutoFitbooleanSets text autofit.
SetBackgroundColorbooleanSets widget background color.
SetBehaviorbooleanSets button widget behavior.
SetBorderColorbooleanSets widget border color.
SetBorderStylebooleanSets widget border style.
SetBorderWidthbooleanSets widget border width.
SetFitBoundsbooleanSets button widget fit bounds.
SetIconXPosbooleanSets button widget icon x position.
SetIconYPosbooleanSets button widget icon y position.
SetImagebooleanSets image to button widget field.
SetLabelbooleanSets label to button widget field.
SetLayoutbooleanSets button widget layout type
SetPositionbooleanSets widget position.
SetRectbooleanSets field rect.
SetScaleHowbooleanSets button widget scale how type
SetScaleWhenbooleanSets button widget scale when type
SetTextColorbooleanSets widget text color.
SetTextSizebooleanSets widget text size. 💡 Text size === 0 means autofit