diff options
author | 2021-09-15 14:49:13 +0700 | |
---|---|---|
committer | 2021-09-15 14:49:13 +0700 | |
commit | 643500bbdf1a169db1bcdcb8e971334037274d38 (patch) | |
tree | c2e4131f9bdc788052b584da05a6ee1ce2e8d71b /glow/src/backend.rs | |
parent | 93fec8d273ef8305e1c2456abe0c8ecd7a9d9407 (diff) | |
download | iced-643500bbdf1a169db1bcdcb8e971334037274d38.tar.gz iced-643500bbdf1a169db1bcdcb8e971334037274d38.tar.bz2 iced-643500bbdf1a169db1bcdcb8e971334037274d38.zip |
Use `Option` to encode empty text case in hit test methods
Diffstat (limited to 'glow/src/backend.rs')
-rw-r--r-- | glow/src/backend.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glow/src/backend.rs b/glow/src/backend.rs index 37c0ac9d..526965cb 100644 --- a/glow/src/backend.rs +++ b/glow/src/backend.rs @@ -221,7 +221,7 @@ impl backend::Text for Backend { bounds: Size, point: iced_native::Point, nearest_only: bool, - ) -> text::Hit { + ) -> Option<text::Hit> { self.text_pipeline.hit_test( contents, size, |