initial text impl

This commit is contained in:
2025-08-23 21:15:39 -04:00
parent abcbc267b5
commit 5ce6fca275
33 changed files with 530 additions and 117 deletions

View File

@@ -1,4 +1,8 @@
use crate::{HashMap, Ui, UiRegion, Vec2, WidgetId, util::Id};
use crate::{
HashMap,
layout::{Ui, UiRegion, Vec2, WidgetId},
util::Id,
};
#[derive(Clone, Copy, PartialEq)]
pub enum Sense {
@@ -81,10 +85,7 @@ impl<Ctx> Ui<Ctx> {
for sensor in &mut group.sensors {
if should_run(sensor.sense, group.cursor, group.hover) {
(sensor.f.box_clone())(SenseCtx {
ui: self,
app: ctx,
});
(sensor.f.box_clone())(SenseCtx { ui: self, app: ctx });
}
}
}