|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::TextField::reposition | ( | Kinesis::AABB2D | new_bounds | ) |
Move the field to a new NDC region, keeping its content.
The visual half of a scroll reflow - lays the text out again and resubmits it with the caret together at the new region (see the class doc's note on why both are always resubmitted together), nothing else. Wire directly as a Scrollable::track() reposition callback (see the class doc example); Scrollable's own reflow() already pushes the matching bounds_hint to the Layer, so hit-testing stays correct without this needing a Layer of its own.
| new_bounds | Shifted NDC region. |
Definition at line 277 of file TextField.cpp.
References field_bounds, m_live_bounds, params, slice, and state.