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() const
Gets the on close callback of the form.
Returns:
The on close callback of the form.
getTitle
Message getTitle() const
Gets 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_close
The callback to be set.
Returns:
A reference to the current form.
setTitle
T &setTitle(Message title)
Sets the title of the form.
Parameters:
title
The title of the form to be set.
Returns:
A reference to the current form.
Last updated on