pub struct ElementInfo {
pub id: NodeId,
pub name: String,
pub reference: String,
pub kind: &'static str,
pub text: String,
pub rect: [i32; 4],
pub enabled: bool,
pub checked: Option<bool>,
pub value: Option<f32>,
}Expand description
What a query reports about one element.
Fields§
§id: NodeIdThe element.
name: StringIts name in its resource.
reference: StringThe resource it was made from.
kind: &'static strIts kind (Ui::kind_name).
text: StringIts text, or its label’s text for a button; empty when it has none.
rect: [i32; 4]Its rectangle after the last layout: left, top, right, bottom.
enabled: boolWhether it can be used (enabled and not locked).
checked: Option<bool>For a check box: whether it is checked.
value: Option<f32>For a slider, scroll bar or progress bar: its value.
Trait Implementations§
Source§impl Clone for ElementInfo
impl Clone for ElementInfo
Source§fn clone(&self) -> ElementInfo
fn clone(&self) -> ElementInfo
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 ElementInfo
impl Debug for ElementInfo
Source§impl PartialEq for ElementInfo
impl PartialEq for ElementInfo
impl StructuralPartialEq for ElementInfo
Auto Trait Implementations§
impl Freeze for ElementInfo
impl RefUnwindSafe for ElementInfo
impl Send for ElementInfo
impl Sync for ElementInfo
impl Unpin for ElementInfo
impl UnsafeUnpin for ElementInfo
impl UnwindSafe for ElementInfo
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