MayaFlux 1.0.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 103 of file LayoutCursor.hpp.

104 {
105 const float y = std::min(m_state->value, other.m_state->value);
106 m_state->write(y);
107 other.m_state->write(y);
108 }
std::shared_ptr< MappedState< float > > m_state

References m_state, and y().

+ Here is the call graph for this function: