Skip to content
modkitv0.2

accessibility.h

#include <modkit/accessibility.h>10 functions · 4 structs · 4 enums · 10 typedefs · 4 macros

Per-window accessibility snapshots and action dispatch.

Functions

mk_accessibility_action_event_initfunction

void mk_accessibility_action_event_init(mk_accessibility_action_event_t *event)

Initialize the accessibility action event.

ParameterTypeDescription
eventmk_accessibility_action_event_t *Value for event.

mk_accessibility_node_initfunction

void mk_accessibility_node_init(mk_accessibility_node_t *node)

Initialize the accessibility node.

ParameterTypeDescription
nodemk_accessibility_node_t *Value for node.

mk_accessibility_publish_snapshotfunction

mk_result mk_accessibility_publish_snapshot(mk_accessibility_window_t *window, const mk_accessibility_snapshot_t *snapshot)

Perform the accessibility publish snapshot operation.

ParameterTypeDescription
windowmk_accessibility_window_t *Value for window.
snapshotconst mk_accessibility_snapshot_t *Value for snapshot.

Returns MK_SUCCESS or an error result.

mk_accessibility_queue_actionfunction

mk_result mk_accessibility_queue_action(mk_accessibility_window_t *window, const mk_accessibility_action_event_t *event)

Backend entry point; the action is deep-copied and queued to the main loop.

ParameterTypeDescription
windowmk_accessibility_window_t *Value for window.
eventconst mk_accessibility_action_event_t *Value for event.

Returns MK_SUCCESS or an error result.

mk_accessibility_snapshot_generationfunction

uint64_t mk_accessibility_snapshot_generation(const mk_accessibility_window_t *window)

Perform the accessibility snapshot generation operation.

ParameterTypeDescription
windowconst mk_accessibility_window_t *Value for window.

Returns The resulting value.

mk_accessibility_snapshot_initfunction

void mk_accessibility_snapshot_init(mk_accessibility_snapshot_t *snapshot)

Initialize the accessibility snapshot.

ParameterTypeDescription
snapshotmk_accessibility_snapshot_t *Value for snapshot.

mk_accessibility_supportedfunction

bool mk_accessibility_supported(void)

True only when a native accessibility adapter is active.

Returns True when the condition holds.

mk_accessibility_window_createfunction

mk_result mk_accessibility_window_create(const mk_accessibility_window_desc_t *desc, mk_accessibility_window_t **window)

Create accessibility window.

ParameterTypeDescription
descconst mk_accessibility_window_desc_t *Configuration descriptor.
windowmk_accessibility_window_t **Value for window.

Returns MK_SUCCESS or an error result.

mk_accessibility_window_desc_initfunction

void mk_accessibility_window_desc_init(mk_accessibility_window_desc_t *desc)

Initialize the accessibility window desc.

ParameterTypeDescription
descmk_accessibility_window_desc_t *Configuration descriptor.

mk_accessibility_window_destroyfunction

void mk_accessibility_window_destroy(mk_accessibility_window_t *window)

Destroy the accessibility window.

ParameterTypeDescription
windowmk_accessibility_window_t *Value for window.

Structs

mk_accessibility_action_eventstruct

Data for accessibility action event.

FieldTypeDescription
struct_sizeuint32_tThe struct size.
struct_versionuint32_tThe struct version.
node_iduint64_tThe node ID.
actionmk_accessibility_action_tThe action.
valueconst char *The value.
selection_startint32_tThe selection start.
selection_endint32_tThe selection end.
scroll_xfloatThe scroll x.
scroll_yfloatThe scroll y.

mk_accessibility_nodestruct

Data for accessibility node.

FieldTypeDescription
struct_sizeuint32_tThe struct size.
struct_versionuint32_tThe struct version.
iduint64_tThe ID.
parent_iduint64_tThe parent ID.
orderuint32_tThe order.
rolemk_accessibility_role_tThe role.
labelconst char *The label.
descriptionconst char *The description.
valueconst char *The value.
boundsmk_rectfThe bounds.
statesuint32_tThe states.
actionsuint32_tThe actions.
range_mindoubleThe range min.
range_maxdoubleThe range max.
range_valuedoubleThe range value.
selection_startint32_tThe selection start.
selection_endint32_tThe selection end.
collection_indexuint32_tThe collection index.
collection_countuint32_tThe collection count.
livemk_accessibility_live_tThe live.

mk_accessibility_snapshotstruct

Data for accessibility snapshot.

FieldTypeDescription
struct_sizeuint32_tThe struct size.
struct_versionuint32_tThe struct version.
nodesconst mk_accessibility_node_t *The nodes.
node_countuint32_tThe node count.
focused_node_iduint64_tThe focused node ID.

mk_accessibility_window_descstruct

Data for accessibility window desc.

FieldTypeDescription
struct_sizeuint32_tThe struct size.
struct_versionuint32_tThe struct version.
window_iduint32_tThe window ID.
action_callbackmk_accessibility_action_fnThe action callback.
user_datavoid *The user data.

Enums

mk_accessibility_actionenum

Values for accessibility action.

ValueDescription
MK_ACCESSIBILITY_ACTION_FOCUSSelects focus.
MK_ACCESSIBILITY_ACTION_INVOKESelects invoke.
MK_ACCESSIBILITY_ACTION_SET_VALUESelects set value.
MK_ACCESSIBILITY_ACTION_SET_SELECTIONSelects set selection.
MK_ACCESSIBILITY_ACTION_INCREMENTSelects increment.
MK_ACCESSIBILITY_ACTION_DECREMENTSelects decrement.
MK_ACCESSIBILITY_ACTION_EXPANDSelects expand.
MK_ACCESSIBILITY_ACTION_COLLAPSESelects collapse.
MK_ACCESSIBILITY_ACTION_SCROLLSelects scroll.

mk_accessibility_liveenum

Values for accessibility live.

ValueDescription
MK_ACCESSIBILITY_LIVE_OFFSelects off.
MK_ACCESSIBILITY_LIVE_POLITESelects polite.
MK_ACCESSIBILITY_LIVE_ASSERTIVESelects assertive.

mk_accessibility_roleenum

Values for accessibility role.

ValueDescription
MK_ACCESSIBILITY_ROLE_UNKNOWNSelects unknown.
MK_ACCESSIBILITY_ROLE_WINDOWSelects window.
MK_ACCESSIBILITY_ROLE_GROUPSelects group.
MK_ACCESSIBILITY_ROLE_BUTTONSelects button.
MK_ACCESSIBILITY_ROLE_CHECKBOXSelects checkbox.
MK_ACCESSIBILITY_ROLE_RADIOSelects radio.
MK_ACCESSIBILITY_ROLE_TEXTSelects text.
MK_ACCESSIBILITY_ROLE_TEXT_FIELDSelects text field.
MK_ACCESSIBILITY_ROLE_SLIDERSelects slider.
MK_ACCESSIBILITY_ROLE_IMAGESelects image.
MK_ACCESSIBILITY_ROLE_LINKSelects link.
MK_ACCESSIBILITY_ROLE_LISTSelects list.
MK_ACCESSIBILITY_ROLE_LIST_ITEMSelects list item.
MK_ACCESSIBILITY_ROLE_MENUSelects menu.
MK_ACCESSIBILITY_ROLE_MENU_ITEMSelects menu item.
MK_ACCESSIBILITY_ROLE_SCROLL_AREASelects scroll area.
MK_ACCESSIBILITY_ROLE_DIALOGSelects dialog.
MK_ACCESSIBILITY_ROLE_SWITCHSelects switch.
MK_ACCESSIBILITY_ROLE_PROGRESSSelects progress.
MK_ACCESSIBILITY_ROLE_SPIN_BUTTONSelects spin button.
MK_ACCESSIBILITY_ROLE_TAB_LISTSelects tab list.
MK_ACCESSIBILITY_ROLE_TABSelects tab.
MK_ACCESSIBILITY_ROLE_TAB_PANELSelects tab panel.

mk_accessibility_stateenum

Values for accessibility state.

ValueDescription
MK_ACCESSIBILITY_STATE_DISABLEDSelects disabled.
MK_ACCESSIBILITY_STATE_FOCUSEDSelects focused.
MK_ACCESSIBILITY_STATE_SELECTEDSelects selected.
MK_ACCESSIBILITY_STATE_CHECKEDSelects checked.
MK_ACCESSIBILITY_STATE_EXPANDEDSelects expanded.
MK_ACCESSIBILITY_STATE_HIDDENSelects hidden.
MK_ACCESSIBILITY_STATE_READ_ONLYSelects read only.

Typedefs

mk_accessibility_action_event_ttypedef

typedef struct mk_accessibility_action_event mk_accessibility_action_event_t

Data for accessibility action event.

mk_accessibility_action_fntypedef

typedef void(*) mk_accessibility_action_fn(const mk_accessibility_action_event_t *event, void *user_data)

Callback used for accessibility action.

mk_accessibility_action_ttypedef

typedef enum mk_accessibility_action mk_accessibility_action_t

Values for accessibility action.

mk_accessibility_live_ttypedef

typedef enum mk_accessibility_live mk_accessibility_live_t

Values for accessibility live.

mk_accessibility_node_ttypedef

typedef struct mk_accessibility_node mk_accessibility_node_t

Data for accessibility node.

mk_accessibility_role_ttypedef

typedef enum mk_accessibility_role mk_accessibility_role_t

Values for accessibility role.

mk_accessibility_snapshot_ttypedef

typedef struct mk_accessibility_snapshot mk_accessibility_snapshot_t

Data for accessibility snapshot.

mk_accessibility_state_ttypedef

typedef enum mk_accessibility_state mk_accessibility_state_t

Values for accessibility state.

mk_accessibility_window_desc_ttypedef

typedef struct mk_accessibility_window_desc mk_accessibility_window_desc_t

Data for accessibility window desc.

mk_accessibility_window_ttypedef

typedef struct mk_accessibility_window_s mk_accessibility_window_t

Type used for accessibility window.

Macros

MK_ACCESSIBILITY_ACTION_EVENT_VERSIONdefine

MK_ACCESSIBILITY_ACTION_EVENT_VERSION

ABI or format version for accessibility action event.

MK_ACCESSIBILITY_NODE_VERSIONdefine

MK_ACCESSIBILITY_NODE_VERSION

ABI or format version for accessibility node.

MK_ACCESSIBILITY_SNAPSHOT_VERSIONdefine

MK_ACCESSIBILITY_SNAPSHOT_VERSION

ABI or format version for accessibility snapshot.

MK_ACCESSIBILITY_WINDOW_DESC_VERSIONdefine

MK_ACCESSIBILITY_WINDOW_DESC_VERSION

ABI or format version for accessibility window desc.