Struct egui::RequestRepaintInfo
source · pub struct RequestRepaintInfo {
pub viewport_id: ViewportId,
pub delay: Duration,
pub current_cumulative_pass_nr: u64,
}
Expand description
Information given to the backend about when it is time to repaint the ui.
This is given in the callback set by Context::set_request_repaint_callback
.
Fields§
§viewport_id: ViewportId
This is used to specify what viewport that should repaint.
delay: Duration
Repaint after this duration. If zero, repaint as soon as possible.
current_cumulative_pass_nr: u64
The number of fully completed passes, of the entire lifetime of the Context
.
This can be compared to Context::cumulative_pass_nr
to see if we we still
need another repaint (ui pass / frame), or if one has already happened.
Trait Implementations§
source§impl Clone for RequestRepaintInfo
impl Clone for RequestRepaintInfo
source§fn clone(&self) -> RequestRepaintInfo
fn clone(&self) -> RequestRepaintInfo
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 Debug for RequestRepaintInfo
impl Debug for RequestRepaintInfo
impl Copy for RequestRepaintInfo
Auto Trait Implementations§
impl Freeze for RequestRepaintInfo
impl RefUnwindSafe for RequestRepaintInfo
impl Send for RequestRepaintInfo
impl Sync for RequestRepaintInfo
impl Unpin for RequestRepaintInfo
impl UnwindSafe for RequestRepaintInfo
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)