Struct egui::containers::resize::State
source · pub(crate) struct State {
pub(crate) desired_size: Vec2,
last_content_size: Vec2,
pub(crate) requested_size: Option<Vec2>,
}
Fields§
§desired_size: Vec2
This is the size that the user has picked by dragging the resize handles. This may be smaller and/or larger than the actual size. For instance, the user may have tried to shrink too much (not fitting the contents). Or the user requested a large area, but the content don’t need that much space.
last_content_size: Vec2
Actual size of content last frame
requested_size: Option<Vec2>
Externally requested size (e.g. by Window) for the next frame
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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