summaryrefslogtreecommitdiffstats
path: root/graphics/src/backend.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/backend.rs')
-rw-r--r--graphics/src/backend.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/src/backend.rs b/graphics/src/backend.rs
index ae89da06..59e95bf8 100644
--- a/graphics/src/backend.rs
+++ b/graphics/src/backend.rs
@@ -10,6 +10,9 @@ use std::borrow::Cow;
///
/// [`Renderer`]: crate::Renderer
pub trait Backend {
+ /// The custom kind of primitives this [`Backend`] supports.
+ type Primitive;
+
/// Trims the measurements cache.
///
/// This method is currently necessary to properly trim the text cache in
@@ -50,7 +53,7 @@ pub trait Text {
font: Font,
bounds: Size,
shaping: text::Shaping,
- ) -> (f32, f32);
+ ) -> Size;
/// Tests whether the provided point is within the boundaries of [`Text`]
/// laid out with the given parameters, returning information about