| libxkbcommon 1.9.2
    Library implementing the XKB specification for parsing                           keyboard descriptions and handling keyboard state | 
| Enumerations | |
| enum | xkb_context_flags { XKB_CONTEXT_NO_FLAGS = 0 , XKB_CONTEXT_NO_DEFAULT_INCLUDES = (1 << 0) , XKB_CONTEXT_NO_ENVIRONMENT_NAMES = (1 << 1) , XKB_CONTEXT_NO_SECURE_GETENV = (1 << 2) } | 
| Functions | |
| XKB_EXPORT struct xkb_context * | xkb_context::xkb_context_new (enum xkb_context_flags flags) | 
| XKB_EXPORT struct xkb_context * | xkb_context::xkb_context_ref (struct xkb_context *context) | 
| XKB_EXPORT void | xkb_context::xkb_context_unref (struct xkb_context *context) | 
| XKB_EXPORT void | xkb_context::xkb_context_set_user_data (struct xkb_context *context, void *user_data) | 
| XKB_EXPORT void * | xkb_context::xkb_context_get_user_data (struct xkb_context *context) | 
Creating, destroying and using library contexts.
Every keymap compilation request must have a context associated with it. The context keeps around state such as the include path.
XKB_CONFIG_ROOT, XKB_CONFIG_EXTRA_PATH, XDG_CONFIG_DIR, HOME - see Include Paths.XKB_LOG_LEVEL - see xkb_context_set_log_level().XKB_LOG_VERBOSITY - see xkb_context_set_log_verbosity().XKB_DEFAULT_RULES, XKB_DEFAULT_MODEL, XKB_DEFAULT_LAYOUT, XKB_DEFAULT_VARIANT, XKB_DEFAULT_OPTIONS - see xkb_rule_names. | enum xkb_context_flags | 
Flags for context creation.
| XKB_EXPORT struct xkb_context * xkb_context_new | ( | enum xkb_context_flags | flags | ) | 
Create a new context.
| flags | Optional flags for the context, or 0. | 
| XKB_EXPORT struct xkb_context * xkb_context_ref | ( | struct xkb_context * | context | ) | 
Take a new reference on a context.
| XKB_EXPORT void xkb_context_unref | ( | struct xkb_context * | context | ) | 
Release a reference on a context, and possibly free it.
| context | The context. If it is NULL, this function does nothing. | 
| XKB_EXPORT void xkb_context_set_user_data | ( | struct xkb_context * | context, | 
| void * | user_data ) | 
Store custom user data in the context.
This may be useful in conjunction with xkb_context_set_log_fn() or other callbacks.
| XKB_EXPORT void * xkb_context_get_user_data | ( | struct xkb_context * | context | ) | 
Retrieves stored user data from the context.
This may be useful to access private user data from callbacks like a custom logging function.