Struct egui::context::RequestRepaintInfo
source · pub struct RequestRepaintInfo {
pub after: Duration,
pub current_frame_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§
§after: Duration
Repaint after this duration. If zero, repaint as soon as possible.
current_frame_nr: u64
The current frame number.
This can be compared to Context::frame_nr
to see if we’ve already
triggered the painting of the next frame.
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 more