summaryrefslogtreecommitdiffstats
path: root/wgpu/src/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-06 21:01:09 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-06 21:01:09 +0100
commitd0dc7cebf9c352f4d14827fe47489788f59e61a1 (patch)
tree17699c2225001ecf23e6730b3a3d3cbcca92ca10 /wgpu/src/widget
parentf7dfd6537429f94af63d75617c27bc998d72d9c8 (diff)
downloadiced-d0dc7cebf9c352f4d14827fe47489788f59e61a1.tar.gz
iced-d0dc7cebf9c352f4d14827fe47489788f59e61a1.tar.bz2
iced-d0dc7cebf9c352f4d14827fe47489788f59e61a1.zip
Implement styling for `Scrollable`
Diffstat (limited to 'wgpu/src/widget')
-rw-r--r--wgpu/src/widget/scrollable.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/wgpu/src/widget/scrollable.rs b/wgpu/src/widget/scrollable.rs
new file mode 100644
index 00000000..1d236105
--- /dev/null
+++ b/wgpu/src/widget/scrollable.rs
@@ -0,0 +1,13 @@
+//! Navigate an endless amount of content with a scrollbar.
+use crate::Renderer;
+
+pub use iced_native::scrollable::State;
+pub use iced_style::scrollable::{Scrollbar, Scroller, StyleSheet};
+
+/// A widget that can vertically display an infinite amount of content
+/// with a scrollbar.
+///
+/// This is an alias of an `iced_native` scrollable with a default
+/// `Renderer`.
+pub type Scrollable<'a, Message> =
+ iced_native::Scrollable<'a, Message, Renderer>;