Skip to main content

Semantics

Struct Semantics 

Source
pub struct Semantics {
Show 66 fields pub environment: Option<Environment>, pub focus_scope: Option<FocusScopeConfig>, pub clipboard: Option<ClipboardText>, pub sort: Option<SortDirection>, pub input_edit: Option<InputEditCapture>, pub translation: Option<TranslationMotion>, pub input_assist: Option<InputAssist>, pub placeholder: Option<String>, pub collapse: Option<CollapseConfig>, pub presence: Option<Box<PresenceConfig>>, pub drag_capture: Option<DragCapture>, pub swipe_capture: Option<SwipeCapture>, pub context_menu: Option<ContextEditPolicy>, pub tags_input: Option<TagSeparators>, pub progress: Option<ProgressValue>, pub splitter: Option<RangeValue>, pub slider: Option<SliderValue>, pub spinbutton: Option<SpinValue>, pub scroll_keyboard: Option<ScrollAxes>, pub busy: Option<bool>, pub current: Option<Current>, pub separator_axis: Option<Orientation>, pub link_open: Option<LinkOpen>, pub link_request: bool, pub document_part: Option<DocumentPart>, pub table: Option<TableMetadata>, pub form_action: Option<FormAction>, pub form_control: Option<FormControl>, pub field_part: Option<FieldPart>, pub label_for: Option<SemanticId>, pub error_message: Option<SemanticId>, pub required: bool, pub readonly: bool, pub invalid: bool, pub id: Option<SemanticId>, pub controls: Option<SemanticId>, pub labelled_by: Option<SemanticId>, pub described_by: Option<SemanticId>, pub popup: Option<PopupKind>, pub combobox: Option<ComboboxKind>, pub option: Option<OptionSemantics>, pub active_descendant: Option<SemanticId>, pub listbox_multiple: bool, pub menu_item: Option<MenuItemSemantics>, pub menu_search: Option<SemanticId>, pub menubar_item: bool, pub layer: Option<Layer>, pub sheet_grip: bool, pub expanded: Option<bool>, pub selected: Option<bool>, pub pressed: Option<bool>, pub tab: bool, pub disabled: bool, pub hidden: bool, pub inert: bool, pub navigation: Option<Orientation>, pub grid_navigation: Option<Direction>, pub grid_multiple: bool, pub tree_navigation: Option<TreeNavigation>, pub tree_item: Option<TreeItem>, pub tree_checked: Option<TreeCheckState>, pub navigation_item: bool, pub navigation_panel: Option<NavigationPanel>, pub check_group: Option<SemanticId>, pub navigation_direction: Direction, pub typeahead: bool,
}
Expand description

Optional and finite: ordinary nodes allocate none of this metadata. Named relations may refer forward or to an unmounted target; adapters resolve only live names in their document. Removing a target retains no owning reference.

Fields§

§environment: Option<Environment>

Explicit inherited text direction/language on an ordinary boxed View.

§focus_scope: Option<FocusScopeConfig>

A focus-only boundary. It has no role, top-layer paint or inert backdrop.

§clipboard: Option<ClipboardText>

Nonphysical source read from the accepted semantic tree only when a typed clipboard action is admitted. It is not duplicated into HTML.

§sort: Option<SortDirection>

Present only on a structural column header; actions remain intrinsic buttons.

§input_edit: Option<InputEditCapture>

Replace ordinary host ValueChanged with one bounded post-edit path.

§translation: Option<TranslationMotion>

Finite paint-only motion on an inert, independently boxed View.

§input_assist: Option<InputAssist>

Finite single-line input hints; no automatic code or credential retrieval.

§placeholder: Option<String>

Optional bounded presentation hint on Input, never its accessible name, stored value, default value or composition state.

§collapse: Option<CollapseConfig>

Optional intrinsic-height presentation with immediate logical hiding.

§presence: Option<Box<PresenceConfig>>

Optional finite opacity/transform presence; logical availability is immediate.

§drag_capture: Option<DragCapture>

Immediate primary-pointer capture, in viewport CSS pixels.

§swipe_capture: Option<SwipeCapture>

Axis intent capture preserves orthogonal native panning.

§context_menu: Option<ContextEditPolicy>

An explicit context region. Touch long-press remains host-native.

§tags_input: Option<TagSeparators>

Opted-in free tag entry policy; retains the Input’s intrinsic textbox.

§progress: Option<ProgressValue>§splitter: Option<RangeValue>§slider: Option<SliderValue>§spinbutton: Option<SpinValue>§scroll_keyboard: Option<ScrollAxes>

Opt-in keyboard commands only while this viewport itself owns focus.

§busy: Option<bool>

An application-owned pending state on a boxed semantic node.

§current: Option<Current>§separator_axis: Option<Orientation>§link_open: Option<LinkOpen>§link_request: bool

Capture activation as an application request before default navigation.

§document_part: Option<DocumentPart>§table: Option<TableMetadata>§form_action: Option<FormAction>§form_control: Option<FormControl>§field_part: Option<FieldPart>§label_for: Option<SemanticId>§error_message: Option<SemanticId>§required: bool§readonly: bool§invalid: bool§id: Option<SemanticId>§controls: Option<SemanticId>§labelled_by: Option<SemanticId>§described_by: Option<SemanticId>§popup: Option<PopupKind>§combobox: Option<ComboboxKind>§option: Option<OptionSemantics>§active_descendant: Option<SemanticId>§listbox_multiple: bool§menu_item: Option<MenuItemSemantics>§menu_search: Option<SemanticId>

Single-line search editor controlling its nearest named Menu. Matching, highlight and activation remain owned by the component.

§menubar_item: bool

An intrinsic action trigger belonging to a structural Menubar.

§layer: Option<Layer>§sheet_grip: bool

Passive grip hit area; the nearest live sheet owns pointer gestures.

§expanded: Option<bool>§selected: Option<bool>§pressed: Option<bool>

A toggle button’s application-owned state; independent from disclosure.

§tab: bool

Refine a Button’s intrinsic interaction to a tab, retaining activation.

§disabled: bool

Keep a control focusable, while suppressing activation (e.g. the sole expanded header in an accordion that cannot collapse completely).

§hidden: bool

Hide a View subtree without destroying its state or removing its names.

§inert: bool

Retain a View’s content and layout while suppressing subtree interaction and accessibility exposure. This is not a scroll lock or a modal scope.

§navigation: Option<Orientation>

Explicit collection boundary, independent of virtual-list navigation.

§grid_navigation: Option<Direction>

A two-dimensional physical Button navigation boundary, independent of the linear collection navigation protocol.

§grid_multiple: bool

A Grid that permits more than one selected cell.

§tree_navigation: Option<TreeNavigation>§tree_item: Option<TreeItem>§tree_checked: Option<TreeCheckState>

A checkable tree item, independent from list selection and Check props.

§navigation_item: bool§navigation_panel: Option<NavigationPanel>§check_group: Option<SemanticId>

Native radio association; not an accessible name or a submission value. HTML uses the same attribute for native grouping and successful names.

§navigation_direction: Direction§typeahead: bool

Opt in to bounded character search on the collection’s mounted members.

Trait Implementations§

Source§

impl Clone for Semantics

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Semantics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Semantics

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Semantics

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Semantics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.