Пример #1
0
func (window *Window) GetGrab() bool {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return C.SDL_GetWindowGrab(_window) != 0
}
Пример #2
0
// Window (https://wiki.libsdl.org/SDL_GetWindowGrab)
func (window *Window) GetGrab() bool {
	return C.SDL_GetWindowGrab(window.cptr()) != 0
}
Пример #3
0
func (win *Window) GetGrab() bool {
	return C.SDL_GetWindowGrab(win.c) == C.SDL_TRUE
}
Пример #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
}