pub struct Pick {Show 16 fields
pub id: String,
pub kind: String,
pub role: Option<String>,
pub label: Option<String>,
pub value: Option<String>,
pub description: Option<String>,
pub within: Option<String>,
pub sense: String,
pub enabled: bool,
pub focused: bool,
pub rect: [f32; 4],
pub layer: String,
pub viewport: ViewportId,
pub regions: Vec<Region>,
pub kit: Option<KitPart>,
pub how: String,
}Expand description
What the picker knows of a widget.
Fields§
§id: Stringegui’s id, in hexadecimal.
kind: Stringwidget, or container when nothing smaller registered a
rectangle there: what is painted inside is named by the container
holding it.
role: Option<String>The AccessKit role (Button, Label), when the widget has a
node.
label: Option<String>The accessible name.
value: Option<String>§description: Option<String>§within: Option<String>The nearest ancestor with a name, as Role "name".
sense: StringWhat it senses: click, drag, focusable, hover.
enabled: bool§focused: bool§rect: [f32; 4]Its rectangle in the window, in points: x, y, width, height.
layer: StringThe egui layer it is drawn on (Middle 1A2B).
viewport: ViewportId§regions: Vec<Region>The application’s parts around it, outermost first.
kit: Option<KitPart>The kit part that drew its box, if one was painted through a handler.
how: Stringpointer, keyboard or accesskit.
Trait Implementations§
impl StructuralPartialEq for Pick
Auto Trait Implementations§
impl Freeze for Pick
impl RefUnwindSafe for Pick
impl Send for Pick
impl Sync for Pick
impl Unpin for Pick
impl UnsafeUnpin for Pick
impl UnwindSafe for Pick
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
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