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

◆ set_active()

void MayaFlux::Nodes::Network::RelationSlot::set_active ( bool  is_active)
inline

Set this slot's activity, firing on_enter/on_leave on a real transition.

Definition at line 69 of file RelationSlot.hpp.

70 {
71 if (active == is_active) {
72 return;
73 }
74 active = is_active;
75 for (const auto& callback : is_active ? on_enter : on_leave) {
76 if (callback) {
77 callback();
78 }
79 }
80 }
PickCallback callback
Definition Picker.cpp:22
std::vector< std::function< void()> > on_leave
std::vector< std::function< void()> > on_enter

References active, callback, on_enter, and on_leave.