|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| Collapsible & MayaFlux::Portal::Forma::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.
Advances cursor by row_h. Populates header_id, open, buf, and cursor_out on this struct.
| buf | Pre-created FormaBuffer sized for this header. |
| surface | Surface to register the header on. |
| cursor | Layout cursor. Advanced by row_h on return. |
| x_min | Left edge in NDC. |
| x_max | Right edge in NDC. |
| row_h | Header strip height in NDC units. |
Definition at line 73 of file Collapsible.cpp.
References MayaFlux::Portal::Forma::Layer::add(), MayaFlux::Portal::Forma::LayoutCursor::advance(), MayaFlux::Portal::Forma::Element::bounds_hint, buf, MayaFlux::Portal::Forma::Element::buffer, MayaFlux::Portal::Forma::Surface::ctx(), cursor_out, MayaFlux::Portal::Forma::Mapped< T >::element, MayaFlux::Portal::Forma::Mapped< T >::geometry_fn, header_id, MayaFlux::Portal::Forma::Element::id, MayaFlux::Portal::Forma::Surface::layer(), MayaFlux::IO::Left, m_color_closed, m_color_open, m_initially_open, m_label, MayaFlux::Kinesis::AABB2D::min, MayaFlux::Portal::Forma::Context::on_press(), open, MayaFlux::Portal::Forma::Layer::related_ids(), MayaFlux::Portal::Forma::Layer::set_visible(), MayaFlux::Portal::Forma::Mapped< T >::state, MayaFlux::Portal::Forma::Mapped< T >::sync(), and MayaFlux::Portal::Forma::LayoutCursor::y().
Referenced by MayaFlux::Portal::Forma::make_collapsible(), and MayaFlux::Portal::Forma::make_value_group().
Here is the call graph for this function:
Here is the caller graph for this function: