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