pub struct CGDisplay {
pub id: CGDirectDisplayID,
}
Fields§
§id: CGDirectDisplayID
Implementations§
Source§impl CGDisplay
impl CGDisplay
pub fn new(id: CGDirectDisplayID) -> Self
pub fn main() -> Self
pub fn copy_display_modes(&self) -> Option<CFArray<CGDisplayMode>>
pub fn copy_display_mode(&self) -> Option<CGDisplayMode>
pub fn bounds(&self) -> CGRect
pub fn pixels_wide(&self) -> usize
pub fn pixels_high(&self) -> usize
pub fn set_display_mode(&self, mode: &CGDisplayMode) -> Result<(), CGError>
pub fn capture(&self) -> Result<(), CGError>
pub fn capture_with_options( &self, options: CGCaptureOptions, ) -> Result<(), CGError>
pub fn shielding_window_id(&self) -> CGWindowID
pub fn new_image(&self) -> Option<CGImage>
pub fn new_image_for_rect(&self, rect: CGRect) -> Option<CGImage>
pub fn hide_cursor(&self) -> Result<(), CGError>
pub fn show_cursor(&self) -> Result<(), CGError>
pub fn move_cursor_to_point(&self, point: CGPoint) -> Result<(), CGError>
pub fn warp_mouse_cursor_position(&self, point: CGPoint) -> Result<(), CGError>
pub fn get_drawing_context(&self) -> Option<CGContext>
pub fn set_stereo_operation( &self, stereo: bool, force_blue_line: bool, option: CGConfigureOption, ) -> Result<(), CGError>
pub fn is_active(&self) -> bool
pub fn is_asleep(&self) -> bool
pub fn is_online(&self) -> bool
pub fn is_main(&self) -> bool
pub fn is_built_in(&self) -> bool
pub fn is_in_mirror_set(&self) -> bool
pub fn is_always_in_mirror_set(&self) -> bool
pub fn is_in_hw_mirror_set(&self) -> bool
pub fn is_stereo(&self) -> bool
pub fn uses_opengl_acceleration(&self) -> bool
pub fn mirrors_display(&self) -> Self
pub fn primary_display(&self) -> Self
pub fn unit_number(&self) -> u32
pub fn vendor_number(&self) -> u32
pub fn model_number(&self) -> u32
pub fn serial_number(&self) -> u32
pub fn screen_size(&self) -> CGSize
pub fn rotation(&self) -> c_double
pub fn copy_color_space(&self) -> Option<CGColorSpace>
Trait Implementations§
impl Copy for CGDisplay
impl Eq for CGDisplay
impl StructuralPartialEq for CGDisplay
Auto Trait Implementations§
impl Freeze for CGDisplay
impl RefUnwindSafe for CGDisplay
impl Send for CGDisplay
impl Sync for CGDisplay
impl Unpin for CGDisplay
impl UnwindSafe for CGDisplay
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more