Pull Checkbox default constants from its Renderer

This commit is contained in:
Héctor Ramón Jiménez 2020-02-18 02:28:15 +01:00
parent 668f627532
commit 6922160423
6 changed files with 28 additions and 31 deletions

View file

@ -47,9 +47,7 @@ impl row::Renderer for Null {
}
impl text::Renderer for Null {
fn default_size(&self) -> u16 {
20
}
const DEFAULT_SIZE: u16 = 20;
fn measure(
&self,
@ -179,9 +177,8 @@ impl radio::Renderer for Null {
impl checkbox::Renderer for Null {
type Style = ();
fn default_size(&self) -> u32 {
20
}
const DEFAULT_SIZE: u16 = 20;
const DEFAULT_SPACING: u16 = 15;
fn draw(
&mut self,