MCPcopy Create free account
hub / github.com/Kethku/Pando / Button

Class Button

aspen/src/components/button.rs:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14const ANIM_LENGTH: f64 = 0.1;
15
16pub struct Button {
17 size: Size,
18 idle_background: Color,
19 hover_background: Color,
20 draw_contents: Box<dyn Fn(&mut DrawContext)>,
21
22 state: Rc<RefCell<ButtonState>>,
23}
24
25struct ButtonState {
26 on_clicked: Box<dyn Fn(&mut EventContext)>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…