Skip to content

Text

Shapes and paints Unicode text with inherited typography, selection, and accessibility.

Loading interactive demo…

#Import

Import text from quickgui.

use quickgui::*;

#Usage

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

#API reference

Expand an entry for its description and complete signature. A dash means no declaration default is documented.

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
View source
childpub fn child(mut self, child: impl IntoElement) -> Self—

Configures child for this part.

pub fn child(mut self, child: impl IntoElement) -> Self
View source