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

◆ make_collapsible()

MAYAFLUX_API Collapsible MayaFlux::Portal::Forma::make_collapsible ( FormaTarget  buf,
Surface &  surface,
LayoutCursor &  cursor,
float  x_min,
float  x_max,
float  row_h,
bool  initially_open = true,
glm::vec3  color_closed = glm::vec3(0.25F),
glm::vec3  color_open = glm::vec3(0.35F),
std::string  label = {} 
)

Construct a collapsible header strip.

Thin wrapper delegating to Collapsible::place(). Preserved as an escape hatch; existing callsites require no changes. The bridge parameter is accepted but ignored - Forma::bridge() is called internally.

Definition at line 166 of file Collapsible.cpp.

177{
178 return Collapsible {}
179 .initially_open(initially_open)
180 .closed_color(color_closed)
181 .open_color(color_open)
182 .label(std::move(label))
183 .place(std::move(buf), surface, cursor, x_min, x_max, row_h);
184}
uint32_t label
Definition Contours.cpp:16
MAYAFLUX_API Collapsible & place(FormaTarget buf, Surface &surface, LayoutCursor &cursor, float x_min, float x_max, float row_h)
Register the header element and wire the toggle callback.
Collapsible & closed_color(glm::vec3 c)
Collapsible & open_color(glm::vec3 c)
Collapsible & label(std::string text)
Draw a text label over the header, background included.
Collapsible & initially_open(bool v)
A collapsible header strip.

References MayaFlux::Portal::Forma::Collapsible::closed_color(), MayaFlux::Portal::Forma::Collapsible::initially_open(), label, MayaFlux::Portal::Forma::Collapsible::label(), MayaFlux::Portal::Forma::Collapsible::open_color(), and MayaFlux::Portal::Forma::Collapsible::place().

+ Here is the call graph for this function: