summaryrefslogtreecommitdiffstats
path: root/src/widget/image.rs
diff options
context:
space:
mode:
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,
}