コード例 #1
0
ファイル: cgo_windows.go プロジェクト: MobRulesGames/glop
func (win32 *win32SystemObject) GetWindowDims() (int, int, int, int) {
	var x, y, dx, dy C.int
	C.GlopGetWindowDims(unsafe.Pointer(win32.window), &x, &y, &dx, &dy)
	return int(x), int(y), int(dx), int(dy)
}
コード例 #2
0
ファイル: cgo_linux.go プロジェクト: jctaylor1/haunts
func (linux *linuxSystemObject) GetWindowDims() (int, int, int, int) {
	var x, y, dx, dy C.int
	C.GlopGetWindowDims(&x, &y, &dx, &dy)
	return int(x), int(y), int(dx), int(dy)
}