| 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"; |
nothing calls this directly
no outgoing calls
no test coverage detected