示例#1
0
func (window *Window) GetGrab() bool {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return C.SDL_GetWindowGrab(_window) != 0
}
示例#2
0
文件: video.go 项目: flazz/go-sdl2
// Window (https://wiki.libsdl.org/SDL_GetWindowGrab)
func (window *Window) GetGrab() bool {
	return C.SDL_GetWindowGrab(window.cptr()) != 0
}
示例#3
0
文件: video.go 项目: DeedleFake/sdl
func (win *Window) GetGrab() bool {
	return C.SDL_GetWindowGrab(win.c) == C.SDL_TRUE
}
示例#4
0
文件: video.go 项目: 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
}