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

◆ track()

template<typename T >
Tend & MayaFlux::Portal::Forma::Tend< T >::track ( Scrollable &  panel,
Layer &  layer,
Kinesis::AABB2D  base_bounds,
std::function< void(Kinesis::AABB2D)>  reposition = {} 
)
inline

Register result's element for scroll reflow in panel.

Thin forwarder to Atelier::track<T>(). See its own doc for what the default (built when reposition is omitted) does and why it captures only independently-owned pieces of result, never a pointer back to Tend/result itself.

Precondition
place() has been called.
Parameters
panelScrollable to track into.
layerLayer both panel and result's element were registered on.
base_boundsresult's current on-screen NDC bounds.
repositionCalled with the scrolled bounds on every scroll. Defaulted when empty; see Atelier::track<T>().
Returns
*this.

Definition at line 288 of file Tend.hpp.

292 {})
293 {
294 internal::atelier().track(panel, layer, *result, base_bounds, std::move(reposition));
295 return *this;
296 }
void track(Scrollable &panel, Layer &layer, const Mapped< T > &mapped, Kinesis::AABB2D base_bounds, std::function< void(Kinesis::AABB2D)> reposition={})
Register mapped's element for scroll reflow in panel.
Definition Atelier.hpp:227
Atelier & atelier()
Accessor for the process-wide Atelier.
Definition Atelier.hpp:304
std::optional< Mapped< T > > result
Populated by place(). The real, fully wired element.
Definition Tend.hpp:232