MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / Button

Class Button

src/components/button.rs:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8type ClickCallback = Arc<dyn Fn() + Send + Sync>;
9
10pub struct Button {
11 label: String,
12 style: Style,
13 bounds: Rect,
14 on_click: Option<ClickCallback>,
15}
16
17impl Button {
18 pub fn new<S: Into<String>>(label: S) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected