pub struct Semantics {
pub role: String,
pub label: Option<String>,
pub presents: Option<String>,
pub attaches: bool,
pub not_in_gallery: Option<String>,
}Expand description
How assistive technology and tests see a component.
Fields§
§role: StringThe accessibility role, as accesskit names it.
label: Option<String>The prop that names the component to assistive technology, when one does.
presents: Option<String>The prop holding the resource the component presents, when it presents one.
attaches: boolThe component draws nothing: it gives the view it stands in something to do (a context menu, a toolbar on hover, a swipe). Wherever a view’s body puts it, it belongs to that view; a layout runs the menu a view places in it, and a list item holds its row’s.
not_in_gallery: Option<String>Why the gallery cannot show it (#[component(not_in_gallery = "…")] at the component’s
declaration): a component that only means something in a live session, such as a place’s
window well, is left out by its own declaration rather than by a name list in a check.
None when the gallery can show it.