Exemplo n.º 1
0
func (osx *osxSystemObject) GetWindowDims() (int, int, int, int) {
	globalLock.Lock()
	defer globalLock.Unlock()
	var x, y, dx, dy C.int
	C.GetWindowDims(unsafe.Pointer(osx.window), &x, &y, &dx, &dy)
	return int(x), int(y), int(dx), int(dy)
}
Exemplo n.º 2
0
func (osx *osxSystemObject) GetWindowDims() (int, int, int, int) {
	var x, y, dx, dy C.int
	C.GetWindowDims(unsafe.Pointer(osx.window), &x, &y, &dx, &dy)
	return int(x), int(y), int(dx), int(dy)
}