summaryrefslogtreecommitdiffstats
path: root/wgpu/src/widget/canvas/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/widget/canvas/text.rs')
-rw-r--r--wgpu/src/widget/canvas/text.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/wgpu/src/widget/canvas/text.rs b/wgpu/src/widget/canvas/text.rs
index 5f6abe58..241f8503 100644
--- a/wgpu/src/widget/canvas/text.rs
+++ b/wgpu/src/widget/canvas/text.rs
@@ -1,8 +1,10 @@
-use iced_native::{Color, Font, HorizontalAlignment, Rectangle, VerticalAlignment};
+use iced_native::{
+ Color, Font, HorizontalAlignment, Rectangle, VerticalAlignment,
+};
-/// A text node to be drawn to a canvas
+/// A bunch of text that can be drawn to a canvas
#[derive(Debug, Clone)]
-pub struct TextNode {
+pub struct Text {
/// The contents of the text
pub content: String,
/// The bounds of the text