pub struct CalendarZoomCellConfig {
pub label: String,
pub is_selected: Signal<bool>,
pub is_hovered: Signal<bool>,
pub is_pressed: Signal<bool>,
pub cell_width: f32,
pub cell_height: f32,
}Expand description
Per-cell input to CalendarStyle::make_zoom_cell (used for both
MonthsGrid and YearsGrid cells).
Fields§
§label: StringMonth-name / year-number string. The recipe builds the
TextWidget itself so it can drive the text colour from
is_selected (Selected → OnAccent, otherwise Primary).
Month names ride in as LocalizedString from tr!(…)
converted via .into(); year numbers ride in as untranslated
literals.
is_selected: Signal<bool>true when this cell represents the visible-month’s month
(Months grid) or year (Years grid).
is_hovered: Signal<bool>Pointer-hover state (managed by the cell widget).
is_pressed: Signal<bool>Pointer-press state (managed by the cell widget).
cell_width: f32Cell footprint.
cell_height: f32Auto Trait Implementations§
impl !RefUnwindSafe for CalendarZoomCellConfig
impl !Send for CalendarZoomCellConfig
impl !Sync for CalendarZoomCellConfig
impl !UnwindSafe for CalendarZoomCellConfig
impl Freeze for CalendarZoomCellConfig
impl Unpin for CalendarZoomCellConfig
impl UnsafeUnpin for CalendarZoomCellConfig
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