MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / AsyncCancelButton

Class AsyncCancelButton

src/AsyncDialog.cpp:237–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 contentLayout->addChild(textField);
236
237 struct AsyncCancelButton : Button {
238 AsyncTextInput* dialog;
239 void onAction(const ActionEvent& e) override {
240 dialog->getParent()->requestDelete();
241 }
242 };
243 AsyncCancelButton* const cancelButton = new AsyncCancelButton;
244 cancelButton->box.size.x = buttonWidth;
245 cancelButton->text = "Cancel";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected