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

◆ set_bounds()

bool MayaFlux::Portal::Forma::Layer::set_bounds ( uint32_t  id,
Kinesis::AABB2D  bounds 
)

Replace the bounds_hint on an existing element.

Returns
True if found.

Definition at line 36 of file Layer.cpp.

37{
38 if (auto* el = get(id)) {
39 el->bounds_hint = bounds;
40 return true;
41 }
42 return false;
43}
const Element * get(uint32_t id) const
Definition Layer.cpp:195

References get().

+ Here is the call graph for this function: