diff options
author | 2020-03-07 22:27:02 +0100 | |
---|---|---|
committer | 2020-03-07 22:27:02 +0100 | |
commit | f35c9f25f03976e058e892662454b1143fd172cd (patch) | |
tree | 5c81e7d4c623a2c8075bf9310673479dac7fea21 /wgpu/src/widget/canvas/frame.rs | |
parent | 1bb85556915bb00057ef2ee66a596592c292b15b (diff) | |
download | iced-f35c9f25f03976e058e892662454b1143fd172cd.tar.gz iced-f35c9f25f03976e058e892662454b1143fd172cd.tar.bz2 iced-f35c9f25f03976e058e892662454b1143fd172cd.zip |
Rename `canvas::TextNode` to `canvas::Text`
Diffstat (limited to 'wgpu/src/widget/canvas/frame.rs')
-rw-r--r-- | wgpu/src/widget/canvas/frame.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wgpu/src/widget/canvas/frame.rs b/wgpu/src/widget/canvas/frame.rs index cdb9d0e1..44a8d9aa 100644 --- a/wgpu/src/widget/canvas/frame.rs +++ b/wgpu/src/widget/canvas/frame.rs @@ -1,7 +1,7 @@ use iced_native::{Point, Size, Vector}; use crate::{ - canvas::{Fill, Path, Stroke, TextNode}, + canvas::{Fill, Path, Stroke, Text}, triangle, Primitive, }; @@ -16,7 +16,7 @@ pub struct Frame { height: f32, buffers: lyon::tessellation::VertexBuffers<triangle::Vertex2D, u32>, transforms: Transforms, - texts: Vec<TextNode>, + texts: Vec<Text>, } #[derive(Debug)] @@ -158,11 +158,11 @@ impl Frame { let _ = result.expect("Stroke path"); } - /// Draws the text of the given [`TextNode`] on the [`Frame`] + /// Draws the text of the given [`Text`] on the [`Frame`] /// - /// [`TextNode`]: struct.TextNode.html + /// [`Text`]: struct.Text.html /// [`Frame`]: struct.Frame.html - pub fn text(&mut self, text: TextNode) { + pub fn text(&mut self, text: Text) { self.texts.push(text); } |