Beispiel #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
}
Beispiel #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
}
Beispiel #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
}