Struct egui::RequestRepaintInfo
source · pub struct RequestRepaintInfo {
pub viewport_id: ViewportId,
pub delay: 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§
§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_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 moresource§impl Debug for RequestRepaintInfo
impl Debug for RequestRepaintInfo
impl Copy for RequestRepaintInfo
Auto Trait Implementations§
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