summaryrefslogtreecommitdiffstats
path: root/native/src/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/renderer')
-rw-r--r--native/src/renderer/null.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs
index d6a8e18f..580f58f8 100644
--- a/native/src/renderer/null.rs
+++ b/native/src/renderer/null.rs
@@ -50,7 +50,9 @@ impl row::Renderer for Null {
impl text::Renderer for Null {
type Font = Font;
- const DEFAULT_SIZE: u16 = 20;
+ fn default_size(&self) -> u16 {
+ 20
+ }
fn measure(
&self,
@@ -104,13 +106,8 @@ impl scrollable::Renderer for Null {
}
impl text_input::Renderer for Null {
- type Font = Font;
type Style = ();
- fn default_size(&self) -> u16 {
- 20
- }
-
fn measure_value(&self, _value: &str, _size: u16, _font: Font) -> f32 {
0.0
}