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

Function setEnabled

dgl/src/EventHandlers.cpp:177–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 }
176
177 void setEnabled(const bool enabled2, const bool appliesToEventInput) noexcept
178 {
179 if (appliesToEventInput)
180 enabledInput = enabled2;
181
182 if (enabled == enabled2)
183 return;
184
185 // reset temp vars if disabling
186 if (! enabled2)
187 {
188 button = -1;
189 state = kButtonStateDefault;
190 lastClickPos = Point<double>();
191 lastMotionPos = Point<double>();
192 }
193
194 enabled = enabled2;
195 widget->repaint();
196 }
197
198 DISTRHO_DECLARE_NON_COPYABLE(PrivateData)
199};

Callers

nothing calls this directly

Calls 1

repaintMethod · 0.45

Tested by

no test coverage detected