FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialTimePicker

    struct · ferroui-themes-material · v0.5.0

    struct MaterialTimePicker
    

    A persistent, minute-precision time editor with an analog dial and numeric input. Hour is always 0–23, even when the display uses AM/PM. Invalid intermediate text is retained separately; SelectedTime and TimeChanged expose only valid 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<MaterialTimePicker>
    

    Returns a strong reference to this object.

    Source

    hour_property

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

    Source

    minute_property

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

    Source

    is_24_hour_property

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

    Source

    selection_property

    fn selection_property() -> &'static StyledProperty<MaterialTimeSelection>
    

    Source

    display_mode_property

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

    Source

    orientation_property

    fn orientation_property() -> &'static StyledProperty<Orientation>
    

    Source

    is_vibrant_property

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

    Source

    is_read_only_property

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

    Source

    auto_advance_property

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

    Source

    reduced_motion_property

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

    Source

    motion_scheme_property

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

    Source

    hour_label_property

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

    Source

    minute_label_property

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

    Source

    am_label_property

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

    Source

    pm_label_property

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

    Source

    hour_error_text_property

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

    Source

    minute_error_text_property

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

    Source

    selected_time_property

    fn selected_time_property() -> &'static DirectProperty<MaterialTimePicker, SignedDuration>
    

    Source

    is_hour_input_valid_property

    fn is_hour_input_valid_property() -> &'static DirectProperty<MaterialTimePicker, bool>
    

    Source

    is_minute_input_valid_property

    fn is_minute_input_valid_property() -> &'static DirectProperty<MaterialTimePicker, bool>
    

    Source

    is_input_valid_property

    fn is_input_valid_property() -> &'static DirectProperty<MaterialTimePicker, bool>
    

    Source

    time_changed_event

    fn time_changed_event() -> &'static RoutedEvent<MaterialTimeChangedEventArgs>
    

    Source

    time_change_finished_event

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

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    hour

    fn hour(self: &Self) -> i32
    

    Source

    set_hour

    fn set_hour(self: &Self, value: i32)
    

    Source

    minute

    fn minute(self: &Self) -> i32
    

    Source

    set_minute

    fn set_minute(self: &Self, value: i32)
    

    Source

    is_24_hour

    fn is_24_hour(self: &Self) -> bool
    

    Source

    set_is_24_hour

    fn set_is_24_hour(self: &Self, value: bool)
    

    Source

    selection

    fn selection(self: &Self) -> MaterialTimeSelection
    

    Source

    set_selection

    fn set_selection(self: &Self, value: MaterialTimeSelection)
    

    Source

    display_mode

    fn display_mode(self: &Self) -> MaterialTimeDisplayMode
    

    Source

    set_display_mode

    fn set_display_mode(self: &Self, value: MaterialTimeDisplayMode)
    

    Source

    orientation

    fn orientation(self: &Self) -> Orientation
    

    Source

    set_orientation

    fn set_orientation(self: &Self, value: Orientation)
    

    Source

    is_vibrant

    fn is_vibrant(self: &Self) -> bool
    

    Source

    set_is_vibrant

    fn set_is_vibrant(self: &Self, value: bool)
    

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    Source

    set_is_read_only

    fn set_is_read_only(self: &Self, value: bool)
    

    Source

    auto_advance

    fn auto_advance(self: &Self) -> bool
    

    Whether pointer and numeric input can advance automatically to minutes. Hosts with touch exploration enabled should set this to false. Clock keyboard activation and accessibility selection never auto-advance.

    Source

    set_auto_advance

    fn set_auto_advance(self: &Self, value: bool)
    

    Source

    reduced_motion

    fn reduced_motion(self: &Self) -> bool
    

    Source

    set_reduced_motion

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

    Source

    motion_scheme

    fn motion_scheme(self: &Self) -> MaterialMotionScheme
    

    Source

    set_motion_scheme

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

    Source

    hour_label

    fn hour_label(self: &Self) -> String
    

    Source

    set_hour_label

    fn set_hour_label(self: &Self, value: String)
    

    Source

    minute_label

    fn minute_label(self: &Self) -> String
    

    Source

    set_minute_label

    fn set_minute_label(self: &Self, value: String)
    

    Source

    am_label

    fn am_label(self: &Self) -> String
    

    Source

    set_am_label

    fn set_am_label(self: &Self, value: String)
    

    Source

    pm_label

    fn pm_label(self: &Self) -> String
    

    Source

    set_pm_label

    fn set_pm_label(self: &Self, value: String)
    

    Source

    hour_error_text

    fn hour_error_text(self: &Self) -> String
    

    Source

    set_hour_error_text

    fn set_hour_error_text(self: &Self, value: String)
    

    Source

    minute_error_text

    fn minute_error_text(self: &Self) -> String
    

    Source

    set_minute_error_text

    fn set_minute_error_text(self: &Self, value: String)
    

    Source

    selected_time

    fn selected_time(self: &Self) -> SignedDuration
    

    Source

    is_hour_input_valid

    fn is_hour_input_valid(self: &Self) -> bool
    

    Source

    is_minute_input_valid

    fn is_minute_input_valid(self: &Self) -> bool
    

    Source

    is_input_valid

    fn is_input_valid(self: &Self) -> bool
    

    Source

    hour_input

    fn hour_input(self: &Self) -> String
    

    Source

    minute_input

    fn minute_input(self: &Self) -> String
    

    Source

    set_time

    fn set_time(self: &Self, hour: i32, minute: i32)
    

    Sets a valid 24-hour time atomically, emitting at most one TimeChanged event.

    Source

    set_selected_time

    fn set_selected_time(self: &Self, value: SignedDuration)
    

    Source

    set_input

    fn set_input(self: &Self, selection: MaterialTimeSelection, text: &str) -> bool
    

    Edits an input field without discarding an invalid numeric draft. Returns false for rejected syntax; such a replacement leaves both text and value unchanged.

    Source

    Trait implementations

    Availability

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