[−][src]Struct penrose::core::xconnection::MockXConn
A dummy XConn implementation for testing
Implementations
impl MockXConn
[src]
pub fn new(screens: Vec<Screen>, events: Vec<XEvent>) -> Self
[src]
Set up a new MockXConn with pre-defined Screens and an event stream to pull from
Trait Implementations
impl XConn for MockXConn
[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, _: WinId, _: Region, _: u32)
[src]
fn mark_new_window(&self, _: WinId)
[src]
fn map_window(&self, _: WinId)
[src]
fn unmap_window(&self, _: WinId)
[src]
fn send_client_event(&self, _: WinId, _: &str) -> Result<()>
[src]
fn focused_client(&self) -> WinId
[src]
fn focus_client(&self, id: WinId)
[src]
fn set_client_border_color(&self, _: WinId, _: u32)
[src]
fn grab_keys(&self, _: &KeyBindings)
[src]
fn set_wm_properties(&self, _: &[&str])
[src]
fn update_desktops(&self, _: &[&str])
[src]
fn set_current_workspace(&self, _: usize)
[src]
fn set_root_window_name(&self, _: &str)
[src]
fn set_client_workspace(&self, _: WinId, _: usize)
[src]
fn window_should_float(&self, _: WinId, _: &[&str]) -> bool
[src]
fn warp_cursor(&self, _: Option<WinId>, _: &Screen)
[src]
fn query_for_active_windows(&self) -> Vec<WinId>
[src]
fn str_prop(&self, _: u32, name: &str) -> Result<String>
[src]
fn atom_prop(&self, id: u32, _: &str) -> Result<u32>
[src]
fn cleanup(&self)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MockXConn
impl Send for MockXConn
impl !Sync for MockXConn
impl Unpin for MockXConn
impl UnwindSafe for MockXConn
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>,