本文へスキップ

Text

継承されたタイポグラフィ、選択、アクセシビリティを使って Unicode テキストを組版・描画します。

デモを読み込み中…

#インポート

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

use quickgui::*;

#使い方

text("Hello from Rust").text_lg()

#API リファレンス

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

pub fn text(content: impl Into<Arc<str>>) -> Element

Create a text element. Strings are owned through `Arc<str>` and cheap to retain.

text_colorpub fn text_color(mut self, color: Color) -> Self—

Configures text color for this part.

pub fn text_color(mut self, color: Color) -> Self
ソースを見る
childpub fn child(mut self, child: impl IntoElement) -> Self—

Configures child for this part.

pub fn child(mut self, child: impl IntoElement) -> Self
ソースを見る