TimeField
A segmented, keyboard-editable time field with hour, minute, second, and period parts.
Loading interactive demo…
let field = TimeField::new("alarm");
field.root().flex_row()#Import
Import TimeField from quickgui.
use quickgui::*;#Usage
let field = TimeField::new("alarm");
field.root().flex_row()#Anatomy
TimeField::rootTimeField::segment
#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
TimeField
View sourcepub fn new(root_id: impl Into<ElementId>) -> Selfroot_idpub const fn root_id(self) -> ElementId—
segment_idpub fn segment_id(self, segment: TimeSegment) -> ElementId—
Configures segment id for this part.
pub fn segment_id(self, segment: TimeSegment) -> ElementIdView sourcesegmentpub const fn segment(self, segment: TimeSegment) -> TimeFieldSegment—
Configures segment for this part.
pub const fn segment(self, segment: TimeSegment) -> TimeFieldSegmentView sourceTimeField::root_with
View sourcepub fn root_with(self, state: &TimeFieldState, root: Element) -> ElementDecorate an application-owned root without adding layout or appearance.
TimeField::root
View sourcepub fn root(self, state: &TimeFieldState) -> ElementCreate the unstyled root part. Use [`Self::root_with`] to supply an existing element.
