[−][src]Struct flutterbug::Display
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
impl Display
[src]
pub fn new() -> Result<Self, FlutterbugError>
[src]
Create a new Display. This will call the XOpenDisplay function and store the result in an Arc. If XOpenDisplay returns null, the UnableToOpenDisplay error is returned instead.
Trait Implementations
impl Debug for Display
[src]
impl Drop for Display
[src]
impl Eq for Display
[src]
impl GenericDisplay for Display
[src]
fn reference(&self) -> DisplayReference
[src]
fn raw(&self) -> Result<NonNull<Display>, FlutterbugError>
[src]
fn default_screen(&self) -> Result<Screen, FlutterbugError>
[src]
fn visual(&self, screen: Screen) -> Result<*mut Visual, FlutterbugError>
[src]
fn default_visual(&self) -> Result<*mut Visual, FlutterbugError>
[src]
fn black_pixel(&self, screen: Screen) -> Result<Color, FlutterbugError>
[src]
fn default_black_pixel(&self) -> Result<Color, FlutterbugError>
[src]
fn white_pixel(&self, screen: Screen) -> Result<Color, FlutterbugError>
[src]
fn default_white_pixel(&self) -> Result<Color, FlutterbugError>
[src]
fn colormap(&self, screen: Screen) -> Result<ColorMap, FlutterbugError>
[src]
fn default_colormap(&self) -> Result<ColorMap, FlutterbugError>
[src]
fn gc(&self, screen: Screen) -> Result<GraphicsContext, FlutterbugError>
[src]
fn default_gc(&self) -> Result<GraphicsContext, FlutterbugError>
[src]
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>
[src]
&self,
parent: Option<&Window>,
origin: Point2D<i32>,
size: Size2D<u32>,
border_width: u32,
border_color: Color,
background_color: Color
) -> Result<Window, FlutterbugError>
fn create_context(&self) -> Result<Context, FlutterbugError>
[src]
fn internal_atom(
&self,
name: &str,
create_if_exists: bool
) -> Result<Atom, FlutterbugError>
[src]
&self,
name: &str,
create_if_exists: bool
) -> Result<Atom, FlutterbugError>
fn input_method(&self) -> Result<InputMethod, FlutterbugError>
[src]
fn create_image(
&self,
bounds: Size2D<u32>,
depth: u32,
data: Vec<c_char>
) -> Result<Image, FlutterbugError>
[src]
&self,
bounds: Size2D<u32>,
depth: u32,
data: Vec<c_char>
) -> Result<Image, FlutterbugError>
fn sync(&self, s: bool) -> Result<(), FlutterbugError>
[src]
fn depth(&self, screen: Screen) -> Result<i32, FlutterbugError>
[src]
fn default_depth(&self) -> Result<i32, FlutterbugError>
[src]
impl PartialEq<Display> for Display
[src]
Auto Trait Implementations
impl RefUnwindSafe for Display
impl !Send for Display
impl !Sync for Display
impl Unpin for Display
impl UnwindSafe for Display
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,