MCPcopy Create free account
hub / github.com/audulus/rui / knob_example

Function knob_example

examples/gallery.rs:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18fn knob_example() -> impl View {
19 hstack((
20 caption("knob"),
21 state(|| 0.5, |s, _| knob(s).size([30.0, 30.0]).padding(Auto)),
22 ))
23}
24
25fn toggle_example() -> impl View {
26 hstack((

Callers 1

mainFunction · 0.85

Calls 6

hstackFunction · 0.85
captionFunction · 0.85
stateFunction · 0.85
knobFunction · 0.85
paddingMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected