diff options
author | 2019-11-30 18:16:01 +0100 | |
---|---|---|
committer | 2019-12-02 19:12:05 +0100 | |
commit | 9a733bb3c89e15ada05fc90efb71eeae12b8c9c1 (patch) | |
tree | e9ae10178a6950b1d8c5940c9e67c7f3d1c773e5 /native | |
parent | c12ba14ddad40e8f0e656ae0f8a43c87f0b5907f (diff) | |
download | iced-9a733bb3c89e15ada05fc90efb71eeae12b8c9c1.tar.gz iced-9a733bb3c89e15ada05fc90efb71eeae12b8c9c1.tar.bz2 iced-9a733bb3c89e15ada05fc90efb71eeae12b8c9c1.zip |
Support null renderer
Diffstat (limited to 'native')
-rw-r--r-- | native/src/renderer/null.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs index c8852ad1..c06d1dfa 100644 --- a/native/src/renderer/null.rs +++ b/native/src/renderer/null.rs @@ -61,11 +61,21 @@ impl text::Renderer for Null { } impl scrollable::Renderer for Null { - fn scrollbar_grab( + fn scrollbar_bounds( &self, _bounds: Rectangle, _content_bounds: Rectangle, _offset: u32, + ) -> (Rectangle, Rectangle) { + Default::default() + } + + fn scrollbar_grab( + &self, + _bounds: Rectangle, + _content_bounds: Rectangle, + _background_bounds: Rectangle, + _scroller_bounds: Rectangle, _cursor_position: Point, ) -> Option<ScrollbarGrab> { None |