Pull Checkbox default constants from its Renderer
This commit is contained in:
parent
668f627532
commit
6922160423
6 changed files with 28 additions and 31 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue