From 8834772fa70850559f7bd82cc8432394e3fd9db7 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 15 Sep 2019 17:43:15 +0200 Subject: Draft widget nodes and wire interaction --- src/widget/text.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/widget/text.rs') diff --git a/src/widget/text.rs b/src/widget/text.rs index 59b599bb..b529cfd2 100644 --- a/src/widget/text.rs +++ b/src/widget/text.rs @@ -29,8 +29,10 @@ use std::hash::Hash; /// ``` #[derive(Debug, Clone)] pub struct Text { - content: String, - size: Option, + /// The text contents + pub content: String, + /// The text size + pub size: Option, color: Option, style: Style, horizontal_alignment: HorizontalAlignment, -- cgit