本文へスキップ

TimeField

時、分、秒、午前/午後の各パーツを持つ、キーボード編集可能な分割時刻フィールドです。

デモを読み込み中…

#インポート

quickgui から TimeField をインポートします。

use quickgui::*;

#使い方

let field = TimeField::new("alarm");
field.root().flex_row()

#構成

  • TimeField::root
  • TimeField::segment

#API リファレンス

項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。

pub fn new(root_id: impl Into<ElementId>) -> Self
root_idpub const fn root_id(self) -> ElementId—

Configures root id for this part.

pub 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) -> ElementId
ソースを見る
segmentpub const fn segment(self, segment: TimeSegment) -> TimeFieldSegment—

Configures segment for this part.

pub const fn segment(self, segment: TimeSegment) -> TimeFieldSegment
ソースを見る

TimeField::root_with

ソースを見る
pub fn root_with(self, state: &TimeFieldState, root: Element) -> Element

Decorate an application-owned root without adding layout or appearance.

TimeField::root

ソースを見る
pub fn root(self, state: &TimeFieldState) -> Element

Create the unstyled root part. Use [`Self::root_with`] to supply an existing element.