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) -> SemanticsNode
Trait Implementations§
Source§impl Clone for SemanticsNode
impl Clone for SemanticsNode
Source§fn clone(&self) -> SemanticsNode
fn clone(&self) -> SemanticsNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.