Skip to Content
⚠ Under Construction
ReferenceC++ APIForm

endstone::Form

Represents a generic form.

template <typename T>

Types:

NameDescription
OnCloseCallback

Functions:

NameDescription
Form
getOnCloseGets the on close callback of the form.
getTitleGets the title of the form.
setOnCloseSets the on close callback of the form.
setTitleSets 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