Struct egui::context::ViewportRepaintInfo
source · struct ViewportRepaintInfo {
cumulative_pass_nr: u64,
repaint_delay: Duration,
outstanding: u8,
causes: Vec<RepaintCause>,
prev_causes: Vec<RepaintCause>,
prev_pass_paint_delay: Duration,
}
Expand description
Per-viewport state related to repaint scheduling.
Fields§
§cumulative_pass_nr: u64
Monotonically increasing counter.
repaint_delay: Duration
The duration which the backend will poll for new events before forcing another egui update, even if there’s no new events.
Also used to suppress multiple calls to the repaint callback during the same pass.
This is also returned in crate::ViewportOutput
.
outstanding: u8
While positive, keep requesting repaints. Decrement at the start of each pass.
causes: Vec<RepaintCause>
What caused repaints during this pass?
prev_causes: Vec<RepaintCause>
What triggered a repaint the previous pass? (i.e: why are we updating now?)
prev_pass_paint_delay: Duration
What was the output of repaint_delay
on the previous pass?
If this was zero, we are repainting as quickly as possible (as far as we know).
Implementations§
source§impl ViewportRepaintInfo
impl ViewportRepaintInfo
pub fn requested_immediate_repaint_prev_pass(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ViewportRepaintInfo
impl RefUnwindSafe for ViewportRepaintInfo
impl Send for ViewportRepaintInfo
impl Sync for ViewportRepaintInfo
impl Unpin for ViewportRepaintInfo
impl UnwindSafe for ViewportRepaintInfo
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