MCPcopy Create free account
hub / github.com/VCVRack/Rack / onButton

Method onButton

src/app/SvgButton.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21void SvgButton::onButton(const ButtonEvent& e) {
22 OpaqueWidget::onButton(e);
23
24 // Dispatch ActionEvent on left click
25 if (e.action == GLFW_PRESS && e.button == GLFW_MOUSE_BUTTON_LEFT) {
26 ActionEvent eAction;
27 onAction(eAction);
28 }
29}
30
31
32void SvgButton::addFrame(std::shared_ptr<window::Svg> svg) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected