diff options
author | 2019-09-15 17:43:15 +0200 | |
---|---|---|
committer | 2019-09-15 17:43:15 +0200 | |
commit | 8834772fa70850559f7bd82cc8432394e3fd9db7 (patch) | |
tree | 84522dca905c8a3803dc728726975c7095c06557 /src/widget/text.rs | |
parent | 27ac85a9d98474904c422a891e54888376dec00a (diff) | |
download | iced-8834772fa70850559f7bd82cc8432394e3fd9db7.tar.gz iced-8834772fa70850559f7bd82cc8432394e3fd9db7.tar.bz2 iced-8834772fa70850559f7bd82cc8432394e3fd9db7.zip |
Draft widget nodes and wire interaction
Diffstat (limited to '')
-rw-r--r-- | src/widget/text.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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<Color> { - content: String, - size: Option<u16>, + /// The text contents + pub content: String, + /// The text size + pub size: Option<u16>, color: Option<Color>, style: Style, horizontal_alignment: HorizontalAlignment, |