Struct core_graphics::display::CGDisplay [−][src]
pub struct CGDisplay {
pub id: CGDirectDisplayID,
}
Fields
id: CGDirectDisplayID
Implementations
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.
pub fn complete_configuration(
&self,
config_ref: &CGDisplayConfigRef,
option: CGConfigureOption
) -> Result<(), CGError>
pub fn complete_configuration(
&self,
config_ref: &CGDisplayConfigRef,
option: CGConfigureOption
) -> Result<(), CGError>
Completes a set of display configuration changes.
pub fn configure_display_with_display_mode(
&self,
config_ref: &CGDisplayConfigRef,
display_mode: &CGDisplayMode
) -> Result<(), CGError>
pub fn configure_display_with_display_mode(
&self,
config_ref: &CGDisplayConfigRef,
display_mode: &CGDisplayMode
) -> Result<(), CGError>
Configures the display mode of a display.
pub fn configure_display_origin(
&self,
config_ref: &CGDisplayConfigRef,
x: i32,
y: i32
) -> Result<(), CGError>
pub fn configure_display_origin(
&self,
config_ref: &CGDisplayConfigRef,
x: i32,
y: i32
) -> Result<(), CGError>
Configures the origin of a display in the global display coordinate space.
pub fn configure_display_mirror_of_display(
&self,
config_ref: &CGDisplayConfigRef,
master: &CGDisplay
) -> Result<(), CGError>
pub fn configure_display_mirror_of_display(
&self,
config_ref: &CGDisplayConfigRef,
master: &CGDisplay
) -> Result<(), CGError>
Changes the configuration of a mirroring set.
Returns an image containing the contents of the specified display.
pub fn screenshot(
bounds: CGRect,
list_option: CGWindowListOption,
window_id: CGWindowID,
image_option: CGWindowImageOption
) -> Option<CGImage>
pub fn screenshot(
bounds: CGRect,
list_option: CGWindowListOption,
window_id: CGWindowID,
image_option: CGWindowImageOption
) -> Option<CGImage>
Returns a composite image based on a dynamically generated list of windows.
pub fn screenshot_from_windows(
bounds: CGRect,
windows: CFArray,
image_option: CGWindowImageOption
) -> Option<CGImage>
pub fn screenshot_from_windows(
bounds: CGRect,
windows: CFArray,
image_option: CGWindowImageOption
) -> Option<CGImage>
Returns a composite image of the specified windows.
pub fn window_list_info(
option: CGWindowListOption,
relative_to_window: Option<CGWindowID>
) -> Option<CFArray>
pub fn window_list_info(
option: CGWindowListOption,
relative_to_window: Option<CGWindowID>
) -> Option<CFArray>
Generates and returns information about the selected windows in the current user session.
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 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CGDisplay
impl UnwindSafe for CGDisplay
Blanket Implementations
Mutably borrows from an owned value. Read more