Struct egui::containers::area::Prepared
source · pub(crate) struct Prepared {
kind: UiKind,
layer_id: LayerId,
state: AreaState,
move_response: Response,
enabled: bool,
constrain: bool,
constrain_rect: Rect,
sizing_pass: bool,
fade_in: bool,
}
Fields§
§kind: UiKind
§layer_id: LayerId
§state: AreaState
§move_response: Response
§enabled: bool
§constrain: bool
§constrain_rect: Rect
§sizing_pass: bool
We always make windows invisible the first frame to hide “first-frame-jitters”.
This is so that we use the first frame to calculate the window size, and then can correctly position the window and its contents the next frame, without having one frame where the window is wrongly positioned or sized.
fade_in: bool
Implementations§
source§impl Prepared
impl Prepared
pub(crate) fn state(&self) -> &AreaState
pub(crate) fn state_mut(&mut self) -> &mut AreaState
pub(crate) fn constrain(&self) -> bool
pub(crate) fn constrain_rect(&self) -> Rect
pub(crate) fn content_ui(&self, ctx: &Context) -> Ui
pub(crate) fn with_widget_info(&self, make_info: impl Fn() -> WidgetInfo)
pub(crate) fn id(&self) -> Id
pub(crate) fn end(self, ctx: &Context, content_ui: Ui) -> Response
Auto Trait Implementations§
impl Freeze for Prepared
impl !RefUnwindSafe for Prepared
impl Send for Prepared
impl Sync for Prepared
impl Unpin for Prepared
impl !UnwindSafe for Prepared
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