pub enum FrameOutcome {
Unchanged,
Dirty,
RepaintCanvas3D,
}Expand description
Outcome returned by a periodic application frame callback.
Returning FrameOutcome::Dirty marks the runtime dirty so the root view
function is re-invoked and the window is repainted. Returning
FrameOutcome::Unchanged skips rebuild, layout, compile, and paint.
Variants§
Unchanged
Dirty
Re-invokes the root view closure, relayouts, and repaints the full frame.
RepaintCanvas3D
Marks retained Canvas3D viewports dirty so 3D scenes repaint without
rebuilding the DOM tree or UI layout caches.
Implementations§
Source§impl FrameOutcome
impl FrameOutcome
Sourcepub fn is_dirty(self) -> bool
pub fn is_dirty(self) -> bool
Returns true when the callback modified application state and needs a full UI rebuild.
Sourcepub fn is_canvas3d_dirty(self) -> bool
pub fn is_canvas3d_dirty(self) -> bool
Returns true when only retained 3D viewports need repainting.
Sourcepub fn needs_any_repaint(self) -> bool
pub fn needs_any_repaint(self) -> bool
Returns true when either a full rebuild or a Canvas3D-only repaint is requested.
Trait Implementations§
Source§impl Clone for FrameOutcome
impl Clone for FrameOutcome
impl Copy for FrameOutcome
Source§impl Debug for FrameOutcome
impl Debug for FrameOutcome
Source§impl Default for FrameOutcome
impl Default for FrameOutcome
impl Eq for FrameOutcome
Source§impl PartialEq for FrameOutcome
impl PartialEq for FrameOutcome
impl StructuralPartialEq for FrameOutcome
Auto Trait Implementations§
impl Forget for FrameOutcome
impl Freeze for FrameOutcome
impl Move for FrameOutcome
impl RefUnwindSafe for FrameOutcome
impl Send for FrameOutcome
impl Sync for FrameOutcome
impl Unpin for FrameOutcome
impl UnsafeUnpin for FrameOutcome
impl UnwindSafe for FrameOutcome
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.