Implement Empty widget
It can be useful if you want to fill some space with nothing.
This commit is contained in:
parent
7163e1d8b6
commit
8426bf953c
8 changed files with 191 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
mod button;
|
||||
mod checkbox;
|
||||
mod column;
|
||||
mod empty;
|
||||
mod image;
|
||||
mod radio;
|
||||
mod row;
|
||||
|
|
|
|||
8
wgpu/src/renderer/widget/empty.rs
Normal file
8
wgpu/src/renderer/widget/empty.rs
Normal 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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue