Skip to content

Commit f25b022

Browse files
authored
Merge pull request #695 from konakona418-forked/add-cxx-maximize-binding
Add C++ binding for `webui_maximize` and `webui_minimize`
2 parents 62bed20 + 6ad5b31 commit f25b022

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/webui.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,16 @@ namespace webui {
271271
webui_set_high_contrast(webui_window, status);
272272
}
273273

274+
// Maximize the window
275+
void maximize() {
276+
webui_maximize(webui_window);
277+
}
278+
279+
// Minimize the window
280+
void minimize() {
281+
webui_minimize(webui_window);
282+
}
283+
274284
// Close a specific window only. The window object will still exist.
275285
void close() const {
276286
webui_close(webui_window);

0 commit comments

Comments
 (0)