Beispiel #1
0
func (window *Window) GetGrab() bool {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return C.SDL_GetWindowGrab(_window) != 0
}
Beispiel #2
0
// Window (https://wiki.libsdl.org/SDL_GetWindowGrab)
func (window *Window) GetGrab() bool {
	return C.SDL_GetWindowGrab(window.cptr()) != 0
}
Beispiel #3
0
func (win *Window) GetGrab() bool {
	return C.SDL_GetWindowGrab(win.c) == C.SDL_TRUE
}
Beispiel #4
0
// IsInputGrabbed returns true if input is grabbed by the window.
func (win *Window) IsInputGrabbed() bool {
	if C.SDL_GetWindowGrab(win.cWin) == C.SDL_TRUE {
		return true
	}
	return false
}