summaryrefslogtreecommitdiffstats
path: root/native/src/renderer/null.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-05 03:09:39 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-05 03:09:39 +0100
commit14fb7e13fb272a43b9924d5d2823b0c105d781b0 (patch)
treecbc9a7acc00e96179c9dfb99da10db8e72490d10 /native/src/renderer/null.rs
parente92ea48e8814b42fc566017db085ca9bdaf3c272 (diff)
downloadiced-14fb7e13fb272a43b9924d5d2823b0c105d781b0.tar.gz
iced-14fb7e13fb272a43b9924d5d2823b0c105d781b0.tar.bz2
iced-14fb7e13fb272a43b9924d5d2823b0c105d781b0.zip
Place `TextInput` cursor position on click
Diffstat (limited to 'native/src/renderer/null.rs')
-rw-r--r--native/src/renderer/null.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs
index da0e5159..02f033a5 100644
--- a/native/src/renderer/null.rs
+++ b/native/src/renderer/null.rs
@@ -89,6 +89,10 @@ impl text_input::Renderer for Null {
20
}
+ fn measure_value(&self, _value: &str, _size: u16) -> f32 {
+ 0.0
+ }
+
fn draw(
&mut self,
_bounds: Rectangle,