Make viewport bounds public

This commit is contained in:
Cory Forsstrom 2023-06-13 08:22:33 -07:00
parent 4f066b516b
commit 905c307f0b

View file

@ -1099,8 +1099,10 @@ impl Offset {
pub struct Viewport { pub struct Viewport {
offset_x: Offset, offset_x: Offset,
offset_y: Offset, offset_y: Offset,
bounds: Rectangle, /// The viewport bounds of the [`Scrollable`].
content_bounds: Rectangle, pub bounds: Rectangle,
/// The content bounds of the [`Scrollable`].
pub content_bounds: Rectangle,
} }
impl Viewport { impl Viewport {