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