pub struct SemanticsNode {Show 14 fields
pub id: WidgetId,
pub parent: Option<WidgetId>,
pub role: SemanticsRole,
pub name: Option<String>,
pub description: Option<String>,
pub value: Option<SemanticsValue>,
pub numeric_step: Option<f64>,
pub state: SemanticsState,
pub actions: Vec<SemanticsAction>,
pub editable_text: Option<EditableTextSemantics>,
pub relations: SemanticsRelations,
pub popup: Option<SemanticsPopupKind>,
pub live_region: Option<SemanticsLiveRegion>,
pub bounds: Rect,
}Fields§
§id: WidgetId§parent: Option<WidgetId>§role: SemanticsRole§name: Option<String>§description: Option<String>§value: Option<SemanticsValue>§numeric_step: Option<f64>Smallest meaningful numeric adjustment for range-style controls.
None means the control does not expose a numeric step.
state: SemanticsState§actions: Vec<SemanticsAction>§editable_text: Option<EditableTextSemantics>§relations: SemanticsRelations§popup: Option<SemanticsPopupKind>§live_region: Option<SemanticsLiveRegion>§bounds: RectImplementations§
Source§impl SemanticsNode
impl SemanticsNode
pub fn new(id: WidgetId, role: SemanticsRole, bounds: Rect) -> Self
Trait Implementations§
Source§impl Clone for SemanticsNode
impl Clone for SemanticsNode
Source§impl Debug for SemanticsNode
impl Debug for SemanticsNode
Source§impl PartialEq for SemanticsNode
impl PartialEq for SemanticsNode
impl StructuralPartialEq for SemanticsNode
Auto Trait Implementations§
impl Forget for SemanticsNode
impl Freeze for SemanticsNode
impl Move for SemanticsNode
impl RefUnwindSafe for SemanticsNode
impl Send for SemanticsNode
impl Sync for SemanticsNode
impl Unpin for SemanticsNode
impl UnsafeUnpin for SemanticsNode
impl UnwindSafe for SemanticsNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more