Icon
An icon: a bundled Icon, such as icon(Icon::Folder), or a text glyph.
GUITUIRuns in the browser
iconPreview
Usage example
fn icon_demo() -> IconBuilder { icon("▲").tone(Tone::Warn).label("Alert") }fn icon_demo() -> IconBuilder { icon("▲") .tone(Tone::Warn) .label("Alert") }API
| Name | Signature | Purpose |
|---|---|---|
icon | fn icon(glyph: impl IntoIconSource) -> IconBuilder | An icon: a bundled Icon, such as icon(Icon::Folder), or a text glyph. |