Ejemplo n.º 1
0
func (window *Window) GetMinimumSize(w *int, h *int) {
	var _w, _h C.int
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	C.SDL_GetWindowMinimumSize(_window, &_w, &_h)
	*w = int(_w)
	*h = int(_h)
}
Ejemplo n.º 2
0
func (w *Window) GetMinimumSize() (int, int) {
	cw := C.int(0)
	ch := C.int(0)
	C.SDL_GetWindowMinimumSize(w.cWindow, &cw, &ch)
	return int(cw), int(ch)
}
Ejemplo n.º 3
0
func (window *Window) GetMinimumSize() (w, h int) {
	var _w, _h C.int
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	C.SDL_GetWindowMinimumSize(_window, &_w, &_h)
	return int(_w), int(_h)
}
Ejemplo n.º 4
0
// Window (https://wiki.libsdl.org/SDL_GetWindowMinimumSize)
func (window *Window) GetMinimumSize() (w, h int) {
	var _w, _h C.int
	C.SDL_GetWindowMinimumSize(window.cptr(), &_w, &_h)
	return int(_w), int(_h)
}