This commit is contained in:
2025-08-14 15:05:55 -04:00
parent e41970287d
commit c5aa0a02e2
3 changed files with 3 additions and 15 deletions

View File

@@ -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>>>);