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

Class AsyncDismissButton

src/AsyncDialog.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 setup(message);
49
50 struct AsyncDismissButton : Button {
51 AsyncDialog* dialog;
52 void onAction(const ActionEvent& e) override {
53 dialog->getParent()->requestDelete();
54 }
55 };
56 AsyncDismissButton* const dismissButton = new AsyncDismissButton;
57 dismissButton->box.size.x = buttonWidth;
58 dismissButton->text = "Dismiss";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected