Type | Description |
|---|---|
Role | Accessibility role enum: Button, Text, TextInput, Image, Checkbox, Switch, Dialog, Slider, Input, List, ListItem, Generic. |
Semantics | Full semantic metadata for a node -- role, label, value, focusability, drag-and-drop flags, scroll flags, toggle state, input mask, focus scope/barrier, and more. |
ActionSet | A collection of ActionEntry values that map ActionTrigger gestures (tap, drag, hover, focus, change, etc.) to action IDs dispatched by the event system. |
use fission_semantics::{Role, Semantics, ActionSet};
let sem = Semantics {
role: Role::Button,
label: Some("Save".into()),
focusable: true,
..Semantics::default()
};
assert_eq!(sem.role, Role::Button);
assert!(!sem.disabled);
Type | Description |
|---|---|
Role | Accessibility role enum: Button, Text, TextInput, Image, Checkbox, Switch, Dialog, Slider, Input, List, ListItem, Generic. |
Semantics | Full semantic metadata for a node -- role, label, value, focusability, drag-and-drop flags, scroll flags, toggle state, input mask, focus scope/barrier, and more. |
ActionSet | A collection of ActionEntry values that map ActionTrigger gestures (tap, drag, hover, focus, change, etc.) to action IDs dispatched by the event system. |
use fission_semantics::{Role, Semantics, ActionSet};
let sem = Semantics {
role: Role::Button,
label: Some("Save".into()),
focusable: true,
..Semantics::default()
};
assert_eq!(sem.role, Role::Button);
assert!(!sem.disabled);