summaryrefslogtreecommitdiffstats
path: root/native/src/renderer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-25 13:57:02 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-25 13:57:02 +0100
commit30f02345a88fc03a5a71d6563f385ac090063bce (patch)
tree18e334e7f8fd9ac9f0931cdeef9448688a133152 /native/src/renderer
parentb30ddf90d2c74ab709aaadd9dd60815d17e2de63 (diff)
downloadiced-30f02345a88fc03a5a71d6563f385ac090063bce.tar.gz
iced-30f02345a88fc03a5a71d6563f385ac090063bce.tar.bz2
iced-30f02345a88fc03a5a71d6563f385ac090063bce.zip
Implement `Renderer::find_cursor_position`
Diffstat (limited to 'native/src/renderer')
-rw-r--r--native/src/renderer/null.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs
index 0fcce5ad..9033a7da 100644
--- a/native/src/renderer/null.rs
+++ b/native/src/renderer/null.rs
@@ -114,10 +114,10 @@ impl text_input::Renderer for Null {
fn offset(
&self,
_text_bounds: Rectangle,
+ _font: Font,
_size: u16,
_value: &text_input::Value,
_state: &text_input::State,
- _font: Font,
) -> f32 {
0.0
}
@@ -127,8 +127,8 @@ impl text_input::Renderer for Null {
_bounds: Rectangle,
_text_bounds: Rectangle,
_cursor_position: Point,
- _size: u16,
_font: Font,
+ _size: u16,
_placeholder: &str,
_value: &text_input::Value,
_state: &text_input::State,