Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/audulus/rui
/ functions
Functions
680 in github.com/audulus/rui
⨍
Functions
680
◇
Types & classes
159
↓ 3 callers
Method
reset
Resets the calculator to its initial state.
examples/calculator/src/calculator.rs:500
↓ 3 callers
Method
role
Specify an accessiblity role.
src/modifiers.rs:133
↓ 3 callers
Function
save_png
(path: &Path, pixels: &[u8], width: u32, height: u32)
src/screenshot_tests.rs:164
↓ 3 callers
Function
spacer
Inserts a flexible space in a stack.
src/views/spacer.rs:20
↓ 3 callers
Method
up
(&mut self, extend_selection: bool)
src/views/text_editor.rs:136
↓ 3 callers
Method
with
(&self, cx: &Context, f: impl FnOnce(&S) -> T)
src/binding.rs:8
↓ 3 callers
Function
zlist
( ids: Vec<ID>, f: F, )
src/views/list.rs:261
↓ 2 callers
Method
add_rect
Adds a rectangle to this region.
src/region.rs:20
↓ 2 callers
Function
align
( child: LocalRect, parent: LocalRect, halign: HAlignment, valign: VAlignment, )
src/align.rs:33
↓ 2 callers
Method
apply_blep
Apply band-limited step correction
examples/synth/src/synth/oscillator.rs:176
↓ 2 callers
Method
as_note
(&self)
examples/synth/src/midi_keyboard.rs:46
↓ 2 callers
Method
call
( &self, cx: &mut Context, pt: LocalPoint, inside: bool, actions: &mut
src/views/hover.rs:14
↓ 2 callers
Method
call
(&self, cx: &mut Context, touch_info: TouchInfo, actions: &mut Vec<Box<dyn Any>>)
src/views/touch.rs:32
↓ 2 callers
Method
closest_in_range
( &self, p: LocalPoint, range: std::ops::Range<usize>, rects: &[LocalRect],
src/views/text_editor.rs:101
↓ 2 callers
Method
draw
(&self, path: &mut IdPath, args: &mut DrawArgs)
src/views/key.rs:76
↓ 2 callers
Method
execute_operation
Executes the current arithmetic operation. Handles basic error cases like division by zero.
examples/calculator/src/calculator.rs:426
↓ 2 callers
Method
find_line
(&self)
src/views/text_editor.rs:88
↓ 2 callers
Method
flex
Indicates that this item can expand within a stack.
src/modifiers.rs:94
↓ 2 callers
Method
focus_mut
(&self, data: &'a mut Counters)
examples/counter_list.rs:70
↓ 2 callers
Method
foreach_cmd
(&self, f: &mut FN)
src/views/command.rs:117
↓ 2 callers
Method
frequency
Calculates the audio frequency of the MIDI note in Hz
examples/synth/src/midi_keyboard.rs:126
↓ 2 callers
Method
get_mut
(&self, cx: &'a mut Context)
src/binding.rs:84
↓ 2 callers
Method
handle
Handle an action from a child view.
src/modifiers.rs:195
↓ 2 callers
Method
hittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/hover.rs:107
↓ 2 callers
Method
id
(&self)
src/views/anyview.rs:23
↓ 2 callers
Method
input_digit
Handles digit input, managing leading zeros and decimal points.
examples/calculator/src/calculator.rs:450
↓ 2 callers
Method
is_flexible
(&self)
src/views/flex.rs:76
↓ 2 callers
Method
layout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/stack.rs:96
↓ 2 callers
Method
layout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/size.rs:36
↓ 2 callers
Method
layout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/cond.rs:47
↓ 2 callers
Method
layout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/tap.rs:123
↓ 2 callers
Method
layout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/offset.rs:37
↓ 2 callers
Method
layout_fixed_children
( &self, path: &mut IdPath, proposed_child_size: LocalSize, args: &mut LayoutA
src/views/stack.rs:299
↓ 2 callers
Method
layout_flex_children
( &self, path: &mut IdPath, flex_size: LocalSize, args: &mut LayoutArgs,
src/views/stack.rs:318
↓ 2 callers
Function
map
Maps state into local state. For example: ```no_run # use rui::*; #[derive(Debug, Default)] struct MyState { x: f32, } fn main() { rui(state(MySta
src/views/map.rs:132
↓ 2 callers
Function
my_control
()
examples/custom_modifier.rs:19
↓ 2 callers
Function
my_control
()
examples/env.rs:15
↓ 2 callers
Function
my_text
(name: &str)
examples/any_view_modifier.rs:13
↓ 2 callers
Function
my_text
(name: &str)
examples/custom_modifier_with_state.rs:30
↓ 2 callers
Method
name
(&self)
src/views/command.rs:354
↓ 2 callers
Function
on_main
(f: impl FnOnce(&mut Context) + Send + 'static)
src/winit_event_loop.rs:34
↓ 2 callers
Function
output_dir
()
src/screenshot_tests.rs:14
↓ 2 callers
Method
press_key
(&mut self, index: MidiNoteId, velocity: MidiNoteId)
examples/synth/src/midi_keyboard.rs:296
↓ 2 callers
Method
process
( &self, event: &Event, path: &mut IdPath, cx: &mut Context, actions:
src/views/tap.rs:85
↓ 2 callers
Method
set_key_mods
Set keyboard modifier state (shift, ctrl, etc).
src/test_harness.rs:117
↓ 2 callers
Method
thumb_color
(self, color: Color)
src/views/slider.rs:78
↓ 2 callers
Method
tid
(&self)
src/views/anyview.rs:35
↓ 2 callers
Function
toggle_with_config
(on: impl Binding<bool>, config: ToggleConfig)
src/views/toggle.rs:70
↓ 2 callers
Method
touch
Calls a function in response to a touch. #### Why use this? You need to know the position of the touch. You need to handle the beginning and end of th
src/modifiers.rs:182
↓ 2 callers
Method
vger_paint
(&self, vger: &mut Vger)
src/paint.rs:19
↓ 1 callers
Method
access
( &self, path: &mut IdPath, cx: &mut Context, nodes: &mut Vec<(accesskit::Node
src/views/key.rs:114
↓ 1 callers
Method
action
Adds an action to the menu command.
src/views/command.rs:371
↓ 1 callers
Function
add_button
(todos: impl Binding<Vec<String>>)
examples/todo_list.rs:3
↓ 1 callers
Method
add_counter
(&mut self)
examples/counter_list.rs:45
↓ 1 callers
Method
agro
(self)
examples/custom_modifier.rs:32
↓ 1 callers
Function
anim_to
(current: &mut LocalOffset, target: LocalOffset)
examples/gestures.rs:3
↓ 1 callers
Method
apply_percentage
Converts the current number to a percentage (divides by 100).
examples/calculator/src/calculator.rs:493
↓ 1 callers
Function
button_example
()
examples/gallery.rs:3
↓ 1 callers
Method
calculate_note_for_index
(&self, index: usize)
examples/synth/src/midi_keyboard.rs:346
↓ 1 callers
Method
call
(&self, cx: &mut Context, tap_info: TapInfo, actions: &mut Vec<Box<dyn Any>>)
src/views/tap.rs:20
↓ 1 callers
Method
clear_dirty
(&mut self)
src/context.rs:403
↓ 1 callers
Method
clip
Clip to bounds.
src/modifiers.rs:203
↓ 1 callers
Function
command
Specifies a menu command.
src/views/command.rs:345
↓ 1 callers
Method
command_group
Adds a group of menu commands.
src/modifiers.rs:28
↓ 1 callers
Method
commands
Get menu commands.
src/context.rs:341
↓ 1 callers
Method
dark_mode
Enable dark mode for the calculator. Changes the color scheme to use darker backgrounds and lighter text.
examples/calculator/src/calculator.rs:69
↓ 1 callers
Method
dirty
(&self, path: &mut IdPath, xform: LocalToWorld, cx: &mut Context)
src/views/key.rs:89
↓ 1 callers
Method
display_value
(&self, state: &CalculatorState)
examples/calculator/src/calculator.rs:251
↓ 1 callers
Method
drag_p
Calls a function in response to a drag. Version which passes the position.
src/modifiers.rs:43
↓ 1 callers
Function
env
Reads from the environment.
src/views/env.rs:84
↓ 1 callers
Method
env
Add an environment value.
src/modifiers.rs:89
↓ 1 callers
Method
exec
(&self)
src/views/command.rs:353
↓ 1 callers
Function
find_flip_cards
Function to find and extract flip cards from JSON data
examples/flip_cards/src/main.rs:9
↓ 1 callers
Function
fmt_layout
Helper to format a layout entry as a readable string.
src/snapshot_tests.rs:4
↓ 1 callers
Method
focus
(&self, data: &'a Counters)
examples/counter_list.rs:66
↓ 1 callers
Method
gc
(&self, path: &mut IdPath, cx: &mut Context, map: &mut Vec<ViewId>)
src/views/state.rs:172
↓ 1 callers
Method
gc
(&self, path: &mut IdPath, cx: &mut Context, map: &mut Vec<ViewId>)
src/views/key.rs:108
↓ 1 callers
Method
generate
Generate the BLEP table with the current configuration
examples/synth/src/synth/oscillator.rs:92
↓ 1 callers
Method
generate_sawtooth
Generate a sawtooth wave sample with optional anti-aliasing
examples/synth/src/synth/oscillator.rs:137
↓ 1 callers
Method
generate_square
Generate a square wave sample with optional anti-aliasing
examples/synth/src/synth/oscillator.rs:156
↓ 1 callers
Method
get
(&self, cx: &'a Context)
src/binding.rs:81
↓ 1 callers
Method
grab_cursor
(self)
src/views/drag.rs:118
↓ 1 callers
Method
hittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/touch.rs:151
↓ 1 callers
Method
hittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/tap.rs:130
↓ 1 callers
Method
hittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/focus.rs:65
↓ 1 callers
Method
hittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/drag.rs:217
↓ 1 callers
Method
hotkey
Adds a hotkey to the menu command.
src/views/command.rs:364
↓ 1 callers
Method
hover_p
Calls a function in response to a mouse hovering. Version which passes the position
src/modifiers.rs:81
↓ 1 callers
Method
ids
(&self)
examples/counter_list.rs:36
↓ 1 callers
Method
input_decimal
Processes decimal point input, ensuring only one decimal point exists.
examples/calculator/src/calculator.rs:467
↓ 1 callers
Method
is_default
(self)
src/viewid.rs:19
↓ 1 callers
Method
is_dirty
(&self, id: ViewId)
src/context.rs:420
↓ 1 callers
Method
is_empty
(&self)
src/views/command.rs:111
↓ 1 callers
Method
key
(&self)
src/views/command.rs:357
↓ 1 callers
Function
knob_example
()
examples/gallery.rs:18
↓ 1 callers
Method
layout
(&self, _path: &mut IdPath, _args: &mut LayoutArgs)
src/views/emptyview.rs:8
↓ 1 callers
Method
layout
(&self, _path: &mut IdPath, _args: &mut LayoutArgs)
src/views/spacer.rs:8
↓ 1 callers
Method
layout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/drag.rs:204
↓ 1 callers
Method
layout_entries
(&self)
src/context.rs:391
↓ 1 callers
Function
lerp
(x: f32, a: f32, b: f32)
src/views/knob.rs:6
← previous
next →
101–200 of 680, ranked by callers