FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialDatePickerState

    struct · ferroui-themes-material · v0.5.0

    struct MaterialDatePickerState
    

    A restorable native selection snapshot. End dates are inclusive. An incomplete range has a start and no end; an invalid or reversed programmatic range clears both ends.

    View source

    Members

    selected_start

    selected_start: Option<ferroui_base::utilities::DateTime>
    

    Source

    selected_end

    selected_end: Option<ferroui_base::utilities::DateTime>
    

    Source

    displayed_month

    displayed_month: ferroui_base::utilities::DateTime
    

    Source

    mode

    mode: MaterialDatePickerMode
    

    Source

    selection_mode

    selection_mode: MaterialDateSelectionMode
    

    Source

    first_year

    first_year: i32
    

    Source

    last_year

    last_year: i32
    

    Source

    canonical_date

    fn canonical_date(self: &Self, date: Option<DateTime>) -> Option<DateTime>
    

    Source

    contains_year

    fn contains_year(self: &Self, year: i32) -> bool
    

    Source

    set_selection

    fn set_selection(self: &mut Self, start: Option<DateTime>, end: Option<DateTime>)
    

    Source

    select_date

    fn select_date(self: &mut Self, date: DateTime)
    

    Call only after checking the date and year selection policy. Range selection does not require every intervening day to be selectable, matching the native picker.

    Source

    set_displayed_month

    fn set_displayed_month(self: &mut Self, date: DateTime)
    

    Source

    set_mode

    fn set_mode(self: &mut Self, mode: MaterialDatePickerMode)
    

    Source

    set_year_range

    fn set_year_range(self: &mut Self, first: i32, last: i32)
    

    Source

    is_in_range

    fn is_in_range(self: &Self, date: DateTime) -> bool
    

    Source

    is_complete

    fn is_complete(self: &Self) -> bool
    

    Source

    month_index

    fn month_index(self: &Self, month: DateTime) -> i32
    

    Source

    month_count

    fn month_count(self: &Self) -> i32
    

    Source

    month_at

    fn month_at(self: &Self, index: i32) -> DateTime
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Equivalent<K>
    • CastableFrom<ST, Uninit, Uninit>
    • CastableFrom<ST, Initialized, Initialized>
    • Read<Exclusive, BecauseExclusive>
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.