MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ label()

Collapsible & MayaFlux::Portal::Forma::Collapsible::label ( std::string  text)
inline

Draw a text label over the header, background included.

When set, place() draws text with the current open/closed color as Portal::Text::PressParams::background, and every toggle draws it again with the new color - background and label are one slice, so they can never drift out of sync the way two independent draws could. When empty (default), the header stays a plain color-only quad with no text machinery at all.

buf passed to place() still needs the "text" additional_textures slot when a label is set, same as Element::with_text.

Definition at line 117 of file Collapsible.hpp.

118 {
119 m_label_text = std::move(text);
120 return *this;
121 }
std::string m_label_text
Text label drawn over the header. Empty = color only.

References m_label_text.

Referenced by MayaFlux::Portal::Forma::make_collapsible(), and MayaFlux::Portal::Forma::make_entry_group().

+ Here is the caller graph for this function: