clean up
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use crate::{
|
||||
HashMap, Painter, Vec2, Widget, WidgetId, WidgetLike,
|
||||
HashMap, Painter, Widget, WidgetId, WidgetLike,
|
||||
primitive::Primitives,
|
||||
util::{IDTracker, Id},
|
||||
};
|
||||
@@ -17,18 +17,6 @@ pub struct Ui<Ctx> {
|
||||
full_redraw: bool,
|
||||
}
|
||||
|
||||
pub struct MouseState {
|
||||
pos: Vec2,
|
||||
primary: ButtonState,
|
||||
secondary: ButtonState,
|
||||
}
|
||||
|
||||
pub enum ButtonState {
|
||||
JustPressed,
|
||||
Pressed,
|
||||
Released,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Widgets<Ctx>(HashMap<Id, Box<dyn Widget<Ctx>>>);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user