[−][src]Struct penrose::xcb::XcbDraw
An XCB based Draw implementation backed by pango and cairo
Implementations
impl XcbDraw
[src]
pub fn new() -> Result<Self>
[src]
Create a new empty XcbDraw. Fails if unable to connect to the X server
pub fn xcb_connection(&self) -> &Connection
[src]
Get a handle on the underlying XCB Connection used by Api to communicate with the X server.
pub fn api(&self) -> &Api
[src]
Get an immutable handle on the underlying Api to communicate with the X server.
pub fn api_mut(&mut self) -> &mut Api
[src]
Get a mutable handle on the underlying Api to communicate with the X server.
Trait Implementations
impl Debug for XcbDraw
[src]
impl Draw for XcbDraw
[src]
type Ctx = XcbDrawContext
The type of drawing context used for drawing
pub fn new_window(
&mut self,
ty: WinType,
r: Region,
managed: bool
) -> Result<WinId>
[src]
&mut self,
ty: WinType,
r: Region,
managed: bool
) -> Result<WinId>
pub fn screen_sizes(&self) -> Result<Vec<Region>>
[src]
pub fn register_font(&mut self, font_name: &str)
[src]
pub fn context_for(&self, id: WinId) -> Result<Self::Ctx>
[src]
pub fn temp_context(&self, w: u32, h: u32) -> Result<Self::Ctx>
[src]
pub fn flush(&self, id: WinId)
[src]
pub fn map_window(&self, id: WinId)
[src]
pub fn unmap_window(&self, id: WinId)
[src]
pub fn destroy_window(&mut self, id: WinId)
[src]
pub fn replace_prop(&self, id: WinId, prop: Atom, val: PropVal<'_>)
[src]
Auto Trait Implementations
impl RefUnwindSafe for XcbDraw
[src]
impl !Send for XcbDraw
[src]
impl !Sync for XcbDraw
[src]
impl Unpin for XcbDraw
[src]
impl UnwindSafe for XcbDraw
[src]
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,
pub 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.
pub 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>,