pub(crate) struct KbState {
xkb_context: *mut xkb_context,
xkb_keymap: *mut xkb_keymap,
xkb_state: *mut xkb_state,
xkb_compose_table: *mut xkb_compose_table,
xkb_compose_state: *mut xkb_compose_state,
mods_state: ModifiersState,
locked: bool,
}
Fields§
§xkb_context: *mut xkb_context
§xkb_keymap: *mut xkb_keymap
§xkb_state: *mut xkb_state
§xkb_compose_table: *mut xkb_compose_table
§xkb_compose_state: *mut xkb_compose_state
§mods_state: ModifiersState
§locked: bool
Implementations§
source§impl KbState
impl KbState
pub(crate) fn update_modifiers( &mut self, mods_depressed: u32, mods_latched: u32, mods_locked: u32, group: u32 )
pub(crate) fn get_one_sym_raw(&mut self, keycode: u32) -> u32
pub(crate) fn get_utf8_raw(&mut self, keycode: u32) -> Option<String>
pub(crate) fn compose_feed( &mut self, keysym: u32 ) -> Option<xkb_compose_feed_result>
pub(crate) fn compose_status(&mut self) -> Option<xkb_compose_status>
pub(crate) fn compose_get_utf8(&mut self) -> Option<String>
pub(crate) fn new() -> Result<KbState, Error>
pub(crate) fn from_rmlvo(rmlvo: RMLVO) -> Result<KbState, Error>
pub(crate) unsafe fn init_compose(&mut self)
pub(crate) unsafe fn post_init(&mut self, keymap: *mut xkb_keymap)
pub(crate) unsafe fn de_init(&mut self)
pub(crate) unsafe fn init_with_fd(&mut self, fd: File, size: usize)
pub(crate) unsafe fn init_with_rmlvo( &mut self, names: xkb_rule_names ) -> Result<(), Error>
pub(crate) unsafe fn key_repeats(&mut self, xkb_keycode_t: u32) -> bool
pub(crate) fn ready(&self) -> bool
pub(crate) fn locked(&self) -> bool
pub(crate) fn mods_state(&self) -> ModifiersState
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for KbState
impl !Send for KbState
impl !Sync for KbState
impl Unpin for KbState
impl UnwindSafe for KbState
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