| 87 | } |
| 88 | |
| 89 | void ApplicationWindow::showMaximized() { |
| 90 | static constexpr float kUnmaximizedWidthPercent = 85.0f; |
| 91 | |
| 92 | removeFromWindow(); |
| 93 | window_ = createWindow({}, {}, Dimension::widthPercent(kUnmaximizedWidthPercent), |
| 94 | Dimension::heightPercent(kUnmaximizedWidthPercent), decoration_); |
| 95 | showWindow(true); |
| 96 | } |
| 97 | |
| 98 | void ApplicationWindow::hide() { |
| 99 | if (window_ && onCloseRequested().callback()) |
no test coverage detected