pub struct Node {Show 17 fields
pub key: u64,
pub ref_n: u32,
pub id: Option<String>,
pub role: &'static str,
pub name: String,
pub value: Option<String>,
pub enabled: bool,
pub focused: bool,
pub selected: Option<bool>,
pub checked: Option<bool>,
pub visible: bool,
pub rect: Rect,
pub interactive: bool,
pub egui: Option<u64>,
pub parent: Option<usize>,
pub children: Vec<usize>,
pub depth: usize,
/* private fields */
}Expand description
One element.
Fields§
§key: u64What the ref is keyed by: the egui Id value, or a hash of the automation id.
ref_n: u32e<n>.
id: Option<String>The ashlar automation id, when the element registered one.
role: &'static str§name: String§value: Option<String>§enabled: bool§focused: bool§selected: Option<bool>§checked: Option<bool>§visible: boolSome part of it is on screen.
rect: RectThe on-screen part, in points (the whole bounds when nothing is visible).
interactive: boolClickable, focusable or an input role.
egui: Option<u64>The egui widget (its Id value), for AccessKit actions.
parent: Option<usize>§children: Vec<usize>§depth: usizeImplementations§
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more