FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialDatePicker

    struct · ferroui-themes-material · v0.5.0

    struct MaterialDatePicker
    

    Embed directly, or enable ShowActions in a dialog/sheet. SelectedDate aliases SelectedStartDate; end dates are inclusive. SelectionChanged is raised for edits; Confirmed/Dismissed let the application own modal lifetime and committed values.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<MaterialDatePicker>
    

    Returns a strong reference to this object.

    Source

    selected_date_property

    fn selected_date_property() -> &'static DirectProperty<MaterialDatePicker, Option<DateTime>>
    

    Source

    selected_start_date_property

    fn selected_start_date_property() -> &'static DirectProperty<MaterialDatePicker, Option<DateTime>>
    

    Source

    selected_end_date_property

    fn selected_end_date_property() -> &'static DirectProperty<MaterialDatePicker, Option<DateTime>>
    

    Source

    displayed_month_property

    fn displayed_month_property() -> &'static DirectProperty<MaterialDatePicker, DateTime>
    

    Source

    is_selection_complete_property

    fn is_selection_complete_property() -> &'static DirectProperty<MaterialDatePicker, bool>
    

    Source

    is_year_picker_open_property

    fn is_year_picker_open_property() -> &'static DirectProperty<MaterialDatePicker, bool>
    

    Source

    display_mode_property

    fn display_mode_property() -> &'static StyledProperty<MaterialDatePickerMode>
    

    Source

    selection_mode_property

    fn selection_mode_property() -> &'static StyledProperty<MaterialDateSelectionMode>
    

    Source

    first_year_property

    fn first_year_property() -> &'static StyledProperty<i32>
    

    Source

    last_year_property

    fn last_year_property() -> &'static StyledProperty<i32>
    

    Source

    culture_property

    fn culture_property() -> &'static StyledProperty<Option<CultureInfo>>
    

    Source

    first_day_of_week_property

    fn first_day_of_week_property() -> &'static StyledProperty<Option<DayOfWeek>>
    

    Source

    today_property

    fn today_property() -> &'static StyledProperty<DateTime>
    

    Source

    title_property

    fn title_property() -> &'static StyledProperty<Option<String>>
    

    Source

    show_mode_toggle_property

    fn show_mode_toggle_property() -> &'static StyledProperty<bool>
    

    Source

    show_actions_property

    fn show_actions_property() -> &'static StyledProperty<bool>
    

    Source

    confirm_text_property

    fn confirm_text_property() -> &'static StyledProperty<String>
    

    Source

    cancel_text_property

    fn cancel_text_property() -> &'static StyledProperty<String>
    

    Source

    range_calendar_height_property

    fn range_calendar_height_property() -> &'static StyledProperty<f64>
    

    Source

    range_background_property

    fn range_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Source

    subhead_foreground_property

    fn subhead_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Source

    reduced_motion_property

    fn reduced_motion_property() -> &'static StyledProperty<bool>
    

    Source

    motion_scheme_property

    fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
    

    Source

    selection_changed_event

    fn selection_changed_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Source

    confirmed_event

    fn confirmed_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Source

    dismissed_event

    fn dismissed_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    state

    fn state(self: &Self) -> MaterialDatePickerState
    

    Source

    selected_date

    fn selected_date(self: &Self) -> Option<DateTime>
    

    Source

    selected_start_date

    fn selected_start_date(self: &Self) -> Option<DateTime>
    

    Source

    selected_end_date

    fn selected_end_date(self: &Self) -> Option<DateTime>
    

    Source

    displayed_month

    fn displayed_month(self: &Self) -> DateTime
    

    Source

    is_selection_complete

    fn is_selection_complete(self: &Self) -> bool
    

    Source

    is_year_picker_open

    fn is_year_picker_open(self: &Self) -> bool
    

    Source

    display_mode

    fn display_mode(self: &Self) -> MaterialDatePickerMode
    

    Source

    set_display_mode

    fn set_display_mode(self: &Self, v: MaterialDatePickerMode)
    

    Source

    selection_mode

    fn selection_mode(self: &Self) -> MaterialDateSelectionMode
    

    Source

    set_selection_mode

    fn set_selection_mode(self: &Self, v: MaterialDateSelectionMode)
    

    Source

    first_year

    fn first_year(self: &Self) -> i32
    

    Source

    set_first_year

    fn set_first_year(self: &Self, v: i32)
    

    Source

    last_year

    fn last_year(self: &Self) -> i32
    

    Source

    set_last_year

    fn set_last_year(self: &Self, v: i32)
    

    Source

    culture

    fn culture(self: &Self) -> CultureInfo
    

    Source

    set_culture

    fn set_culture(self: &Self, v: Option<CultureInfo>)
    

    Source

    first_day_of_week

    fn first_day_of_week(self: &Self) -> DayOfWeek
    

    Source

    set_first_day_of_week

    fn set_first_day_of_week(self: &Self, v: Option<DayOfWeek>)
    

    Source

    today

    fn today(self: &Self) -> DateTime
    

    Source

    set_today

    fn set_today(self: &Self, v: DateTime)
    

    Source

    title

    fn title(self: &Self) -> Option<String>
    

    Source

    set_title

    fn set_title(self: &Self, v: Option<String>)
    

    Source

    show_mode_toggle

    fn show_mode_toggle(self: &Self) -> bool
    

    Source

    set_show_mode_toggle

    fn set_show_mode_toggle(self: &Self, v: bool)
    

    Source

    show_actions

    fn show_actions(self: &Self) -> bool
    

    Source

    set_show_actions

    fn set_show_actions(self: &Self, v: bool)
    

    Source

    confirm_text

    fn confirm_text(self: &Self) -> String
    

    Source

    set_confirm_text

    fn set_confirm_text(self: &Self, v: String)
    

    Source

    cancel_text

    fn cancel_text(self: &Self) -> String
    

    Source

    set_cancel_text

    fn set_cancel_text(self: &Self, v: String)
    

    Source

    range_calendar_height

    fn range_calendar_height(self: &Self) -> f64
    

    Source

    set_range_calendar_height

    fn set_range_calendar_height(self: &Self, v: f64)
    

    Source

    range_background

    fn range_background(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Source

    set_range_background

    fn set_range_background(self: &Self, v: Option<Rc<dyn IBrush>>)
    

    Source

    subhead_foreground

    fn subhead_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Source

    set_subhead_foreground

    fn set_subhead_foreground(self: &Self, v: Option<Rc<dyn IBrush>>)
    

    Source

    reduced_motion

    fn reduced_motion(self: &Self) -> bool
    

    Source

    set_reduced_motion

    fn set_reduced_motion(self: &Self, v: bool)
    

    Source

    motion_scheme

    fn motion_scheme(self: &Self) -> MaterialMotionScheme
    

    Source

    set_motion_scheme

    fn set_motion_scheme(self: &Self, v: MaterialMotionScheme)
    

    Source

    blackout_dates

    fn blackout_dates(self: &Self) -> CalendarBlackoutDatesCollection
    

    Source

    set_date_validator

    fn set_date_validator(self: &Self, policy: Option<Rc<dyn Fn(DateTime) -> bool>>)
    

    Source

    set_year_validator

    fn set_year_validator(self: &Self, policy: Option<Rc<dyn Fn(i32) -> bool>>)
    

    Source

    is_year_selectable

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

    Source

    is_date_selectable

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

    Source

    refresh_selectable_dates

    fn refresh_selectable_dates(self: &Self)
    

    Source

    set_selected_date

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

    Source

    set_selected_start_date

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

    Source

    set_selected_end_date

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

    Source

    set_selection

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

    Source

    select_date

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

    Source

    set_displayed_month

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

    Source

    restore_state

    fn restore_state(self: &Self, state: MaterialDatePickerState)
    

    Source

    confirm

    fn confirm(self: &Self) -> bool
    

    Source

    dismiss

    fn dismiss(self: &Self)
    

    Source

    input_format

    fn input_format(self: &Self) -> MaterialDateInputFormat
    

    Source

    input_error

    fn input_error(self: &Self, end: bool) -> Option<String>
    

    Source

    set_is_year_picker_open

    fn set_is_year_picker_open(self: &Self, open: bool)
    

    Source

    select_year

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

    Source

    navigate_month

    fn navigate_month(self: &Self, delta: i32)
    

    Source

    Trait implementations

    Availability

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