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

◆ place() [1/2]

Collapsible & MayaFlux::Portal::Forma::Collapsible::place ( std::shared_ptr< Buffers::FormaBuffer buf,
Surface surface,
LayoutCursor cursor,
float  row_h 
)

Register the header element using the cursor's column extents.

Equivalent to the explicit-extent overload with x_min and x_max taken from cursor. Use with a column-scoped LayoutCursor so the header spans exactly the column the cursor advances within.

Parameters
bufPre-created FormaBuffer sized for this header.
surfaceSurface to register the header on.
cursorLayout cursor. Supplies column extents and is advanced by row_h on return.
row_hHeader strip height in NDC units.
Returns
*this, with results populated.

Definition at line 122 of file Collapsible.cpp.

127{
128 return place(std::move(in_buf), surface, cursor,
129 cursor.x_min(), cursor.x_max(), row_h);
130}
MAYAFLUX_API Collapsible & place(std::shared_ptr< Buffers::FormaBuffer > buf, Surface &surface, LayoutCursor &cursor, float x_min, float x_max, float row_h)
Register the header element and wire the toggle callback.

References place(), MayaFlux::Portal::Forma::LayoutCursor::x_max(), and MayaFlux::Portal::Forma::LayoutCursor::x_min().

+ Here is the call graph for this function: