Support null renderer
This commit is contained in:
parent
c12ba14dda
commit
9a733bb3c8
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue