summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-08-26 14:41:33 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-08-26 14:41:33 +0700
commit7614127d3641cf3224798c2f0ff07b6ae57d9a53 (patch)
tree413fc3a6f7a22bfaf00de05dfcc9acf5b40bdd26 /graphics/src/widget/text.rs
parentaa63841e2c80ca8130adf41d25e5d731409b92f4 (diff)
downloadiced-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 'graphics/src/widget/text.rs')
-rw-r--r--graphics/src/widget/text.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/graphics/src/widget/text.rs b/graphics/src/widget/text.rs
index e1b4e4e8..c235f254 100644
--- a/graphics/src/widget/text.rs
+++ b/graphics/src/widget/text.rs
@@ -4,8 +4,7 @@ use crate::{Primitive, Renderer};
use iced_native::mouse;
use iced_native::text;
use iced_native::{
- Color, Font, HitTestResult, HorizontalAlignment, Point, Rectangle, Size,
- VerticalAlignment,
+ Color, Font, HorizontalAlignment, Point, Rectangle, Size, VerticalAlignment,
};
/// A paragraph of text.
@@ -44,7 +43,7 @@ where
bounds: Size,
point: Point,
nearest_only: bool,
- ) -> HitTestResult {
+ ) -> text::Hit {
self.backend().hit_test(
content,
size,