[−][src]Struct penrose::core::xconnection::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<XcbConnection>
[src]
Establish a new connection to the running X server. Fails if unable to connect
Trait Implementations
impl XConn for XcbConnection
[src]
fn flush(&self) -> bool
[src]
fn wait_for_event(&self) -> Option<XEvent>
[src]
fn current_outputs(&self) -> Vec<Screen>
[src]
fn cursor_position(&self) -> Point
[src]
fn position_window(
&self,
id: WinId,
reg: Region,
border: u32,
stack_above: bool
)
[src]
&self,
id: WinId,
reg: Region,
border: u32,
stack_above: bool
)
fn mark_new_window(&self, id: WinId)
[src]
fn map_window(&self, id: WinId)
[src]
fn unmap_window(&self, id: WinId)
[src]
fn send_client_event(&self, id: WinId, atom_name: &str) -> Result<()>
[src]
fn focused_client(&self) -> WinId
[src]
fn focus_client(&self, id: WinId)
[src]
fn set_client_border_color(&self, id: WinId, color: u32)
[src]
fn toggle_client_fullscreen(&self, id: WinId, client_is_fullscreen: bool)
[src]
fn grab_keys(&self, key_bindings: &KeyBindings, mouse_bindings: &MouseBindings)
[src]
fn set_wm_properties(&self, workspaces: &[&str])
[src]
fn update_desktops(&self, workspaces: &[&str])
[src]
fn set_current_workspace(&self, wix: usize)
[src]
fn set_root_window_name(&self, name: &str)
[src]
fn set_client_workspace(&self, id: WinId, wix: usize)
[src]
fn window_should_float(&self, id: WinId, floating_classes: &[&str]) -> bool
[src]
fn window_geometry(&self, id: WinId) -> Result<Region>
[src]
fn warp_cursor(&self, win_id: Option<WinId>, screen: &Screen)
[src]
fn query_for_active_windows(&self) -> Vec<WinId>
[src]
fn str_prop(&self, id: u32, name: &str) -> Result<String>
[src]
fn atom_prop(&self, id: u32, name: &str) -> Result<u32>
[src]
fn intern_atom(&self, atom: &str) -> Result<u32>
[src]
fn cleanup(&self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for XcbConnection
impl !Send for XcbConnection
impl !Sync for XcbConnection
impl Unpin for XcbConnection
impl UnwindSafe for XcbConnection
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>,