pub struct KeyboardState { /* private fields */ }👎Deprecated: the
xkeysym crate implements this crate without any cruftExpand description
Keeps track of the keyboard state for the X11 display.
Implementations§
Source§impl KeyboardState
impl KeyboardState
Sourcepub fn new(dpy: &mut impl Display) -> Result<Self>
👎Deprecated: the xkeysym crate implements this crate without any cruft
pub fn new(dpy: &mut impl Display) -> Result<Self>
xkeysym crate implements this crate without any cruftCreate a new KeyboardState associated with the given connection.
Sourcepub async fn new_async(dpy: &mut impl AsyncDisplay) -> Result<Self>
👎Deprecated: the xkeysym crate implements this crate without any cruft
pub async fn new_async(dpy: &mut impl AsyncDisplay) -> Result<Self>
xkeysym crate implements this crate without any cruftCreate a new KeyboardState, async redox.
Sourcepub fn refresh(&mut self, dpy: &mut impl Display) -> Result<()>
👎Deprecated: the xkeysym crate implements this crate without any cruft
pub fn refresh(&mut self, dpy: &mut impl Display) -> Result<()>
xkeysym crate implements this crate without any cruftRefresh the keyboard mapping associated with this type.
Sourcepub async fn refresh_async(&mut self, dpy: &mut impl AsyncDisplay) -> Result<()>
👎Deprecated: the xkeysym crate implements this crate without any cruft
pub async fn refresh_async(&mut self, dpy: &mut impl AsyncDisplay) -> Result<()>
xkeysym crate implements this crate without any cruftRefresh the keyboard mapping associated with this type, async redox.
Sourcepub fn symbol(
&mut self,
dpy: &mut impl Display,
keycode: Keycode,
column: u8,
) -> Result<Keysym>
👎Deprecated: the xkeysym crate implements this crate without any cruft
pub fn symbol( &mut self, dpy: &mut impl Display, keycode: Keycode, column: u8, ) -> Result<Keysym>
xkeysym crate implements this crate without any cruftGet the keyboard symbol associated with the keycode and the column.
Sourcepub async fn symbol_async(
&mut self,
dpy: &mut impl AsyncDisplay,
keycode: Keycode,
column: u8,
) -> Result<Keysym>
👎Deprecated: the xkeysym crate implements this crate without any cruft
pub async fn symbol_async( &mut self, dpy: &mut impl AsyncDisplay, keycode: Keycode, column: u8, ) -> Result<Keysym>
xkeysym crate implements this crate without any cruftGet the keyboard symbol associated with the keycode and the column, async redox.
Auto Trait Implementations§
impl Freeze for KeyboardState
impl RefUnwindSafe for KeyboardState
impl Send for KeyboardState
impl Sync for KeyboardState
impl Unpin for KeyboardState
impl UnwindSafe for KeyboardState
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