Struct rat_widget::calendar::Month
source · pub struct Month<'a> { /* private fields */ }Expand description
Renders a month.
Implementations§
source§impl<'a> Month<'a>
impl<'a> Month<'a>
pub fn new() -> Self
sourcepub fn date(self, s: NaiveDate) -> Self
pub fn date(self, s: NaiveDate) -> Self
Sets the starting date. This can be any date of the month.
sourcepub fn day_selection(self) -> Self
pub fn day_selection(self) -> Self
Date selection enabled
sourcepub fn week_selection(self) -> Self
pub fn week_selection(self) -> Self
Week selection enabled
sourcepub fn styles(self, s: MonthStyle) -> Self
pub fn styles(self, s: MonthStyle) -> Self
Set the composite style.
sourcepub fn select_style(self, style: Style) -> Self
pub fn select_style(self, style: Style) -> Self
Style for the selected tab.
sourcepub fn focus_style(self, style: Style) -> Self
pub fn focus_style(self, style: Style) -> Self
Style for a focused tab.
sourcepub fn day_styles(self, styles: &'a HashMap<NaiveDate, Style>) -> Self
pub fn day_styles(self, styles: &'a HashMap<NaiveDate, Style>) -> Self
Sets all the day-styles.
sourcepub fn week_style(self, s: impl Into<Style>) -> Self
pub fn week_style(self, s: impl Into<Style>) -> Self
Set the week number style
sourcepub fn title_style(self, s: impl Into<Style>) -> Self
pub fn title_style(self, s: impl Into<Style>) -> Self
Set the month-name style.
sourcepub fn title_align(self, a: Alignment) -> Self
pub fn title_align(self, a: Alignment) -> Self
Set the mont-name align.
Trait Implementations§
source§impl<'a> StatefulWidget for Month<'a>
impl<'a> StatefulWidget for Month<'a>
Auto Trait Implementations§
impl<'a> Freeze for Month<'a>
impl<'a> RefUnwindSafe for Month<'a>
impl<'a> Send for Month<'a>
impl<'a> Sync for Month<'a>
impl<'a> Unpin for Month<'a>
impl<'a> UnwindSafe for Month<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more