summaryrefslogtreecommitdiffstats
path: root/native/src/renderer
diff options
context:
space:
mode:
authorLibravatar Friz64 <friz64mc@gmail.com>2019-12-02 18:51:34 +0100
committerLibravatar Friz64 <friz64mc@gmail.com>2019-12-02 19:12:05 +0100
commit6943041e0fad65927a741e316509bf07bdaa2f61 (patch)
treedf73b7f8e5d2a51a437d70984192393909e39dfd /native/src/renderer
parent9a733bb3c89e15ada05fc90efb71eeae12b8c9c1 (diff)
downloadiced-6943041e0fad65927a741e316509bf07bdaa2f61.tar.gz
iced-6943041e0fad65927a741e316509bf07bdaa2f61.tar.bz2
iced-6943041e0fad65927a741e316509bf07bdaa2f61.zip
Address suggestions
Diffstat (limited to 'native/src/renderer')
-rw-r--r--native/src/renderer/null.rs23
1 files changed, 9 insertions, 14 deletions
diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs
index c06d1dfa..2ce150c0 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, ScrollbarGrab, Size, VerticalAlignment,
+ Rectangle, Renderer, Size, VerticalAlignment,
};
/// A renderer that does nothing.
@@ -61,24 +61,17 @@ impl text::Renderer for Null {
}
impl scrollable::Renderer for Null {
- fn scrollbar_bounds(
- &self,
- _bounds: Rectangle,
- _content_bounds: Rectangle,
- _offset: u32,
- ) -> (Rectangle, Rectangle) {
+ fn scrollbar_bounds(_bounds: Rectangle) -> Rectangle {
Default::default()
}
- fn scrollbar_grab(
- &self,
+ fn scroller_bounds(
_bounds: Rectangle,
_content_bounds: Rectangle,
- _background_bounds: Rectangle,
- _scroller_bounds: Rectangle,
- _cursor_position: Point,
- ) -> Option<ScrollbarGrab> {
- None
+ _scrollbar_bounds: Rectangle,
+ _offset: u32,
+ ) -> Rectangle {
+ Default::default()
}
fn draw(
@@ -88,6 +81,8 @@ impl scrollable::Renderer for Null {
_content_bounds: Rectangle,
_is_mouse_over: bool,
_is_mouse_over_scrollbar: bool,
+ _scrollbar_bounds: Rectangle,
+ _scroller_bounds: Rectangle,
_offset: u32,
_content: Self::Output,
) {