RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_a11y_text_range_t Struct Reference

UTF-8 byte offsets, never codepoint or UTF-16 indices. More...

#include <a11y.h>

Data Fields

const char * text
size_t length
size_t caret
size_t selection_start
size_t selection_end
size_t line_count
rmgui_rect_t caret_rect

Detailed Description

UTF-8 byte offsets, never codepoint or UTF-16 indices.

caret_rect is empty when the caret is outside the visible layout. Borrowed text lasts until the field is edited; line_count includes a trailing empty newline row.

Field Documentation

◆ text

const char* rmgui_a11y_text_range_t::text

◆ length

size_t rmgui_a11y_text_range_t::length

◆ caret

size_t rmgui_a11y_text_range_t::caret

◆ selection_start

size_t rmgui_a11y_text_range_t::selection_start

◆ selection_end

size_t rmgui_a11y_text_range_t::selection_end

◆ line_count

size_t rmgui_a11y_text_range_t::line_count

◆ caret_rect

rmgui_rect_t rmgui_a11y_text_range_t::caret_rect

The documentation for this struct was generated from the following file: