示例#1
0
func (window *Window) GetFlags() uint32 {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return (uint32)(C.SDL_GetWindowFlags(_window))
}
示例#2
0
文件: video.go 项目: DeedleFake/sdl
func (win *Window) GetFlags() WindowFlags {
	return WindowFlags(C.SDL_GetWindowFlags(win.c))
}
示例#3
0
func Isfocussed() bool {
	return C.SDL_GetWindowFlags(win)&C.SDL_WINDOW_INPUT_FOCUS != 0
}
示例#4
0
文件: video.go 项目: flazz/go-sdl2
// Window (https://wiki.libsdl.org/SDL_GetWindowFlags)
func (window *Window) GetFlags() uint32 {
	return (uint32)(C.SDL_GetWindowFlags(window.cptr()))
}
示例#5
0
文件: video.go 项目: salihdb/sdl
// GetFlags returns the window flags.
func (win *Window) GetFlags() (flags WindowFlag) {
	return WindowFlag(C.SDL_GetWindowFlags(win.cWin))
}