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

Class CloseButton

src/app/TipWindow.cpp:152–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 buttonLayout->addChild(nextButton);
151
152 struct CloseButton : ui::Button {
153 TipWindow* tipWindow;
154 void onAction(const ActionEvent& e) override {
155 tipWindow->getParent()->requestDelete();
156 }
157 };
158 CloseButton* closeButton = new CloseButton;
159 closeButton->box.size.x = buttonWidth;
160 closeButton->text = "✖ " + string::translate("TipWindow.close");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected