func ScreenRect() (image.Rectangle, error) { displayID := C.CGMainDisplayID() width := int(C.CGDisplayPixelsWide(displayID)) height := int(C.CGDisplayPixelsHigh(displayID)) return image.Rect(0, 0, width, height), nil }
func GetDisplayHeight() int { return int(C.CGDisplayPixelsHigh(C.CGMainDisplayID())) }