[−][src]Struct penrose::xcb::XcbConnection
Handles communication with an X server via the XCB library.
XcbConnection is a minimal implementation that does not make use of the full asyc capabilities of the underlying C XCB library.
Implementations
impl XcbConnection
[src]
pub fn new() -> Result<Self>
[src]
Establish a new connection to the running X server. Fails if unable to connect
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 a 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.
pub fn known_atoms(&self) -> &HashMap<Atom, u32>
[src]
Trait Implementations
impl Debug for XcbConnection
[src]
impl XConn for XcbConnection
[src]
pub fn flush(&self) -> bool
[src]
pub fn wait_for_event(&self) -> Result<XEvent>
[src]
pub fn current_outputs(&self) -> Vec<Screen>
[src]
pub fn cursor_position(&self) -> Point
[src]
pub fn position_window(
&self,
id: WinId,
reg: Region,
border: u32,
stack_above: bool
)
[src]
&self,
id: WinId,
reg: Region,
border: u32,
stack_above: bool
)
pub fn raise_window(&self, id: WinId)
[src]
pub fn mark_new_window(&self, id: WinId)
[src]
pub fn map_window(&self, id: WinId)
[src]
pub fn unmap_window(&self, id: WinId)
[src]
pub fn send_client_event(&self, id: WinId, atom_name: &str) -> Result<()>
[src]
pub fn focused_client(&self) -> WinId
[src]
pub fn focus_client(&self, id: WinId)
[src]
pub fn set_client_border_color(&self, id: WinId, color: u32)
[src]
pub fn toggle_client_fullscreen(&self, id: WinId, client_is_fullscreen: bool)
[src]
pub fn grab_keys(
&self,
key_bindings: &KeyBindings<Self>,
mouse_bindings: &MouseBindings<Self>
)
[src]
&self,
key_bindings: &KeyBindings<Self>,
mouse_bindings: &MouseBindings<Self>
)
pub fn set_wm_properties(&self, workspaces: &[&str])
[src]
pub fn update_desktops(&self, workspaces: &[&str])
[src]
pub fn update_known_clients(&self, clients: &[WinId])
[src]
pub fn set_current_workspace(&self, wix: usize)
[src]
pub fn set_root_window_name(&self, root_name: &str)
[src]
pub fn set_client_workspace(&self, id: WinId, workspace: usize)
[src]
pub fn window_should_float(&self, id: WinId, floating_classes: &[&str]) -> bool
[src]
pub fn is_managed_window(&self, id: WinId) -> bool
[src]
pub fn window_geometry(&self, id: WinId) -> Result<Region>
[src]
pub fn warp_cursor(&self, win_id: Option<WinId>, screen: &Screen)
[src]
pub fn query_for_active_windows(&self) -> Vec<WinId>
[src]
pub fn str_prop(&self, id: u32, name: &str) -> Result<String>
[src]
pub fn atom_prop(&self, id: u32, name: &str) -> Result<u32>
[src]
pub fn intern_atom(&self, atom: &str) -> Result<u32>
[src]
pub fn cleanup(&self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for XcbConnection
[src]
impl !Send for XcbConnection
[src]
impl !Sync for XcbConnection
[src]
impl Unpin for XcbConnection
[src]
impl UnwindSafe for XcbConnection
[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>,