Button
()Кнопка, CreateButton()
, GetLastButton()
Также имеет аналогичные методы:
GetHeight()
GetText()
GetVisibility()
GetWidth()
SetFontFile()
SetHtml()
SetMargins()
SetOnTouch()
SetPadding()
SetPosition()
SetSize()
SetText()
SetTextColor()
SetTextShadow()
SetTextSize()
SetVisibility()
Button.
SetStyle
(color1, color2, radius, borderColor, borderSize, shadow)Устанавливает стиль для объекта
// устанавливает цвет фона
btn.SetStyle('black');
// устанавливает градиентную заливку фона
btn.SetStyle('black', 'red')
// с закрушленными углами
btn.SetStyle('#4285f3', '#4285f4', 4)
Button.Button.
GetAbsHeight
()Button.Button.
GetAbsWidth
()Button.Button.
GetTextSize
(mode)Button.Button.
GetType
()Button.Button.
SetScale
(x, y)