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

source

pub(crate) fn update_modifiers( &mut self, mods_depressed: u32, mods_latched: u32, mods_locked: u32, group: u32 )

source

pub(crate) fn get_one_sym_raw(&mut self, keycode: u32) -> u32

source

pub(crate) fn get_utf8_raw(&mut self, keycode: u32) -> Option<String>

source

pub(crate) fn compose_feed( &mut self, keysym: u32 ) -> Option<xkb_compose_feed_result>

source

pub(crate) fn compose_status(&mut self) -> Option<xkb_compose_status>

source

pub(crate) fn compose_get_utf8(&mut self) -> Option<String>

source

pub(crate) fn new() -> Result<KbState, Error>

source

pub(crate) fn from_rmlvo(rmlvo: RMLVO) -> Result<KbState, Error>

source

pub(crate) unsafe fn init_compose(&mut self)

source

pub(crate) unsafe fn post_init(&mut self, keymap: *mut xkb_keymap)

source

pub(crate) unsafe fn de_init(&mut self)

source

pub(crate) unsafe fn init_with_fd(&mut self, fd: File, size: usize)

source

pub(crate) unsafe fn init_with_rmlvo( &mut self, names: xkb_rule_names ) -> Result<(), Error>

source

pub(crate) unsafe fn key_repeats(&mut self, xkb_keycode_t: u32) -> bool

source

pub(crate) fn ready(&self) -> bool

source

pub(crate) fn locked(&self) -> bool

source

pub(crate) fn mods_state(&self) -> ModifiersState

Trait Implementations§

source§

impl Debug for KbState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for KbState

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.