Skip to content

BorderLabel

#include <Style.hpp>

Represents a label that can be displayed on a border edge of a widget.

Border labels are optional text elements that can be placed on the top or bottom. They can be aligned to any position (start, center, end) and can have their own text decoration and color.

ReturnNameDescription
std::stringtextThe text to display on the border.
AlignalignAlignment (start, center, end) of the label on the border
TextDecorationtextDecoration
ColorcolorOptional text decoration for the label (bold, underline, etc.)

std::string text

The text to display on the border.


Align align = Align::Center

Alignment (start, center, end) of the label on the border


TextDecoration textDecoration

Color color

Optional text decoration for the label (bold, underline, etc.)