summaryrefslogtreecommitdiffstats
path: root/native/src/renderer/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-21 19:06:22 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-21 19:06:22 +0700
commit1397be38ca2caaf5c49ca51e164a28b63f9e461b (patch)
treef713eeb412cc05ee2f61275f8fcbfcef7608749d /native/src/renderer/text.rs
parent7c08c6bd138207b862933ee479752a4f1d18c4f2 (diff)
downloadiced-1397be38ca2caaf5c49ca51e164a28b63f9e461b.tar.gz
iced-1397be38ca2caaf5c49ca51e164a28b63f9e461b.tar.bz2
iced-1397be38ca2caaf5c49ca51e164a28b63f9e461b.zip
Implement `Widget::draw` for `Checkbox`
Diffstat (limited to 'native/src/renderer/text.rs')
-rw-r--r--native/src/renderer/text.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/native/src/renderer/text.rs b/native/src/renderer/text.rs
index 80769b62..fbf116a1 100644
--- a/native/src/renderer/text.rs
+++ b/native/src/renderer/text.rs
@@ -7,6 +7,19 @@ pub trait Text: Renderer {
/// The font type used.
type Font: Default + Copy;
+ /// The icon font of the backend.
+ const ICON_FONT: Self::Font;
+
+ /// The `char` representing a ✔ icon in the [`ICON_FONT`].
+ ///
+ /// [`ICON_FONT`]: Self::ICON_FONT
+ const CHECKMARK_ICON: char;
+
+ /// The `char` representing a ▼ icon in the built-in [`ICON_FONT`].
+ ///
+ /// [`ICON_FONT`]: Self::ICON_FONT
+ const ARROW_DOWN_ICON: char;
+
/// Returns the default size of [`Text`].
fn default_size(&self) -> u16;