#[non_exhaustive]pub struct SemAx {Show 14 fields
pub id: u64,
pub parent: u64,
pub name: Option<String>,
pub desc: Option<String>,
pub url: Option<String>,
pub value_text: Option<String>,
pub states: u32,
pub set: [u32; 2],
pub level: u32,
pub cell: [u32; 4],
pub grid: [u32; 2],
pub live: u32,
pub range: Option<[f64; 4]>,
pub sel: Option<[u32; 2]>,
}Expand description
What a semantic record says beyond its kind, label and value (Sem::ax): its setters fill it
(ui.sem_rect(..).id64(7).parent(3).desc("..")); a web page’s accessibility tree needs it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u64the record’s own id (below 2^62): a screen reader’s requests for it come back with it (ui.a11y_request_take); 0: none
parent: u64the record it hangs under in the accessibility tree: one with this id64 (or, without one, this widget id) published in the same frame and window; 0: by its rectangle
name: Option<String>its name when the label is something else (a text box’s or drop-down’s label is its text)
desc: Option<String>a description beside the name (a hint, a page’s aria-describedby)
url: Option<String>a link’s address
value_text: Option<String>the text a screen reader says for a value (a slider’s “Monday”, a page’s aria-valuetext)
states: u32AS_*
set: [u32; 2]its position in its set (1-based) and the set’s size (0: unknown)
level: u32the level of a heading, tree item, list item or row (1 the top; 0: none / the value)
cell: [u32; 4]a cell’s row, column (0-based), row span, column span (spans 0: no place)
grid: [u32; 2]a table’s rows and columns (0: unknown)
live: u32LIVE_* (0: as its kind says)
range: Option<[f64; 4]>value, minimum, maximum, step with fractions (a meter at 0.4 of 1); None: Sem::value / min / max
sel: Option<[u32; 2]>a focused text box’s selection: anchor, caret in characters (a page’s field; the built-in boxes report theirs themselves)