mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gg: add window_size() function (#8409)
This commit is contained in:
@@ -660,6 +660,11 @@ pub fn screen_size() Size {
|
|||||||
return Size{}
|
return Size{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// window_size returns the `Size` of the active window
|
||||||
|
pub fn window_size() Size {
|
||||||
|
return Size{sapp.width(), sapp.height()}
|
||||||
|
}
|
||||||
|
|
||||||
fn C.WaitMessage()
|
fn C.WaitMessage()
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user