From 719c073fc67c87d6b2da1bc01b74751d3f5e59f0 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 25 Oct 2019 03:47:34 +0200 Subject: Draft `Scrollable` widget (no clipping yet!) --- native/src/widget.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'native/src/widget.rs') diff --git a/native/src/widget.rs b/native/src/widget.rs index bcef2665..0d3f6d2c 100644 --- a/native/src/widget.rs +++ b/native/src/widget.rs @@ -26,6 +26,7 @@ pub mod column; pub mod image; pub mod radio; pub mod row; +pub mod scrollable; pub mod slider; pub mod text; @@ -42,6 +43,8 @@ pub use radio::Radio; #[doc(no_inline)] pub use row::Row; #[doc(no_inline)] +pub use scrollable::Scrollable; +#[doc(no_inline)] pub use slider::Slider; #[doc(no_inline)] pub use text::Text; -- cgit From 9dabbf78857c3a60583227d3aa2fa6e030f085d0 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 29 Oct 2019 03:34:21 +0100 Subject: Provide `Renderer` to `Widget::on_event` This allows us to implement configurable event processing that adapts to different rendering strategies. --- native/src/widget.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'native/src/widget.rs') diff --git a/native/src/widget.rs b/native/src/widget.rs index 0d3f6d2c..c04f3377 100644 --- a/native/src/widget.rs +++ b/native/src/widget.rs @@ -117,6 +117,7 @@ where _layout: Layout<'_>, _cursor_position: Point, _messages: &mut Vec, + _renderer: &Renderer, ) { } } -- cgit