示例#1
0
func (window *Window) SetMinimumSize(min_w int, min_h int) {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	_min_w := (C.int)(min_w)
	_min_h := (C.int)(min_h)
	C.SDL_SetWindowMinimumSize(_window, _min_w, _min_h)
}
示例#2
0
文件: video.go 项目: flazz/go-sdl2
// Window (https://wiki.libsdl.org/SDL_SetWindowMinimumSize)
func (window *Window) SetMinimumSize(minW int, minH int) {
	C.SDL_SetWindowMinimumSize(window.cptr(), C.int(minW), C.int(minH))
}