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

◆ advance()

Kinesis::AABB2D MayaFlux::Portal::Forma::LayoutCursor::advance ( float  height)
inline

Advance the cursor downward by height and return the NDC AABB occupied by the primitive just placed, scoped to the cursor's column extents.

Definition at line 115 of file LayoutCursor.hpp.

116 {
117 const float top = m_state->value;
118 const float bot = top - height;
119 m_state->write(bot);
120
121 Kinesis::AABB2D bounds { .min = { m_x_min, bot }, .max = { m_x_max, top } };
122 if (m_scroll_offset)
123 bounds = bounds.translated(m_scroll_offset->value);
124 return bounds;
125 }
uint32_t height
std::shared_ptr< MappedState< glm::vec2 > > m_scroll_offset
std::shared_ptr< MappedState< float > > m_state

References height, m_scroll_offset, m_state, m_x_max, m_x_min, and MayaFlux::Kinesis::AABB2D::min.

Referenced by MayaFlux::Portal::Forma::make_entry(), MayaFlux::Portal::Forma::Collapsible::place(), MayaFlux::Portal::Forma::ColorPicker::place(), and MayaFlux::Portal::Forma::Dropdown::place().

+ Here is the caller graph for this function: