Implement Renderer::find_cursor_position

This commit is contained in:
Héctor Ramón Jiménez 2020-03-25 13:57:02 +01:00
parent b30ddf90d2
commit 30f02345a8
3 changed files with 61 additions and 50 deletions

View file

@ -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,