mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-11 22:17:13 +03:00
C++ set_size and set_position
* C++ `set_size()` * C++ `set_position()`
This commit is contained in:
parent
e91d6d70bf
commit
661ab75dec
@ -207,6 +207,16 @@ namespace webui {
|
||||
webui_set_hide(webui_window, status);
|
||||
}
|
||||
|
||||
// Set window size
|
||||
void set_size(unsigned int width, unsigned int height) const {
|
||||
webui_set_size(webui_window, width, height);
|
||||
}
|
||||
|
||||
// Set window position
|
||||
void set_position(unsigned int x, unsigned int y) const {
|
||||
webui_set_position(webui_window, x, y);
|
||||
}
|
||||
|
||||
// -- JavaScript ----------------------
|
||||
|
||||
// Quickly run a JavaScript (no response waiting).
|
||||
|
Loading…
Reference in New Issue
Block a user