Rename canvas::TextNode to canvas::Text

This commit is contained in:
Héctor Ramón Jiménez 2020-03-07 22:27:02 +01:00
parent 1bb8555691
commit f35c9f25f0
3 changed files with 11 additions and 9 deletions

View file

@ -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