pub struct Display { /* private fields */ }
Expand description
The display pointer.
Implementations§
source§impl Display
impl Display
sourcepub unsafe fn from_ptr(ptr: *mut c_void) -> ManuallyDrop<Self>
pub unsafe fn from_ptr(ptr: *mut c_void) -> ManuallyDrop<Self>
Create a new Display
from a pointer.
§Safety
The pointer must be a valid pointer to an Xlib display. In addition, it should only be dropped if the user logically owns the display.
sourcepub fn screen_index(&self) -> usize
pub fn screen_index(&self) -> usize
Get the default screen index for this display.
Trait Implementations§
source§impl AsRawXcbConnection for Display
impl AsRawXcbConnection for Display
source§fn as_raw_xcb_connection(&self) -> *mut xcb_connection_t
fn as_raw_xcb_connection(&self) -> *mut xcb_connection_t
Get a raw xcb connection pointer from this object.
impl Send for Display
impl Sync for Display
Auto Trait Implementations§
impl Freeze for Display
impl RefUnwindSafe for Display
impl Unpin for Display
impl UnwindSafe for Display
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