Implement Empty widget

It can be useful if you want to fill some space with nothing.
This commit is contained in:
Héctor Ramón Jiménez 2019-12-30 19:20:59 +01:00
parent 7163e1d8b6
commit 8426bf953c
8 changed files with 191 additions and 4 deletions

View file

@ -1,6 +1,7 @@
mod button;
mod checkbox;
mod column;
mod empty;
mod image;
mod radio;
mod row;

View file

@ -0,0 +1,8 @@
use crate::{Primitive, Renderer};
use iced_native::{empty, MouseCursor, Rectangle};
impl empty::Renderer for Renderer {
fn draw(&mut self, _bounds: Rectangle) -> Self::Output {
(Primitive::None, MouseCursor::OutOfBounds)
}
}