Exemplo n.º 1
0
// Window (https://wiki.libsdl.org/SDL_GetWindowWMInfo)
func (window *Window) GetWMInfo() (*SysWMInfo, error) {
	var info SysWMInfo
	if C.SDL_GetWindowWMInfo(window.cptr(), info.cptr()) == 0 {
		return nil, GetError()
	}
	return &info, nil
}
Exemplo n.º 2
0
func (window *Window) GetWMInfo(info *SysWMInfo) bool {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	_info := (*C.SDL_SysWMinfo)(unsafe.Pointer(info))
	return C.SDL_GetWindowWMInfo(_window, _info) == 1
}
Exemplo n.º 3
0
// Window (https://wiki.libsdl.org/SDL_GetWindowWMInfo)
func (window *Window) GetWMInfo(info *SysWMInfo) bool {
	return C.SDL_GetWindowWMInfo(window.cptr(), info.cptr()) == 1
}