coregraphics

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

auto-generated code, do not modify

auto-generated code, do not modify

Index

Constants

This section is empty.

Variables

Functions

func DisplayIsActive added in v0.15.6

func DisplayIsActive(displayID DirectDisplayID) bool

func DisplayIsAsleep added in v0.15.6

func DisplayIsAsleep(displayID DirectDisplayID) bool

func DisplayIsBuiltin added in v0.15.6

func DisplayIsBuiltin(displayID DirectDisplayID) bool

func DisplayIsMain added in v0.15.6

func DisplayIsMain(displayID DirectDisplayID) bool

func DisplayIsOnline added in v0.15.6

func DisplayIsOnline(displayID DirectDisplayID) bool

func DisplayPixelsHigh added in v0.15.6

func DisplayPixelsHigh(displayID DirectDisplayID) uint

func DisplayPixelsWide added in v0.15.6

func DisplayPixelsWide(displayID DirectDisplayID) uint

func GetActiveDisplayList added in v0.15.6

func GetActiveDisplayList(maxDisplays uint32) ([]DirectDisplayID, Error)

Provides a list of displays that are online (active, mirrored, or sleeping).

func GetDisplaysWithPoint added in v0.15.6

func GetDisplaysWithPoint(point Point, maxDisplays uint32) ([]DirectDisplayID, Error)

Provides a list of online displays with bounds that include the specified point.

func GetDisplaysWithRect added in v0.15.6

func GetDisplaysWithRect(rect Rect, maxDisplays uint32) ([]DirectDisplayID, Error)

func GetOnlineDisplayList added in v0.15.6

func GetOnlineDisplayList(maxDisplays uint32) ([]DirectDisplayID, Error)

Provides a list of displays that are online (active, mirrored, or sleeping).

Types

type AffineTransform added in v0.13.6

type AffineTransform struct {
	A  Float
	B  Float
	C  Float
	D  Float
	TX Float
	TY Float
}

type ColorRef

type ColorRef unsafe.Pointer

type ColorSpaceRef

type ColorSpaceRef unsafe.Pointer

type ContextRef

type ContextRef unsafe.Pointer

type DirectDisplayID added in v0.15.6

type DirectDisplayID uint32

A unique identifier for an attached display.

func MainDisplayID added in v0.15.6

func MainDisplayID() DirectDisplayID

Returns the display ID of the main display.

type Error added in v0.15.6

type Error int32
const ErrorCannotComplete Error = 1004
const ErrorFailure Error = 1000
const ErrorIllegalArgument Error = 1001
const ErrorInvalidConnection Error = 1002
const ErrorInvalidContext Error = 1003
const ErrorInvalidOperation Error = 1010
const ErrorNoneAvailable Error = 1011
const ErrorNotImplemented Error = 1006
const ErrorRangeCheck Error = 1007
const ErrorSuccess Error = 0
const ErrorTypeCheck Error = 1008

type EventRef

type EventRef unsafe.Pointer

type Float

type Float = float64

type FontIndex added in v0.13.6

type FontIndex uint16

type Glyph added in v0.13.6

type Glyph FontIndex

type ImageRef

type ImageRef unsafe.Pointer

func DisplayCreateImage added in v0.15.6

func DisplayCreateImage(displayID DirectDisplayID) ImageRef

Returns an image containing the contents of the specified display.

func DisplayCreateImageForRect added in v0.15.6

func DisplayCreateImageForRect(displayID DirectDisplayID, rect Rect) ImageRef

func WindowListCreateImage added in v0.15.6

func WindowListCreateImage(screenBounds Rect, listOption WindowListOption, windowID WindowID, imageOption WindowImageOption) ImageRef

func WindowListCreateImageFromArray added in v0.15.6

func WindowListCreateImageFromArray(screenBounds Rect, windowIDs []WindowID, imageOption WindowImageOption) ImageRef

type PathRef added in v0.15.6

type PathRef unsafe.Pointer

type Point

type Point struct {
	X Float
	Y Float
}

type Rect

type Rect struct {
	Origin Point
	Size   Size
}

func DisplayBounds added in v0.15.6

func DisplayBounds(displayID DirectDisplayID) Rect

type Size

type Size struct {
	Width  Float
	Height Float
}

func DisplayScreenSize added in v0.15.6

func DisplayScreenSize(displayID DirectDisplayID) Size

type WindowBackingType added in v0.15.6

type WindowBackingType uint32
const (
	BackingStoreRetained    WindowBackingType = 0
	BackingStoreNonretained WindowBackingType = 1
	BackingStoreBuffered    WindowBackingType = 2
)

type WindowID added in v0.15.6

type WindowID uint32
const NullWindowID WindowID = 0

func WindowListCreate added in v0.15.6

func WindowListCreate(option WindowListOption, relativeToWindow WindowID) []WindowID

type WindowImageOption added in v0.15.6

type WindowImageOption uint32
const (
	WindowImageDefault             WindowImageOption = 0
	WindowImageBoundsIgnoreFraming WindowImageOption = (1 << 0)
	WindowImageShouldBeOpaque      WindowImageOption = (1 << 1)
	WindowImageOnlyShadows         WindowImageOption = (1 << 2)
	WindowImageBestResolution      WindowImageOption = (1 << 3)
	WindowImageNominalResolution   WindowImageOption = (1 << 4)
)

type WindowListOption added in v0.15.6

type WindowListOption uint32
const (
	WindowListOptionAll                 WindowListOption = 0
	WindowListOptionOnScreenOnly        WindowListOption = (1 << 0)
	WindowListOptionOnScreenAboveWindow WindowListOption = (1 << 1)
	WindowListOptionOnScreenBelowWindow WindowListOption = (1 << 2)
	WindowListOptionIncludingWindow     WindowListOption = (1 << 3)
	WindowListExcludeDesktopElements    WindowListOption = (1 << 4)
)

type WindowSharingType added in v0.15.6

type WindowSharingType uint32
const (
	WindowSharingNone      WindowSharingType = 0
	WindowSharingReadOnly  WindowSharingType = 1
	WindowSharingReadWrite WindowSharingType = 2
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL