summaryrefslogtreecommitdiffstats
path: root/native/src/renderer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-03-25 14:31:25 +0100
committerLibravatar GitHub <noreply@github.com>2020-03-25 14:31:25 +0100
commit643fa18cae19fa1418a23b652b6b4b8bf8ef79fc (patch)
treec40bf003b7702cdc751c4d6b4adfd79c3ff63633 /native/src/renderer
parentfd7d9622e333a0a2cd5c2e8e6cc38cc09d7981e4 (diff)
parentbc10ca501ba012dbd379ade93e27bc012c08c2f1 (diff)
downloadiced-643fa18cae19fa1418a23b652b6b4b8bf8ef79fc.tar.gz
iced-643fa18cae19fa1418a23b652b6b4b8bf8ef79fc.tar.bz2
iced-643fa18cae19fa1418a23b652b6b4b8bf8ef79fc.zip
Merge pull request #202 from FabianLars/master
Text Selection for text_input widget
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,