Table of Contents

Class Display

Namespace
CarinaStudio.MacOS.CoreGraphics
Assembly
CarinaStudio.AppBase.MacOS.dll

Provide functions for displays.

public static class Display
Inheritance
Display
Inherited Members

Fields

Invalid

Invalid ID of display.

public const uint Invalid = 0

Field Value

uint

Methods

GetActiveDisplays()

Get all ID of active displays.

public static uint[] GetActiveDisplays()

Returns

uint[]

ID of displays.

GetDisplayBounds(uint)

Get bounds of given display.

public static CGRect GetDisplayBounds(uint display)

Parameters

display uint

ID of display.

Returns

CGRect

Bounds of display.

GetDisplayFromPoint(CGPoint)

Get ID of display which contains the given point.

public static uint GetDisplayFromPoint(CGPoint point)

Parameters

point CGPoint

Point.

Returns

uint

ID of display.

GetDisplayFromRect(CGRect)

Get ID of display which contains the given rectangle.

public static uint GetDisplayFromRect(CGRect rect)

Parameters

rect CGRect

Rectangle.

Returns

uint

ID of display.

GetDisplaysFromPoint(CGPoint)

Get list of ID of displays which contain the given point.

public static uint[] GetDisplaysFromPoint(CGPoint point)

Parameters

point CGPoint

Point.

Returns

uint[]

List of ID of displays.

GetDisplaysFromRect(CGRect)

Get list of ID of displays which contain the given rectangle.

public static uint[] GetDisplaysFromRect(CGRect rect)

Parameters

rect CGRect

Rectangle.

Returns

uint[]

List of ID of displays.

GetMainDisplay()

Get ID of main display.

public static uint GetMainDisplay()

Returns

uint

ID of main display.

GetOnlineDisplays()

Get all ID of online displays.

public static uint[] GetOnlineDisplays()

Returns

uint[]

ID of displays.