Add SetWindowState/ClearWindowState

This commit is contained in:
Milan Nikolic 2021-05-25 15:04:49 +02:00
parent b027cb19bd
commit e4af280033
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
2 changed files with 39 additions and 13 deletions

View file

@ -135,6 +135,18 @@ func SetWindowSize(w, h int) {
C.SetWindowSize(cw, ch)
}
// SetWindowState - Set window configuration state using flags
func SetWindowState(flags byte) {
cflags := (C.uint)(flags)
C.SetWindowState(cflags)
}
// ClearWindowState - Clear window configuration state flags
func ClearWindowState(flags byte) {
cflags := (C.uint)(flags)
C.ClearWindowState(cflags)
}
// GetScreenWidth - Get current screen width
func GetScreenWidth() int {
ret := C.GetScreenWidth()