Struct core_graphics::display::CGDisplay[][src]

pub struct CGDisplay {
    pub id: CGDirectDisplayID,
}

Fields

id: CGDirectDisplayID

Implementations

Returns the the main display.

A value that will never correspond to actual hardware.

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.

Configures the origin of a display in the global display coordinate space.

Changes the configuration of a mirroring set.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.