Struct breadx_keysyms::KeyboardState
source · [−]pub struct KeyboardState { /* private fields */ }Expand description
Keeps track of the keyboard state for the X11 display.
Implementations
sourceimpl KeyboardState
impl KeyboardState
sourcepub fn new(dpy: &mut impl Display) -> Result<Self>
pub fn new(dpy: &mut impl Display) -> Result<Self>
Create a new KeyboardState associated with the given connection.
sourcepub async fn new_async(dpy: &mut impl AsyncDisplay) -> Result<Self>
pub async fn new_async(dpy: &mut impl AsyncDisplay) -> Result<Self>
Create a new KeyboardState, async redox.
sourcepub fn refresh(&mut self, dpy: &mut impl Display) -> Result<()>
pub fn refresh(&mut self, dpy: &mut impl Display) -> Result<()>
Refresh the keyboard mapping associated with this type.
sourcepub async fn refresh_async(&mut self, dpy: &mut impl AsyncDisplay) -> Result<()>
pub async fn refresh_async(&mut self, dpy: &mut impl AsyncDisplay) -> Result<()>
Refresh the keyboard mapping associated with this type, async redox.
sourcepub fn symbol(
&mut self,
dpy: &mut impl Display,
keycode: Keycode,
column: u8
) -> Result<Keysym>
pub fn symbol(
&mut self,
dpy: &mut impl Display,
keycode: Keycode,
column: u8
) -> Result<Keysym>
Get 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>
pub async fn symbol_async(
&mut self,
dpy: &mut impl AsyncDisplay,
keycode: Keycode,
column: u8
) -> Result<Keysym>
Get the keyboard symbol associated with the keycode and the column, async redox.
Auto Trait Implementations
impl RefUnwindSafe for KeyboardState
impl Send for KeyboardState
impl Sync for KeyboardState
impl Unpin for KeyboardState
impl UnwindSafe for KeyboardState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more