summaryrefslogtreecommitdiffstats
path: root/native/src/renderer
diff options
context:
space:
mode:
authorLibravatar Friz64 <friz64@arch.localdomain>2019-11-25 20:27:15 +0100
committerLibravatar Friz64 <friz64mc@gmail.com>2019-12-02 19:09:17 +0100
commit5eec3a8867f4fbd54e2e28e5d984c2ca7ec0fea4 (patch)
tree2af1212ca051827f434845c6dc14a3b4b91f3bce /native/src/renderer
parente404f5098a4e053f52e75175b6cd677e60d27517 (diff)
downloadiced-5eec3a8867f4fbd54e2e28e5d984c2ca7ec0fea4.tar.gz
iced-5eec3a8867f4fbd54e2e28e5d984c2ca7ec0fea4.tar.bz2
iced-5eec3a8867f4fbd54e2e28e5d984c2ca7ec0fea4.zip
First implementation
Diffstat (limited to 'native/src/renderer')
-rw-r--r--native/src/renderer/null.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs
index 182f033a..c8852ad1 100644
--- a/native/src/renderer/null.rs
+++ b/native/src/renderer/null.rs
@@ -1,7 +1,7 @@
use crate::{
button, checkbox, column, radio, row, scrollable, text, text_input,
Background, Color, Element, Font, HorizontalAlignment, Layout, Point,
- Rectangle, Renderer, Size, VerticalAlignment,
+ Rectangle, Renderer, ScrollbarGrab, Size, VerticalAlignment,
};
/// A renderer that does nothing.
@@ -61,13 +61,14 @@ impl text::Renderer for Null {
}
impl scrollable::Renderer for Null {
- fn is_mouse_over_scrollbar(
+ fn scrollbar_grab(
&self,
_bounds: Rectangle,
_content_bounds: Rectangle,
+ _offset: u32,
_cursor_position: Point,
- ) -> bool {
- false
+ ) -> Option<ScrollbarGrab> {
+ None
}
fn draw(