« UI\Controls\Check::setText
UI\Controls\Button::__construct »
PHP Manual
UI
Элемент управления "Кнопка"
Элемент управления "Кнопка"
(UI 0.9.9)
Введение
Представляет собой помеченную кликабельную кнопку
Обзор класса
class
UI\Controls\Button
extends
UI\Control
{
/* Конструктор */
public
__construct
(
string
$text
)
/* Методы */
public
getText
():
string
protected
onClick
()
public
setText
(
string
$text
)
/* Наследуемые методы */
public
UI\Control::destroy
()
public
UI\Control::disable
()
public
UI\Control::enable
()
public
UI\Control::getParent
():
UI\Control
public
UI\Control::getTopLevel
():
int
public
UI\Control::hide
()
public
UI\Control::isEnabled
():
bool
public
UI\Control::isVisible
():
bool
public
UI\Control::setParent
(
UI\Control
$parent
)
public
UI\Control::show
()
}
Содержание
UI\Controls\Button::__construct
— Создать новый объект Button
UI\Controls\Button::getText
— Получить текст
UI\Controls\Button::onClick
— Обработчик клика
UI\Controls\Button::setText
— Установить текст