diff options
author | 2021-08-26 14:41:33 +0700 | |
---|---|---|
committer | 2021-08-26 14:41:33 +0700 | |
commit | 7614127d3641cf3224798c2f0ff07b6ae57d9a53 (patch) | |
tree | 413fc3a6f7a22bfaf00de05dfcc9acf5b40bdd26 /graphics/src/backend.rs | |
parent | aa63841e2c80ca8130adf41d25e5d731409b92f4 (diff) | |
download | iced-7614127d3641cf3224798c2f0ff07b6ae57d9a53.tar.gz iced-7614127d3641cf3224798c2f0ff07b6ae57d9a53.tar.bz2 iced-7614127d3641cf3224798c2f0ff07b6ae57d9a53.zip |
Rename `HitTestResult` to `Hit`
... and also move it to a new `text` module in `iced_core`
Diffstat (limited to '')
-rw-r--r-- | graphics/src/backend.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/src/backend.rs b/graphics/src/backend.rs index 94124509..656949c5 100644 --- a/graphics/src/backend.rs +++ b/graphics/src/backend.rs @@ -1,7 +1,8 @@ //! Write a graphics backend. use iced_native::image; use iced_native::svg; -use iced_native::{Font, HitTestResult, Point, Size}; +use iced_native::text; +use iced_native::{Font, Point, Size}; /// The graphics backend of a [`Renderer`]. /// @@ -59,7 +60,7 @@ pub trait Text { bounds: Size, point: Point, nearest_only: bool, - ) -> HitTestResult; + ) -> text::Hit; } /// A graphics backend that supports image rendering. |