pub struct CGDisplay {
    pub id: CGDirectDisplayID,
}

Fields

id: CGDirectDisplayID

Implementations

Returns the the main display.

Returns the bounds of a display in the global display coordinate space.

Returns information about a display’s current configuration.

Begins a new set of display configuration changes.

Cancels a set of display configuration changes.

Completes a set of display configuration changes.

Configures the display mode of a display.

Returns an image containing the contents of the specified display.

Returns a composite image based on a dynamically generated list of windows.

Returns a composite image of the specified windows.

Generates and returns information about the selected windows in the current user session.

Returns a Boolean value indicating whether a display is active.

Returns a boolean indicating whether a display is always in a mirroring set.

Returns a boolean indicating whether a display is sleeping (and is therefore not drawable.)

Returns a boolean indicating whether a display is built-in, such as the internal display in portable systems.

Returns a boolean indicating whether a display is in a hardware mirroring set.

Returns a boolean indicating whether a display is in a mirroring set.

Returns a boolean indicating whether a display is the main display.

Returns a boolean indicating whether a display is connected or online.

Returns a boolean indicating whether Quartz is using OpenGL-based window acceleration (Quartz Extreme) to render in a display.

Returns a boolean indicating whether a display is running in a stereo graphics mode.

For a secondary display in a mirroring set, returns the primary display.

Returns the primary display in a hardware mirroring set.

Returns the rotation angle of a display in degrees.

Returns the width and height of a display in millimeters.

Returns the serial number of a display monitor.

Returns the logical unit number of a display.

Returns the vendor number of the specified display’s monitor.

Returns the model number of a display monitor.

Returns the display height in pixel units.

Returns the display width in pixel units.

Provides a list of displays that are active (or drawable).

Provides count of displays that are active (or drawable).

Hides the mouse cursor, and increments the hide cursor count.

Decrements the hide cursor count, and shows the mouse cursor if the count is 0.

Moves the mouse cursor to a specified point relative to the display origin (the upper-left corner of the display).

Moves the mouse cursor without generating events.

Connects or disconnects the mouse and cursor while an application is in the foreground.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.