pub enum FrameTrigger {
Other,
Initial,
Resize,
Pointer,
Keyboard,
Animation,
ShaderPaint,
Periodic,
}Expand description
Why the current frame is being built. Hosts set this before each
request_redraw so apps that surface a diagnostic overlay can show
what kind of input is driving the redraw cadence.
Other is the conservative default: it covers redraws the host
can’t attribute (idle redraws driven by external request_redraw
callers, the initial paint, etc.). Specific variants narrow the
reason when the host can.
Variants§
Other
Host can’t attribute the redraw to a specific cause.
Initial
Initial paint after surface configuration.
Resize
Surface resize / DPI change.
Pointer
Pointer move, button, or wheel.
Keyboard
Keyboard / IME input.
Animation
Inside-out animation deadline elapsed (one of the visible
widgets asked for a future frame via redraw_within, or a
visual animation is still settling). Drives the layout-path
(full rebuild + prepare).
ShaderPaint
Time-driven shader deadline elapsed (e.g. stock spinner /
skeleton / progress-indeterminate, or a custom shader
registered with samples_time=true). Drives the paint-only
path: frame.time advances but layout state is unchanged.
Periodic
Periodic host-config cadence (HostConfig::redraw_interval).
Implementations§
Trait Implementations§
Source§impl Clone for FrameTrigger
impl Clone for FrameTrigger
Source§fn clone(&self) -> FrameTrigger
fn clone(&self) -> FrameTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FrameTrigger
impl Debug for FrameTrigger
Source§impl Default for FrameTrigger
impl Default for FrameTrigger
Source§fn default() -> FrameTrigger
fn default() -> FrameTrigger
Source§impl PartialEq for FrameTrigger
impl PartialEq for FrameTrigger
Source§fn eq(&self, other: &FrameTrigger) -> bool
fn eq(&self, other: &FrameTrigger) -> bool
self and other values to be equal, and is used by ==.impl Copy for FrameTrigger
impl Eq for FrameTrigger
impl StructuralPartialEq for FrameTrigger
Auto Trait Implementations§
impl Freeze for FrameTrigger
impl RefUnwindSafe for FrameTrigger
impl Send for FrameTrigger
impl Sync for FrameTrigger
impl Unpin for FrameTrigger
impl UnsafeUnpin for FrameTrigger
impl UnwindSafe for FrameTrigger
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.