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

◆ sync_to()

void MayaFlux::Portal::Forma::LayoutCursor::sync_to ( LayoutCursor other)
inline

Reset both cursors to the lower of their two current Y values.

Used after a row spanning several columns so that independent column cursors resume from a common baseline.

Note
LayoutCursor copies share one MappedState. Calling sync_to on two cursors copied from one another is a no-op, since both already reference the same baseline.

Definition at line 67 of file LayoutCursor.hpp.

68 {
69 const float y = std::min(m_state->value, other.m_state->value);
70 m_state->write(y);
71 other.m_state->write(y);
72 }
std::shared_ptr< MappedState< float > > m_state

References m_state, and y().

+ Here is the call graph for this function: