endstone::Form
Represents a generic form.
template <typename T>
Types:
| Name | Description |
|---|---|
OnCloseCallback |
Functions:
| Name | Description |
|---|---|
Form | |
getOnClose | Gets the on close callback of the form. |
getTitle | Gets the title of the form. |
setOnClose | Sets the on close callback of the form. |
setTitle | Sets the title of the form. |
OnCloseCallback
using endstone::Form<T>::OnCloseCallback = std::function<void(Player *)>; Form
Form() = default getOnClose
OnCloseCallback getOnClose() constGets the on close callback of the form.
Returns:
The on close callback of the form.
getTitle
Message getTitle() constGets the title of the form.
Returns:
The title of the form.
setOnClose
T &setOnClose(OnCloseCallback on_close)Sets the on close callback of the form.
Parameters:
on_closeThe callback to be set.
Returns:
A reference to the current form.
setTitle
T &setTitle(Message title)Sets the title of the form.
Parameters:
titleThe title of the form to be set.
Returns:
A reference to the current form.
Last updated on