pub struct SubsecondDot {
pub orbit_radius: f32,
pub dot_radius: f32,
pub color: Color,
}Expand description
Sub-second indicator: a small disc orbiting the face center at the sub-second fractional rate. Completes one full orbit per wall-clock second, giving visible per-frame motion at 30 Hz / 60 Hz tick rates — useful for confirming the driver is delivering target times to the widget on time, and for visualising end-to-end render pipeline latency.
Fields§
§orbit_radius: f32Orbit radius as a fraction of face radius (typical 0.4..=0.7).
dot_radius: f32Dot radius as a fraction of face radius (typical 0.015..=0.04).
color: ColorDot color (alpha modulated by AA coverage at edges).
Implementations§
Trait Implementations§
Source§impl ClockLayer for SubsecondDot
impl ClockLayer for SubsecondDot
Source§fn bbox(&self, state: &ClockState, bounds: Rect) -> Rect
fn bbox(&self, state: &ClockState, bounds: Rect) -> Rect
Pixels this layer might write at
state, in absolute framebuffer
coordinates. Used for cross-layer dirty union math.Source§fn dirty(
&self,
prev: Option<&ClockState>,
state: &ClockState,
bounds: Rect,
) -> Rect
fn dirty( &self, prev: Option<&ClockState>, state: &ClockState, bounds: Rect, ) -> Rect
Self-induced dirty between
prev and state. An empty rect means
“I have not changed”; the compositor will still call paint if
another layer’s dirty rect intersects this layer’s bbox.Auto Trait Implementations§
impl Freeze for SubsecondDot
impl RefUnwindSafe for SubsecondDot
impl Send for SubsecondDot
impl Sync for SubsecondDot
impl Unpin for SubsecondDot
impl UnsafeUnpin for SubsecondDot
impl UnwindSafe for SubsecondDot
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