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

@@ -47,6 +47,6 @@ impl<'a, Ctx> Painter<'a, Ctx> {
} }
pub fn ctx_mut(&mut self) -> &mut Ctx { pub fn ctx_mut(&mut self) -> &mut Ctx {
&mut self.ctx self.ctx
} }
} }

View File

@@ -1,5 +1,5 @@
use crate::{ use crate::{
HashMap, Painter, Vec2, Widget, WidgetId, WidgetLike, HashMap, Painter, Widget, WidgetId, WidgetLike,
primitive::Primitives, primitive::Primitives,
util::{IDTracker, Id}, util::{IDTracker, Id},
}; };
@@ -17,18 +17,6 @@ pub struct Ui<Ctx> {
full_redraw: bool, full_redraw: bool,
} }
pub struct MouseState {
pos: Vec2,
primary: ButtonState,
secondary: ButtonState,
}
pub enum ButtonState {
JustPressed,
Pressed,
Released,
}
#[derive(Default)] #[derive(Default)]
pub struct Widgets<Ctx>(HashMap<Id, Box<dyn Widget<Ctx>>>); pub struct Widgets<Ctx>(HashMap<Id, Box<dyn Widget<Ctx>>>);

View File

@@ -1,4 +1,4 @@
use gui::{primitive::Primitives, UIRenderNode, Ui}; use gui::{UIRenderNode, primitive::Primitives};
use pollster::FutureExt; use pollster::FutureExt;
use std::sync::Arc; use std::sync::Arc;
use wgpu::util::StagingBelt; use wgpu::util::StagingBelt;