First implementation
This commit is contained in:
parent
e404f5098a
commit
5eec3a8867
5 changed files with 119 additions and 51 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue