TimePicker
struct · ferroui-controls · v0.5.0
struct TimePicker
A control to allow the user to select a time.
Members
TYPEto_refon_selected_time_changedminute_increment_propertysecond_increment_propertyclock_identifier_propertyvertical_content_alignment_propertyuse_seconds_propertyselected_time_propertyconstructnewvertical_content_alignmentset_vertical_content_alignmentminute_incrementset_minute_incrementsecond_incrementset_second_incrementclock_identifierset_clock_identifieruse_secondsset_use_secondsselected_timeset_selected_timeselected_time_changedclear
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TimePicker>
Returns a strong reference to this object.
on_selected_time_changed
fn on_selected_time_changed(self: &Self, old_time: Option<SignedDuration>, new_time: Option<SignedDuration>)
Raises the SelectedTimeChanged event.
minute_increment_property
fn minute_increment_property() -> &'static StyledProperty<i32>
Defines the MinuteIncrement property.
second_increment_property
fn second_increment_property() -> &'static StyledProperty<i32>
Defines the SecondIncrement property.
clock_identifier_property
fn clock_identifier_property() -> &'static StyledProperty<String>
Defines the ClockIdentifier property.
vertical_content_alignment_property
fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
Defines the VerticalContentAlignment property.
use_seconds_property
fn use_seconds_property() -> &'static StyledProperty<bool>
Defines the UseSeconds property.
selected_time_property
fn selected_time_property() -> &'static StyledProperty<Option<SignedDuration>>
Defines the SelectedTime property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
vertical_content_alignment
fn vertical_content_alignment(self: &Self) -> VerticalAlignment
The vertical alignment of the content within the control.
set_vertical_content_alignment
fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
minute_increment
fn minute_increment(self: &Self) -> i32
The minute increment in the picker.
set_minute_increment
fn set_minute_increment(self: &Self, value: i32)
second_increment
fn second_increment(self: &Self) -> i32
The second increment in the picker.
set_second_increment
fn set_second_increment(self: &Self, value: i32)
clock_identifier
fn clock_identifier(self: &Self) -> String
The clock identifier, either 12HourClock or 24HourClock.
set_clock_identifier
fn set_clock_identifier(self: &Self, value: &str)
use_seconds
fn use_seconds(self: &Self) -> bool
The use seconds switch.
set_use_seconds
fn set_use_seconds(self: &Self, value: bool)
selected_time
fn selected_time(self: &Self) -> Option<SignedDuration>
The selected time; can be None.
set_selected_time
fn set_selected_time(self: &Self, value: Option<SignedDuration>)
selected_time_changed
fn selected_time_changed(self: &Self, handler: impl Fn(&TimePickerSelectedValueChangedEventArgs) -> () + 'static) -> Subscription
Raised when the selected time changes. Dropping the returned guard removes the handler;
Subscription::detach keeps it for the life of the picker.
clear
fn clear(self: &Self)
Clears the selected time.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtTimePickerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<TimePicker>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplFerroObjectImplTemplatedControlImplControlImplTimePickerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.