diff options
author | 2025-02-09 06:38:48 +0100 | |
---|---|---|
committer | 2025-02-09 06:38:48 +0100 | |
commit | f3ae4266e9727940ba0d0e8469362923590916f4 (patch) | |
tree | 2a6871b981c083fe01b90511b58f510da7ed9ce2 /examples/scrollable | |
parent | ab236376a3f8f1ac3cdd8aeb0ffeee45e3de37e3 (diff) | |
download | iced-f3ae4266e9727940ba0d0e8469362923590916f4.tar.gz iced-f3ae4266e9727940ba0d0e8469362923590916f4.tar.bz2 iced-f3ae4266e9727940ba0d0e8469362923590916f4.zip |
Implement `From<u32>` instead of `u16` for `Length` and `Pixels`
Diffstat (limited to 'examples/scrollable')
-rw-r--r-- | examples/scrollable/src/main.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs index 6359fb5a..fec4e1b4 100644 --- a/examples/scrollable/src/main.rs +++ b/examples/scrollable/src/main.rs @@ -21,9 +21,9 @@ pub fn main() -> iced::Result { struct ScrollableDemo { scrollable_direction: Direction, - scrollbar_width: u16, - scrollbar_margin: u16, - scroller_width: u16, + scrollbar_width: u32, + scrollbar_margin: u32, + scroller_width: u32, current_scroll_offset: scrollable::RelativeOffset, anchor: scrollable::Anchor, } @@ -39,9 +39,9 @@ enum Direction { enum Message { SwitchDirection(Direction), AlignmentChanged(scrollable::Anchor), - ScrollbarWidthChanged(u16), - ScrollbarMarginChanged(u16), - ScrollerWidthChanged(u16), + ScrollbarWidthChanged(u32), + ScrollbarMarginChanged(u32), + ScrollerWidthChanged(u32), ScrollToBeginning, ScrollToEnd, Scrolled(scrollable::Viewport), |