From 905c307f0b78d9957a82a95b0ba537be23fa4035 Mon Sep 17 00:00:00 2001 From: Cory Forsstrom Date: Tue, 13 Jun 2023 08:22:33 -0700 Subject: Make viewport bounds public --- widget/src/scrollable.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widget/src/scrollable.rs') 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 { -- cgit