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

◆ attach()

void MayaFlux::Portal::Forma::Collapsible::attach ( Layer layer,
uint32_t  body_id 
) const

Relate a body element to this collapsible and sync its visibility to the current open state.

Parameters
layerLayer the body element lives on.
body_idElement id returned from layer.add(...).

Definition at line 117 of file Collapsible.cpp.

118{
119 layer.relate(header_id, body_id);
120 layer.set_visible(body_id, open->value);
121}
std::shared_ptr< MappedState< bool > > open
Open/closed state. Valid after place(). Write to toggle.
uint32_t header_id
Element id of the header strip. Valid after place().

References header_id, open, MayaFlux::Portal::Forma::Layer::relate(), and MayaFlux::Portal::Forma::Layer::set_visible().

Referenced by MayaFlux::Portal::Forma::Inspector::event_manager(), and MayaFlux::Portal::Forma::Inspector::scheduler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: