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.
Members
TYPEto_refhour_propertyminute_propertyis_24_hour_propertyselection_propertydisplay_mode_propertyorientation_propertyis_vibrant_propertyis_read_only_propertyauto_advance_propertyreduced_motion_propertymotion_scheme_propertyhour_label_propertyminute_label_propertyam_label_propertypm_label_propertyhour_error_text_propertyminute_error_text_propertyselected_time_propertyis_hour_input_valid_propertyis_minute_input_valid_propertyis_input_valid_propertytime_changed_eventtime_change_finished_eventconstructnewhourset_hourminuteset_minuteis_24_hourset_is_24_hourselectionset_selectiondisplay_modeset_display_modeorientationset_orientationis_vibrantset_is_vibrantis_read_onlyset_is_read_onlyauto_advanceset_auto_advancereduced_motionset_reduced_motionmotion_schemeset_motion_schemehour_labelset_hour_labelminute_labelset_minute_labelam_labelset_am_labelpm_labelset_pm_labelhour_error_textset_hour_error_textminute_error_textset_minute_error_textselected_timeis_hour_input_validis_minute_input_validis_input_validhour_inputminute_inputset_timeset_selected_timeset_input
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MaterialTimePicker>
Returns a strong reference to this object.
hour_property
fn hour_property() -> &'static StyledProperty<i32>
minute_property
fn minute_property() -> &'static StyledProperty<i32>
is_24_hour_property
fn is_24_hour_property() -> &'static StyledProperty<bool>
selection_property
fn selection_property() -> &'static StyledProperty<MaterialTimeSelection>
display_mode_property
fn display_mode_property() -> &'static StyledProperty<MaterialTimeDisplayMode>
orientation_property
fn orientation_property() -> &'static StyledProperty<Orientation>
is_vibrant_property
fn is_vibrant_property() -> &'static StyledProperty<bool>
is_read_only_property
fn is_read_only_property() -> &'static StyledProperty<bool>
auto_advance_property
fn auto_advance_property() -> &'static StyledProperty<bool>
reduced_motion_property
fn reduced_motion_property() -> &'static StyledProperty<bool>
motion_scheme_property
fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
hour_label_property
fn hour_label_property() -> &'static StyledProperty<String>
minute_label_property
fn minute_label_property() -> &'static StyledProperty<String>
am_label_property
fn am_label_property() -> &'static StyledProperty<String>
pm_label_property
fn pm_label_property() -> &'static StyledProperty<String>
hour_error_text_property
fn hour_error_text_property() -> &'static StyledProperty<String>
minute_error_text_property
fn minute_error_text_property() -> &'static StyledProperty<String>
selected_time_property
fn selected_time_property() -> &'static DirectProperty<MaterialTimePicker, SignedDuration>
is_hour_input_valid_property
fn is_hour_input_valid_property() -> &'static DirectProperty<MaterialTimePicker, bool>
is_minute_input_valid_property
fn is_minute_input_valid_property() -> &'static DirectProperty<MaterialTimePicker, bool>
is_input_valid_property
fn is_input_valid_property() -> &'static DirectProperty<MaterialTimePicker, bool>
time_changed_event
fn time_changed_event() -> &'static RoutedEvent<MaterialTimeChangedEventArgs>
time_change_finished_event
fn time_change_finished_event() -> &'static RoutedEvent<RoutedEventArgs>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
hour
fn hour(self: &Self) -> i32
set_hour
fn set_hour(self: &Self, value: i32)
minute
fn minute(self: &Self) -> i32
set_minute
fn set_minute(self: &Self, value: i32)
is_24_hour
fn is_24_hour(self: &Self) -> bool
set_is_24_hour
fn set_is_24_hour(self: &Self, value: bool)
selection
fn selection(self: &Self) -> MaterialTimeSelection
set_selection
fn set_selection(self: &Self, value: MaterialTimeSelection)
display_mode
fn display_mode(self: &Self) -> MaterialTimeDisplayMode
set_display_mode
fn set_display_mode(self: &Self, value: MaterialTimeDisplayMode)
orientation
fn orientation(self: &Self) -> Orientation
set_orientation
fn set_orientation(self: &Self, value: Orientation)
is_vibrant
fn is_vibrant(self: &Self) -> bool
set_is_vibrant
fn set_is_vibrant(self: &Self, value: bool)
is_read_only
fn is_read_only(self: &Self) -> bool
set_is_read_only
fn set_is_read_only(self: &Self, value: bool)
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.
set_auto_advance
fn set_auto_advance(self: &Self, value: bool)
reduced_motion
fn reduced_motion(self: &Self) -> bool
set_reduced_motion
fn set_reduced_motion(self: &Self, value: bool)
motion_scheme
fn motion_scheme(self: &Self) -> MaterialMotionScheme
set_motion_scheme
fn set_motion_scheme(self: &Self, value: MaterialMotionScheme)
hour_label
fn hour_label(self: &Self) -> String
set_hour_label
fn set_hour_label(self: &Self, value: String)
minute_label
fn minute_label(self: &Self) -> String
set_minute_label
fn set_minute_label(self: &Self, value: String)
am_label
fn am_label(self: &Self) -> String
set_am_label
fn set_am_label(self: &Self, value: String)
pm_label
fn pm_label(self: &Self) -> String
set_pm_label
fn set_pm_label(self: &Self, value: String)
hour_error_text
fn hour_error_text(self: &Self) -> String
set_hour_error_text
fn set_hour_error_text(self: &Self, value: String)
minute_error_text
fn minute_error_text(self: &Self) -> String
set_minute_error_text
fn set_minute_error_text(self: &Self, value: String)
selected_time
fn selected_time(self: &Self) -> SignedDuration
is_hour_input_valid
fn is_hour_input_valid(self: &Self) -> bool
is_minute_input_valid
fn is_minute_input_valid(self: &Self) -> bool
is_input_valid
fn is_input_valid(self: &Self) -> bool
hour_input
fn hour_input(self: &Self) -> String
minute_input
fn minute_input(self: &Self) -> String
set_time
fn set_time(self: &Self, hour: i32, minute: i32)
Sets a valid 24-hour time atomically, emitting at most one TimeChanged event.
set_selected_time
fn set_selected_time(self: &Self, value: SignedDuration)
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherCastableFrom<ST, Uninit, Uninit>CastableFrom<ST, Initialized, Initialized>Read<Exclusive, BecauseExclusive>TemplatedControlImplExtControlImplExtDerefUpcast<T>Upcast<MaterialTimePicker>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplInputElementImplLayoutableImplControlImplFerroObjectImplVisualImplTemplatedControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.