MCPcopy Create free account
hub / github.com/DISTRHO/DPF / setActive

Function setActive

dgl/src/EventHandlers.cpp:142–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 void setActive(const bool active2, const bool sendCallback) noexcept
143 {
144 const bool active = state & kButtonStateActive;
145 if (active == active2)
146 return;
147
148 state |= kButtonStateActive;
149 widget->repaint();
150
151 if (sendCallback)
152 {
153 if (internalCallback != nullptr)
154 internalCallback->buttonClicked(widget, -1);
155 else if (userCallback != nullptr)
156 userCallback->buttonClicked(widget, -1);
157 }
158 }
159
160 void setChecked(const bool checked2, const bool sendCallback) noexcept
161 {

Callers

nothing calls this directly

Calls 1

repaintMethod · 0.45

Tested by

no test coverage detected