idek stuff like stack
This commit is contained in:
@@ -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