diff options
Diffstat (limited to 'native/src/renderer/null.rs')
-rw-r--r-- | native/src/renderer/null.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs index 9033a7da..b8b0b996 100644 --- a/native/src/renderer/null.rs +++ b/native/src/renderer/null.rs @@ -47,7 +47,11 @@ impl row::Renderer for Null { } impl text::Renderer for Null { - const DEFAULT_SIZE: u16 = 20; + type Font = Font; + + fn default_size(&self) -> u16 { + 20 + } fn measure( &self, @@ -101,6 +105,7 @@ impl scrollable::Renderer for Null { } impl text_input::Renderer for Null { + type Font = Font; type Style = (); fn default_size(&self) -> u16 { @@ -159,9 +164,8 @@ impl button::Renderer for Null { impl radio::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, |