Struct xkbcommon_dl::XkbCommon
source · pub struct XkbCommon {Show 51 fields
pub(crate) __lib: Library,
pub xkb_keysym_get_name: Symbol<'static, unsafe extern "C" fn(_: xkb_keysym_t, _: *mut c_char, _: usize) -> c_int>,
pub xkb_keysym_from_name: Symbol<'static, unsafe extern "C" fn(_: *const c_char, _: xkb_keysym_flags) -> xkb_keysym_t>,
pub xkb_keysym_to_utf8: Symbol<'static, unsafe extern "C" fn(_: xkb_keysym_t, _: *mut c_char, _: usize) -> c_int>,
pub xkb_keysym_to_utf32: Symbol<'static, unsafe extern "C" fn(_: xkb_keysym_t) -> u32>,
pub xkb_context_new: Symbol<'static, unsafe extern "C" fn(_: xkb_context_flags) -> *mut xkb_context>,
pub xkb_context_ref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> *mut xkb_context>,
pub xkb_context_unref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context)>,
pub xkb_context_set_user_data: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *mut c_void)>,
pub xkb_context_get_user_data: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> *mut c_void>,
pub xkb_context_include_path_append: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *const c_char) -> c_int>,
pub xkb_context_include_path_append_default: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> c_int>,
pub xkb_context_include_path_reset_defaults: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> c_int>,
pub xkb_context_include_path_clear: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context)>,
pub xkb_context_num_include_paths: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> c_uint>,
pub xkb_context_include_path_get: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: c_uint) -> *const c_char>,
pub xkb_context_set_log_level: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: xkb_log_level)>,
pub xkb_context_get_log_level: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> xkb_log_level>,
pub xkb_context_set_log_verbosity: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: c_int)>,
pub xkb_context_get_log_verbosity: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> c_int>,
pub xkb_keymap_new_from_names: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *const xkb_rule_names, _: xkb_keymap_compile_flags) -> *mut xkb_keymap>,
pub xkb_keymap_new_from_string: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *const c_char, _: xkb_keymap_format, _: xkb_keymap_compile_flags) -> *mut xkb_keymap>,
pub xkb_keymap_new_from_buffer: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *const c_char, _: usize, _: xkb_keymap_format, _: xkb_keymap_compile_flags) -> *mut xkb_keymap>,
pub xkb_keymap_ref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> *mut xkb_keymap>,
pub xkb_keymap_unref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap)>,
pub xkb_keymap_get_as_string: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keymap_format) -> *const c_char>,
pub xkb_keymap_key_get_syms_by_level: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keycode_t, _: xkb_layout_index_t, _: xkb_level_index_t, _: *mut *const xkb_keysym_t) -> c_int>,
pub xkb_keymap_key_repeats: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keycode_t) -> c_int>,
pub xkb_keymap_min_keycode: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> xkb_keycode_t>,
pub xkb_keymap_max_keycode: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> xkb_keycode_t>,
pub xkb_keymap_key_for_each: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keymap_key_iter_t, _: *mut c_void)>,
pub xkb_keymap_num_layouts: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> xkb_layout_index_t>,
pub xkb_keymap_num_layouts_for_key: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keycode_t) -> xkb_layout_index_t>,
pub xkb_keymap_num_levels_for_key: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keycode_t, _: xkb_layout_index_t) -> xkb_level_index_t>,
pub xkb_keymap_mod_get_name: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_mod_index_t) -> *const c_char>,
pub xkb_keymap_mod_get_index: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: *const c_char) -> xkb_mod_index_t>,
pub xkb_state_new: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> *mut xkb_state>,
pub xkb_state_ref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state) -> *mut xkb_state>,
pub xkb_state_unref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state)>,
pub xkb_state_update_mask: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_mod_mask_t, _: xkb_mod_mask_t, _: xkb_mod_mask_t, _: xkb_layout_index_t, _: xkb_layout_index_t, _: xkb_layout_index_t) -> xkb_state_component>,
pub xkb_state_update_key: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t, _: xkb_key_direction) -> xkb_state_component>,
pub xkb_state_key_get_syms: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t, _: *const *mut xkb_keysym_t) -> c_int>,
pub xkb_state_key_get_utf8: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t, _: *mut c_char, _: usize) -> c_int>,
pub xkb_state_key_get_utf32: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t) -> u32>,
pub xkb_state_key_get_one_sym: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t) -> xkb_keysym_t>,
pub xkb_state_key_get_layout: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t) -> xkb_layout_index_t>,
pub xkb_state_key_get_level: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t, _: xkb_layout_index_t) -> xkb_level_index_t>,
pub xkb_state_mod_name_is_active: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: *const c_char, _: xkb_state_component) -> c_int>,
pub xkb_state_mod_index_is_active: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_mod_index_t, _: xkb_state_component) -> c_int>,
pub xkb_state_serialize_mods: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_state_component) -> xkb_mod_mask_t>,
pub xkb_state_serialize_layout: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_state_component) -> xkb_layout_index_t>,
}
Fields§
§__lib: Library
§xkb_keysym_get_name: Symbol<'static, unsafe extern "C" fn(_: xkb_keysym_t, _: *mut c_char, _: usize) -> c_int>
§xkb_keysym_from_name: Symbol<'static, unsafe extern "C" fn(_: *const c_char, _: xkb_keysym_flags) -> xkb_keysym_t>
§xkb_keysym_to_utf8: Symbol<'static, unsafe extern "C" fn(_: xkb_keysym_t, _: *mut c_char, _: usize) -> c_int>
§xkb_keysym_to_utf32: Symbol<'static, unsafe extern "C" fn(_: xkb_keysym_t) -> u32>
§xkb_context_new: Symbol<'static, unsafe extern "C" fn(_: xkb_context_flags) -> *mut xkb_context>
§xkb_context_ref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> *mut xkb_context>
§xkb_context_unref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context)>
§xkb_context_set_user_data: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *mut c_void)>
§xkb_context_get_user_data: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> *mut c_void>
§xkb_context_include_path_append: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *const c_char) -> c_int>
§xkb_context_include_path_append_default: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> c_int>
§xkb_context_include_path_reset_defaults: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> c_int>
§xkb_context_include_path_clear: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context)>
§xkb_context_num_include_paths: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> c_uint>
§xkb_context_include_path_get: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: c_uint) -> *const c_char>
§xkb_context_set_log_level: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: xkb_log_level)>
§xkb_context_get_log_level: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> xkb_log_level>
§xkb_context_set_log_verbosity: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: c_int)>
§xkb_context_get_log_verbosity: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context) -> c_int>
§xkb_keymap_new_from_names: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *const xkb_rule_names, _: xkb_keymap_compile_flags) -> *mut xkb_keymap>
§xkb_keymap_new_from_string: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *const c_char, _: xkb_keymap_format, _: xkb_keymap_compile_flags) -> *mut xkb_keymap>
§xkb_keymap_new_from_buffer: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_context, _: *const c_char, _: usize, _: xkb_keymap_format, _: xkb_keymap_compile_flags) -> *mut xkb_keymap>
§xkb_keymap_ref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> *mut xkb_keymap>
§xkb_keymap_unref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap)>
§xkb_keymap_get_as_string: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keymap_format) -> *const c_char>
§xkb_keymap_key_get_syms_by_level: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keycode_t, _: xkb_layout_index_t, _: xkb_level_index_t, _: *mut *const xkb_keysym_t) -> c_int>
§xkb_keymap_key_repeats: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keycode_t) -> c_int>
§xkb_keymap_min_keycode: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> xkb_keycode_t>
§xkb_keymap_max_keycode: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> xkb_keycode_t>
§xkb_keymap_key_for_each: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keymap_key_iter_t, _: *mut c_void)>
§xkb_keymap_num_layouts: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> xkb_layout_index_t>
§xkb_keymap_num_layouts_for_key: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keycode_t) -> xkb_layout_index_t>
§xkb_keymap_num_levels_for_key: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_keycode_t, _: xkb_layout_index_t) -> xkb_level_index_t>
§xkb_keymap_mod_get_name: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: xkb_mod_index_t) -> *const c_char>
§xkb_keymap_mod_get_index: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap, _: *const c_char) -> xkb_mod_index_t>
§xkb_state_new: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_keymap) -> *mut xkb_state>
§xkb_state_ref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state) -> *mut xkb_state>
§xkb_state_unref: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state)>
§xkb_state_update_mask: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_mod_mask_t, _: xkb_mod_mask_t, _: xkb_mod_mask_t, _: xkb_layout_index_t, _: xkb_layout_index_t, _: xkb_layout_index_t) -> xkb_state_component>
§xkb_state_update_key: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t, _: xkb_key_direction) -> xkb_state_component>
§xkb_state_key_get_syms: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t, _: *const *mut xkb_keysym_t) -> c_int>
§xkb_state_key_get_utf8: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t, _: *mut c_char, _: usize) -> c_int>
§xkb_state_key_get_utf32: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t) -> u32>
§xkb_state_key_get_one_sym: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t) -> xkb_keysym_t>
§xkb_state_key_get_layout: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t) -> xkb_layout_index_t>
§xkb_state_key_get_level: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_keycode_t, _: xkb_layout_index_t) -> xkb_level_index_t>
§xkb_state_mod_name_is_active: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: *const c_char, _: xkb_state_component) -> c_int>
§xkb_state_mod_index_is_active: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_mod_index_t, _: xkb_state_component) -> c_int>
§xkb_state_serialize_mods: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_state_component) -> xkb_mod_mask_t>
§xkb_state_serialize_layout: Symbol<'static, unsafe extern "C" fn(_: *mut xkb_state, _: xkb_state_component) -> xkb_layout_index_t>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XkbCommon
impl RefUnwindSafe for XkbCommon
impl Send for XkbCommon
impl Unpin for XkbCommon
impl UnwindSafe for XkbCommon
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