idek stuff like stack
This commit is contained in:
1 parent
a7dfacb83e
commit
f4aef3a983
15 files changed
+138
-42
No files matched your search
+2
-2
@@ -4,7 +4,7 @@ pub trait SenseCtx: 'static {
|
||||
fn active(&mut self, trigger: &SenseTrigger) -> bool;
|
||||
}
|
||||
|
||||
pub trait Sensable<W, Ctx: SenseCtx, Tag> {
|
||||
pub trait Sensable<W, Ctx, Tag> {
|
||||
fn sense(
|
||||
self,
|
||||
sense: Sense,
|
||||
@@ -21,7 +21,7 @@ pub trait Sensable<W, Ctx: SenseCtx, Tag> {
|
||||
W: Widget<Ctx>;
|
||||
}
|
||||
|
||||
impl<W: WidgetLike<Ctx, Tag>, Ctx: SenseCtx, Tag> Sensable<W::Widget, Ctx, Tag> for W {
|
||||
impl<W: WidgetLike<Ctx, Tag>, Ctx, Tag> Sensable<W::Widget, Ctx, Tag> for W {
|
||||
fn sense(self, sense: Sense, f: impl SenseFn<Ctx> + Clone) -> impl WidgetIdFn<W::Widget, Ctx> {
|
||||
move |ui| {
|
||||
let id = self.add(ui);
|
||||
|
||||
Reference in new issue
Block a user