Example #1
0
func (window *Window) GetGrab() bool {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return C.SDL_GetWindowGrab(_window) != 0
}
Example #2
0
// Window (https://wiki.libsdl.org/SDL_GetWindowGrab)
func (window *Window) GetGrab() bool {
	return C.SDL_GetWindowGrab(window.cptr()) != 0
}
Example #3
0
func (win *Window) GetGrab() bool {
	return C.SDL_GetWindowGrab(win.c) == C.SDL_TRUE
}
Example #4
0
File: video.go Project: salihdb/sdl
// 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
}