diff options
author | 2019-10-05 05:12:36 +0200 | |
---|---|---|
committer | 2019-10-05 05:12:36 +0200 | |
commit | 0c3f78713d24b263e94cf6aebb8862926feaff23 (patch) | |
tree | fd7536e245228369dfb3300826002459c5a99ff3 /native | |
parent | a90f7fcb987f667a80038a5e72f379abbd59d932 (diff) | |
download | iced-0c3f78713d24b263e94cf6aebb8862926feaff23.tar.gz iced-0c3f78713d24b263e94cf6aebb8862926feaff23.tar.bz2 iced-0c3f78713d24b263e94cf6aebb8862926feaff23.zip |
Draft basic text rendering using `wgpu_glyph`
Diffstat (limited to 'native')
-rw-r--r-- | native/src/element.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/native/src/element.rs b/native/src/element.rs index 8d14070a..417e3463 100644 --- a/native/src/element.rs +++ b/native/src/element.rs @@ -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 |