Struct egui::WidgetRects
source · pub struct WidgetRects {
pub by_layer: HashMap<LayerId, Vec<WidgetRect>>,
}
Expand description
Stores the positions of all widgets generated during a single egui update/frame.
Actually, only those that are on screen.
Fields§
§by_layer: HashMap<LayerId, Vec<WidgetRect>>
All widgets, in painting order.
Implementations§
source§impl WidgetRects
impl WidgetRects
Trait Implementations§
source§impl Clone for WidgetRects
impl Clone for WidgetRects
source§fn clone(&self) -> WidgetRects
fn clone(&self) -> WidgetRects
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for WidgetRects
impl Default for WidgetRects
source§fn default() -> WidgetRects
fn default() -> WidgetRects
Returns the “default value” for a type. Read more
source§impl PartialEq for WidgetRects
impl PartialEq for WidgetRects
source§fn eq(&self, other: &WidgetRects) -> bool
fn eq(&self, other: &WidgetRects) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WidgetRects
impl StructuralEq for WidgetRects
impl StructuralPartialEq for WidgetRects
Auto Trait Implementations§
impl RefUnwindSafe for WidgetRects
impl Send for WidgetRects
impl Sync for WidgetRects
impl Unpin for WidgetRects
impl UnwindSafe for WidgetRects
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