diff options
author | 2023-06-13 08:22:33 -0700 | |
---|---|---|
committer | 2023-07-04 10:43:12 -0700 | |
commit | 905c307f0b78d9957a82a95b0ba537be23fa4035 (patch) | |
tree | 814e234c7cacdba62b3b1b544824d9d2aa7f2b18 /widget/src | |
parent | 4f066b516bd7c5a8a3a55f01d09d650e10567839 (diff) | |
download | iced-905c307f0b78d9957a82a95b0ba537be23fa4035.tar.gz iced-905c307f0b78d9957a82a95b0ba537be23fa4035.tar.bz2 iced-905c307f0b78d9957a82a95b0ba537be23fa4035.zip |
Make viewport bounds public
Diffstat (limited to 'widget/src')
-rw-r--r-- | widget/src/scrollable.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index b6111975..79e5fe3e 100644 --- a/widget/src/scrollable.rs +++ b/widget/src/scrollable.rs @@ -1099,8 +1099,10 @@ impl Offset { pub struct Viewport { offset_x: Offset, offset_y: Offset, - bounds: Rectangle, - content_bounds: Rectangle, + /// The viewport bounds of the [`Scrollable`]. + pub bounds: Rectangle, + /// The content bounds of the [`Scrollable`]. + pub content_bounds: Rectangle, } impl Viewport { |