pub struct Display { /* private fields */ }
Expand description
The X11 display. This is the context object used for the X11 window.
Note: This object is not clonable. Use the reference() method to get a cheap reference to this object.
Implementations§
Trait Implementations§
Source§impl GenericDisplay for Display
impl GenericDisplay for Display
Source§fn reference(&self) -> DisplayReference
fn reference(&self) -> DisplayReference
Create a reference to this object.
Source§fn raw(&self) -> Result<NonNull<Display>, FlutterbugError>
fn raw(&self) -> Result<NonNull<Display>, FlutterbugError>
Get the pointer to the raw Display object.
Source§fn default_screen(&self) -> Result<Screen, FlutterbugError>
fn default_screen(&self) -> Result<Screen, FlutterbugError>
Get the default screen for this instance.
Source§fn visual(&self, screen: Screen) -> Result<*mut Visual, FlutterbugError>
fn visual(&self, screen: Screen) -> Result<*mut Visual, FlutterbugError>
Get the visual for the screen.
Source§fn default_visual(&self) -> Result<*mut Visual, FlutterbugError>
fn default_visual(&self) -> Result<*mut Visual, FlutterbugError>
Get the default visual for the default screen.
Source§fn black_pixel(&self, screen: Screen) -> Result<Color, FlutterbugError>
fn black_pixel(&self, screen: Screen) -> Result<Color, FlutterbugError>
Get the black pixel for the screen.
Source§fn default_black_pixel(&self) -> Result<Color, FlutterbugError>
fn default_black_pixel(&self) -> Result<Color, FlutterbugError>
Get the default black pixel for the default screen.
Source§fn white_pixel(&self, screen: Screen) -> Result<Color, FlutterbugError>
fn white_pixel(&self, screen: Screen) -> Result<Color, FlutterbugError>
Get the white pixel for the screen.
Source§fn default_white_pixel(&self) -> Result<Color, FlutterbugError>
fn default_white_pixel(&self) -> Result<Color, FlutterbugError>
Get the default white pixel for the default screen.
Source§fn colormap(&self, screen: Screen) -> Result<ColorMap, FlutterbugError>
fn colormap(&self, screen: Screen) -> Result<ColorMap, FlutterbugError>
Get the colormap for the screen.
Source§fn default_colormap(&self) -> Result<ColorMap, FlutterbugError>
fn default_colormap(&self) -> Result<ColorMap, FlutterbugError>
Get the default colormap for the default screen.
Source§fn gc(&self, screen: Screen) -> Result<GraphicsContext, FlutterbugError>
fn gc(&self, screen: Screen) -> Result<GraphicsContext, FlutterbugError>
Get the default graphics context for a screen.
Source§fn default_gc(&self) -> Result<GraphicsContext, FlutterbugError>
fn default_gc(&self) -> Result<GraphicsContext, FlutterbugError>
Get the graphics context for the default screen.
Source§fn create_simple_window(
&self,
parent: Option<&Window>,
origin: Point2D<i32>,
size: Size2D<u32>,
border_width: u32,
border_color: Color,
background_color: Color,
) -> Result<Window, FlutterbugError>
fn create_simple_window( &self, parent: Option<&Window>, origin: Point2D<i32>, size: Size2D<u32>, border_width: u32, border_color: Color, background_color: Color, ) -> Result<Window, FlutterbugError>
Create a simple window from this display.
Source§fn create_context(&self) -> Result<Context, FlutterbugError>
fn create_context(&self) -> Result<Context, FlutterbugError>
Create a context using this connection.
Source§fn internal_atom(
&self,
name: &str,
create_if_exists: bool,
) -> Result<Atom, FlutterbugError>
fn internal_atom( &self, name: &str, create_if_exists: bool, ) -> Result<Atom, FlutterbugError>
Get an internal atom based upon its name.
Source§fn input_method(&self) -> Result<InputMethod, FlutterbugError>
fn input_method(&self) -> Result<InputMethod, FlutterbugError>
Create a new input method based on this display.
Source§fn create_image(
&self,
bounds: Size2D<u32>,
depth: u32,
data: Vec<c_char>,
) -> Result<Image, FlutterbugError>
fn create_image( &self, bounds: Size2D<u32>, depth: u32, data: Vec<c_char>, ) -> Result<Image, FlutterbugError>
Create a new image from this display.
fn sync(&self, s: bool) -> Result<(), FlutterbugError>
Source§fn depth(&self, screen: Screen) -> Result<i32, FlutterbugError>
fn depth(&self, screen: Screen) -> Result<i32, FlutterbugError>
Get the depth for a particular screen.
Source§fn default_depth(&self) -> Result<i32, FlutterbugError>
fn default_depth(&self) -> Result<i32, FlutterbugError>
Get the depth for the default screen.
impl Eq for Display
Auto Trait Implementations§
impl Freeze for Display
impl RefUnwindSafe for Display
impl !Send for Display
impl !Sync 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