pub struct CenterCap {
pub radius: f32,
pub color: Color,
}Expand description
Filled circular cap at the face center, drawn on top of the hands to hide the small visual gap where the three hand pivots meet. Static after first paint; the same union-expansion pass that protects tick marks ensures pristine restore covers the cap before any blend.
Fields§
§radius: f32Cap radius as a fraction of face radius (typical 0.03..=0.06).
color: ColorCap color (alpha modulated by AA coverage at edges).
Implementations§
Trait Implementations§
Source§impl ClockLayer for CenterCap
impl ClockLayer for CenterCap
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 CenterCap
impl RefUnwindSafe for CenterCap
impl Send for CenterCap
impl Sync for CenterCap
impl Unpin for CenterCap
impl UnsafeUnpin for CenterCap
impl UnwindSafe for CenterCap
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