summaryrefslogtreecommitdiffstats
path: root/src/widget/image.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-15 18:53:13 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-15 18:53:13 +0200
commit655978f480c32bc696f0d5fe2fff834bfbf238ea (patch)
treeee9af0e0e802c7f85004fd28d3854dbb8bfcb4f5 /src/widget/image.rs
parent8834772fa70850559f7bd82cc8432394e3fd9db7 (diff)
downloadiced-655978f480c32bc696f0d5fe2fff834bfbf238ea.tar.gz
iced-655978f480c32bc696f0d5fe2fff834bfbf238ea.tar.bz2
iced-655978f480c32bc696f0d5fe2fff834bfbf238ea.zip
Draft nodes for missing widgets
Diffstat (limited to 'src/widget/image.rs')
-rw-r--r--src/widget/image.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widget/image.rs b/src/widget/image.rs
index d94bfea5..8c869ab8 100644
--- a/src/widget/image.rs
+++ b/src/widget/image.rs
@@ -24,9 +24,11 @@ use std::hash::Hash;
/// let image = Image::new(my_handle);
/// ```
pub struct Image<I> {
- image: I,
+ /// The image handle
+ pub image: I,
source: Option<Rectangle<u16>>,
- width: Option<u16>,
+ /// The width of the image
+ pub width: Option<u16>,
height: Option<u16>,
style: Style,
}