Implement Widget::draw for Checkbox

This commit is contained in:
Héctor Ramón Jiménez 2021-10-21 19:06:22 +07:00
parent 7c08c6bd13
commit 1397be38ca
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 75 additions and 19 deletions

View file

@ -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;