pub struct RawAnnotation {Show 23 fields
pub source: AnnotationSource,
pub role: Option<Role>,
pub name: Option<String>,
pub description: Option<String>,
pub tooltip: Option<String>,
pub placeholder: Option<String>,
pub value: Option<RawValue>,
pub test_id: Option<String>,
pub rust_path: Option<String>,
pub kind: Option<Cow<'static, str>>,
pub props: BTreeMap<String, String>,
pub text_size: Option<f32>,
pub states: Vec<(StateName, StateValue)>,
pub level: Option<u16>,
pub position: Option<(u32, u32)>,
pub key: Option<RawKey>,
pub labelled_by: Vec<RawKey>,
pub label_for: Vec<RawKey>,
pub described_by: Vec<RawKey>,
pub controls: Vec<RawKey>,
pub owns: Vec<RawKey>,
pub carets: Vec<(usize, Point)>,
pub cursor_seen: Option<CursorSeen>,
}Expand description
Every annotation field as owned data. Unset fields are None or empty.
Fields§
§source: AnnotationSourceWhich code wrote it.
role: Option<Role>The role, when one was set.
name: Option<String>The accessible name.
description: Option<String>The description.
tooltip: Option<String>The tooltip text.
placeholder: Option<String>The placeholder of an editable role.
value: Option<RawValue>The value.
test_id: Option<String>The test id string.
rust_path: Option<String>The Rust path of a typed test id from its crate root, such as todo::Ids::NewItem.
None for a string id.
kind: Option<Cow<'static, str>>The kind, such as "iced_cube::tree". None means "app".
props: BTreeMap<String, String>Free-form properties.
text_size: Option<f32>The text size in logical pixels.
states: Vec<(StateName, StateValue)>Reported states.
level: Option<u16>The heading or tree level. ARIA levels start at 1.
position: Option<(u32, u32)>Position in the set and set size.
key: Option<RawKey>The key others use to name this node.
labelled_by: Vec<RawKey>Nodes whose names label this one.
label_for: Vec<RawKey>Nodes this one labels.
described_by: Vec<RawKey>Nodes whose text describes this one.
controls: Vec<RawKey>Nodes this one controls.
owns: Vec<RawKey>Nodes that are this one’s logical children although they live elsewhere.
carets: Vec<(usize, Point)>Byte offset to caret top, sorted by offset.
cursor_seen: Option<CursorSeen>The cursor kind handed to the widget for its last mouse event this frame.