FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TimePicker

    struct · ferroui-controls · v0.5.0

    struct TimePicker
    

    A control to allow the user to select a time.

    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<TimePicker>
    

    Returns a strong reference to this object.

    Source

    on_selected_time_changed

    fn on_selected_time_changed(self: &Self, old_time: Option<SignedDuration>, new_time: Option<SignedDuration>)
    

    Raises the SelectedTimeChanged event.

    Source

    minute_increment_property

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

    Defines the MinuteIncrement property.

    Source

    second_increment_property

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

    Defines the SecondIncrement property.

    Source

    clock_identifier_property

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

    Defines the ClockIdentifier property.

    Source

    vertical_content_alignment_property

    fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
    

    Defines the VerticalContentAlignment property.

    Source

    use_seconds_property

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

    Defines the UseSeconds property.

    Source

    selected_time_property

    fn selected_time_property() -> &'static StyledProperty<Option<SignedDuration>>
    

    Defines the SelectedTime property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    vertical_content_alignment

    fn vertical_content_alignment(self: &Self) -> VerticalAlignment
    

    The vertical alignment of the content within the control.

    Source

    set_vertical_content_alignment

    fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
    

    Source

    minute_increment

    fn minute_increment(self: &Self) -> i32
    

    The minute increment in the picker.

    Source

    set_minute_increment

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

    Source

    second_increment

    fn second_increment(self: &Self) -> i32
    

    The second increment in the picker.

    Source

    set_second_increment

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

    Source

    clock_identifier

    fn clock_identifier(self: &Self) -> String
    

    The clock identifier, either 12HourClock or 24HourClock.

    Source

    set_clock_identifier

    fn set_clock_identifier(self: &Self, value: &str)
    

    Source

    use_seconds

    fn use_seconds(self: &Self) -> bool
    

    The use seconds switch.

    Source

    set_use_seconds

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

    Source

    selected_time

    fn selected_time(self: &Self) -> Option<SignedDuration>
    

    The selected time; can be None.

    Source

    set_selected_time

    fn set_selected_time(self: &Self, value: Option<SignedDuration>)
    

    Source

    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.

    Source

    clear

    fn clear(self: &Self)
    

    Clears the selected time.

    Source

    Trait implementations

    Availability

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