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

@ -91,6 +91,10 @@ where
{
type Font = Font;
const ICON_FONT: Font = B::ICON_FONT;
const CHECKMARK_ICON: char = B::CHECKMARK_ICON;
const ARROW_DOWN_ICON: char = B::ARROW_DOWN_ICON;
fn default_size(&self) -> u16 {
self.backend().default_size()
}