Skip to content

Class endstone::Label

ClassList > endstone > Label

Represents a text label.

  • #include <endstone/form/controls/label.h>

Public Functions

Type Name
Label () = default
Label (Message text)
Message getText () const
Gets the text of the label.
Label & setText (Message text)
Sets the text of the label.

Public Functions Documentation

function Label [½]

endstone::Label::Label () = default

function Label [2/2]

inline explicit endstone::Label::Label (
    Message text
) 

function getText

Gets the text of the label.

inline Message endstone::Label::getText () const

Returns:

The text of the label.


function setText

Sets the text of the label.

inline Label & endstone::Label::setText (
    Message text
) 

Parameters:

  • text The new text for the label.

Returns:

A reference to the current label.



The documentation for this class was generated from the following file include/endstone/form/controls/label.h