Draft basic text rendering using wgpu_glyph
This commit is contained in:
parent
a90f7fcb98
commit
0c3f78713d
4 changed files with 221 additions and 49 deletions
|
|
@ -41,6 +41,15 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
pub fn draw(
|
||||
&self,
|
||||
renderer: &mut Renderer,
|
||||
layout: Layout<'_>,
|
||||
cursor_position: Point,
|
||||
) -> Renderer::Primitive {
|
||||
self.widget.draw(renderer, layout, cursor_position)
|
||||
}
|
||||
|
||||
/// Applies a transformation to the produced message of the [`Element`].
|
||||
///
|
||||
/// This method is useful when you want to decouple different parts of your
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue