pub struct SemanticNode<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> SemanticNode<'a>
impl<'a> SemanticNode<'a>
pub const VT_NODE_ID: VOffsetT = 4
pub const VT_ROLE: VOffsetT = 6
pub const VT_LABEL: VOffsetT = 8
pub const VT_LABELLED_BY: VOffsetT = 10
pub const VT_DESCRIBED_BY: VOffsetT = 12
pub const VT_CONTROLS: VOffsetT = 14
pub const VT_OWNED_BY: VOffsetT = 16
pub const VT_HEADING_LEVEL: VOffsetT = 18
pub const VT_TAB_INDEX: VOffsetT = 20
pub const VT_HIDDEN: VOffsetT = 22
pub const VT_ARIA_EXPANDED: VOffsetT = 24
pub const VT_ARIA_SELECTED: VOffsetT = 26
pub const VT_ARIA_CHECKED: VOffsetT = 28
pub const VT_ARIA_DISABLED: VOffsetT = 30
pub const VT_ARIA_REQUIRED: VOffsetT = 32
pub const VT_ARIA_INVALID: VOffsetT = 34
pub const VT_ARIA_VALUE_MIN: VOffsetT = 36
pub const VT_ARIA_VALUE_MAX: VOffsetT = 38
pub const VT_ARIA_VALUE_NOW: VOffsetT = 40
pub const VT_ARIA_VALUE_TEXT: VOffsetT = 42
pub const VT_CUSTOM_ARIA: VOffsetT = 44
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args SemanticNodeArgs<'args>, ) -> WIPOffset<SemanticNode<'bldr>>
pub fn node_id(&self) -> &'a str
Sourcepub fn role(&self) -> &'a str
pub fn role(&self) -> &'a str
ARIA role (e.g., “button”, “heading”, “navigation”, “main”). Validated against WAI-ARIA 1.2 role list by the validator.
Sourcepub fn label(&self) -> Option<&'a str>
pub fn label(&self) -> Option<&'a str>
Human-readable accessible label. For buttons/links: the text announced by screen readers. For images: the alt text equivalent. For headings: usually matches the visible text.
Sourcepub fn labelled_by(&self) -> Option<&'a str>
pub fn labelled_by(&self) -> Option<&'a str>
Reference to another node whose content labels this node (aria-labelledby).
Sourcepub fn described_by(&self) -> Option<&'a str>
pub fn described_by(&self) -> Option<&'a str>
Reference to a node providing extended description (aria-describedby).
Sourcepub fn controls(&self) -> Option<&'a str>
pub fn controls(&self) -> Option<&'a str>
Reference to a node this element controls (aria-controls).
Sourcepub fn owned_by(&self) -> Option<&'a str>
pub fn owned_by(&self) -> Option<&'a str>
Reference to a node that owns this element (aria-owns).
Sourcepub fn heading_level(&self) -> i8
pub fn heading_level(&self) -> i8
Heading level (1-6). Only valid when role = “heading”.
Sourcepub fn tab_index(&self) -> i32
pub fn tab_index(&self) -> i32
Tab index for keyboard focus order. -1 = focusable but not in tab order (programmatic focus only). 0 = focusable in natural tab order.
0 = explicit order (discouraged but supported).
Whether this element is currently hidden from the a11y tree.
Sourcepub fn aria_expanded(&self) -> i8
pub fn aria_expanded(&self) -> i8
ARIA states (set dynamically by state machines).
pub fn aria_selected(&self) -> i8
pub fn aria_checked(&self) -> i8
pub fn aria_disabled(&self) -> bool
pub fn aria_required(&self) -> bool
pub fn aria_invalid(&self) -> bool
Sourcepub fn aria_value_min(&self) -> f32
pub fn aria_value_min(&self) -> f32
For range widgets (slider, progressbar, spinbutton).
pub fn aria_value_max(&self) -> f32
pub fn aria_value_now(&self) -> f32
pub fn aria_value_text(&self) -> Option<&'a str>
Sourcepub fn custom_aria(&self) -> Option<Vector<'a, ForwardsUOffset<KeyValue<'a>>>>
pub fn custom_aria(&self) -> Option<Vector<'a, ForwardsUOffset<KeyValue<'a>>>>
Custom ARIA attributes (escape hatch for uncommon attributes).
Trait Implementations§
Source§impl<'a> Clone for SemanticNode<'a>
impl<'a> Clone for SemanticNode<'a>
Source§fn clone(&self) -> SemanticNode<'a>
fn clone(&self) -> SemanticNode<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SemanticNode<'_>
impl Debug for SemanticNode<'_>
Source§impl<'a> Follow<'a> for SemanticNode<'a>
impl<'a> Follow<'a> for SemanticNode<'a>
Source§impl<'a> PartialEq for SemanticNode<'a>
impl<'a> PartialEq for SemanticNode<'a>
Source§impl Verifiable for SemanticNode<'_>
impl Verifiable for SemanticNode<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
pos in the verifier’s buffer.
Should not need to be called directly.