pub struct SemanticsDetails {Show 31 fields
pub state_description: Option<String>,
pub on_click_label: Option<String>,
pub on_long_click: Option<SemanticsLongClick>,
pub on_long_click_label: Option<String>,
pub on_magic_tap: Option<SemanticsMagicTap>,
pub on_magic_tap_label: Option<String>,
pub input_labels: Vec<String>,
pub language: Option<String>,
pub custom_actions: Vec<SemanticsCustomAction>,
pub canvas_children: Vec<CanvasSemanticsNode>,
pub editable_text: bool,
pub multiline: bool,
pub is_modal: bool,
pub selectable_group: bool,
pub pane_title: Option<String>,
pub error: Option<String>,
pub password: bool,
pub text_selection: Option<TextRange>,
pub live_region: Option<LiveRegionMode>,
pub progress: Option<ProgressBarRangeInfo>,
pub set_progress: Option<SemanticsSetProgress>,
pub set_text: Option<SemanticsSetText>,
pub set_selection: Option<SemanticsSetSelection>,
pub expand: Option<SemanticsExpand>,
pub collapse: Option<SemanticsExpand>,
pub dismiss: Option<SemanticsDismiss>,
pub vertical_scroll: Option<ScrollAxisRange>,
pub horizontal_scroll: Option<ScrollAxisRange>,
pub scroll_by: Option<SemanticsScrollBy>,
pub scroll_to_index: Option<SemanticsScrollToIndex>,
pub collection: Option<CollectionInfo>,
}Expand description
What a semantics node reports beyond its place, its name, its value and its click: the properties few nodes set. A node holds them only when it sets one, so a node without any stays small.
Fields§
§state_description: Option<String>What the control says about itself after its name.
on_click_label: Option<String>What activating the control does, as a verb phrase a reader reads out.
on_long_click: Option<SemanticsLongClick>What this control does when a screen reader asks for its long press.
on_long_click_label: Option<String>What the long press does, as a verb phrase a reader reads out.
on_magic_tap: Option<SemanticsMagicTap>What this control does on VoiceOver’s magic tap.
on_magic_tap_label: Option<String>What the magic tap does, as a verb phrase a reader reads out.
input_labels: Vec<String>The short names a person says to Voice Control to reach this control.
language: Option<String>The language of this control’s text, as a BCP 47 tag.
custom_actions: Vec<SemanticsCustomAction>The actions a screen reader lists for the control beyond its click.
canvas_children: Vec<CanvasSemanticsNode>Controls this node drew rather than laid out; their bounds are relative
to this node’s own top-left. See CanvasSemanticsNode.
editable_text: boolWhether this node is a field a person types into.
multiline: boolWhether an editable field accepts line breaks, independent of its current text.
is_modal: boolWhether this subtree makes content outside it unavailable to assistive technology.
selectable_group: boolWhether the selectable controls under this node form one group.
pane_title: Option<String>The title of the screen or pane this node is the root of.
error: Option<String>Why the control’s content is wrong, when it is.
password: boolWhether this field holds a secret, so its text stays unspoken.
text_selection: Option<TextRange>Where the caret of an editable field sits, or which stretch of its text is picked.
live_region: Option<LiveRegionMode>How urgently a screen reader reads this node when its text changes.
Compose’s SemanticsProperties.LiveRegion.
progress: Option<ProgressBarRangeInfo>The value this control holds inside a range. Compose’s
ProgressBarRangeInfo.
set_progress: Option<SemanticsSetProgress>What this control does when a screen reader moves its value.
set_text: Option<SemanticsSetText>What this field does when a screen reader hands it text.
set_selection: Option<SemanticsSetSelection>What this field does when a screen reader moves its caret or picks a stretch of its text.
expand: Option<SemanticsExpand>What this control does when a screen reader asks it to open.
collapse: Option<SemanticsExpand>What this control does when a screen reader asks it to close.
dismiss: Option<SemanticsDismiss>What this control does when a screen reader asks to send it away.
vertical_scroll: Option<ScrollAxisRange>How far this container scrolled up and down, when it scrolls.
horizontal_scroll: Option<ScrollAxisRange>How far this container scrolled left and right, when it scrolls.
scroll_by: Option<SemanticsScrollBy>What this container does when a screen reader pages it.
scroll_to_index: Option<SemanticsScrollToIndex>What this list does when a screen reader asks for the row at an index.
collection: Option<CollectionInfo>How many rows and columns this list holds, when it is a list.