pub struct CuX11Backend { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CuBackend for CuX11Backend
impl CuBackend for CuX11Backend
fn name(&self) -> &'static str
fn fb_size(&self) -> Result<(i32, i32), String>
fn key(&self, scancode: u32, pressed: bool)
fn mouse_move(&self, x: f64, y: f64)
fn scroll(&self, dx: f64, dy: f64)
Source§fn screenshot_png(&self, display: u32) -> Result<Vec<u8>, String>
fn screenshot_png(&self, display: u32) -> Result<Vec<u8>, String>
PNG of one display’s framebuffer; 0 = the primary. Unknown ids are an error.
fn cursor_pos(&self) -> Result<(f64, f64), String>
Source§fn resolve_keysyms(&self, keysyms: &[u32]) -> Vec<(u32, u32)>
fn resolve_keysyms(&self, keysyms: &[u32]) -> Vec<(u32, u32)>
Resolve keysyms against the backend’s ACTIVE keymap: one
(keycode, shift level)
per input keysym, (0, 0) where the keymap cannot produce it. Level bit 0 = Shift,
bit 1 = AltGr — the order xkb two/four-level key types use. Wayland resolves through
the compositor’s keymap policy (overlay-binding what the base lacks); X11 through
the server’s own GetKeyboardMapping.Source§fn altgr_keycode(&self) -> u32
fn altgr_keycode(&self) -> u32
Keycode synthesized around AltGr-level hits (level bit 1). The default is the
pc105 right-Alt position the compositor’s seat keymap binds to
ISO_Level3_Shift;
the X11 backend overrides it with the level-3 modifier key found in the server’s
keymap (0 = none, in which case resolve_keysyms reports no AltGr levels).Source§fn with_transient_keysyms(
&self,
keysyms: &[u32],
seq: &mut dyn FnMut(&HashMap<u32, u32>),
)
fn with_transient_keysyms( &self, keysyms: &[u32], seq: &mut dyn FnMut(&HashMap<u32, u32>), )
Run
seq with every keysym in keysyms (which resolve_keysyms could not place)
made temporarily typeable, when the backend can arrange that; seq receives
keysym -> keycode for the transient bindings (empty when none could be arranged,
in which case those keysyms simply stay untypeable). Wayland’s resolve_keysyms
already overlay-binds anything the base keymap lacks, so the default runs seq
with no bindings; the X11 backend overrides this with a grab-atomic spare-keycode
remap.Auto Trait Implementations§
impl !Freeze for CuX11Backend
impl !RefUnwindSafe for CuX11Backend
impl !Sync for CuX11Backend
impl Send for CuX11Backend
impl Unpin for CuX11Backend
impl UnsafeUnpin for CuX11Backend
impl UnwindSafe for CuX11Backend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more