Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
18
fn 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
25
fn toggle_example() -> impl View {
26
hstack((
Callers
1
main
Function · 0.85
Calls
6
hstack
Function · 0.85
caption
Function · 0.85
state
Function · 0.85
knob
Function · 0.85
padding
Method · 0.80
size
Method · 0.45
Tested by
no test coverage detected