new workspace
This commit is contained in:
15
wgui/src/widget/div.rs
Normal file
15
wgui/src/widget/div.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use super::{WidgetObj, WidgetState};
|
||||
|
||||
pub struct Div {}
|
||||
|
||||
impl Div {
|
||||
pub fn create() -> anyhow::Result<WidgetState> {
|
||||
WidgetState::new(Box::new(Self {}))
|
||||
}
|
||||
}
|
||||
|
||||
impl WidgetObj for Div {
|
||||
fn draw(&mut self, _state: &mut super::DrawState, _params: &super::DrawParams) {
|
||||
// no-op
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user