MCPcopy Create free account

hub / github.com/audulus/rui / functions

Functions680 in github.com/audulus/rui

↓ 3 callersMethodreset
Resets the calculator to its initial state.
examples/calculator/src/calculator.rs:500
↓ 3 callersMethodrole
Specify an accessiblity role.
src/modifiers.rs:133
↓ 3 callersFunctionsave_png
(path: &Path, pixels: &[u8], width: u32, height: u32)
src/screenshot_tests.rs:164
↓ 3 callersFunctionspacer
Inserts a flexible space in a stack.
src/views/spacer.rs:20
↓ 3 callersMethodup
(&mut self, extend_selection: bool)
src/views/text_editor.rs:136
↓ 3 callersMethodwith
(&self, cx: &Context, f: impl FnOnce(&S) -> T)
src/binding.rs:8
↓ 3 callersFunctionzlist
( ids: Vec<ID>, f: F, )
src/views/list.rs:261
↓ 2 callersMethodadd_rect
Adds a rectangle to this region.
src/region.rs:20
↓ 2 callersFunctionalign
( child: LocalRect, parent: LocalRect, halign: HAlignment, valign: VAlignment, )
src/align.rs:33
↓ 2 callersMethodapply_blep
Apply band-limited step correction
examples/synth/src/synth/oscillator.rs:176
↓ 2 callersMethodas_note
(&self)
examples/synth/src/midi_keyboard.rs:46
↓ 2 callersMethodcall
( &self, cx: &mut Context, pt: LocalPoint, inside: bool, actions: &mut
src/views/hover.rs:14
↓ 2 callersMethodcall
(&self, cx: &mut Context, touch_info: TouchInfo, actions: &mut Vec<Box<dyn Any>>)
src/views/touch.rs:32
↓ 2 callersMethodclosest_in_range
( &self, p: LocalPoint, range: std::ops::Range<usize>, rects: &[LocalRect],
src/views/text_editor.rs:101
↓ 2 callersMethoddraw
(&self, path: &mut IdPath, args: &mut DrawArgs)
src/views/key.rs:76
↓ 2 callersMethodexecute_operation
Executes the current arithmetic operation. Handles basic error cases like division by zero.
examples/calculator/src/calculator.rs:426
↓ 2 callersMethodfind_line
(&self)
src/views/text_editor.rs:88
↓ 2 callersMethodflex
Indicates that this item can expand within a stack.
src/modifiers.rs:94
↓ 2 callersMethodfocus_mut
(&self, data: &'a mut Counters)
examples/counter_list.rs:70
↓ 2 callersMethodforeach_cmd
(&self, f: &mut FN)
src/views/command.rs:117
↓ 2 callersMethodfrequency
Calculates the audio frequency of the MIDI note in Hz
examples/synth/src/midi_keyboard.rs:126
↓ 2 callersMethodget_mut
(&self, cx: &'a mut Context)
src/binding.rs:84
↓ 2 callersMethodhandle
Handle an action from a child view.
src/modifiers.rs:195
↓ 2 callersMethodhittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/hover.rs:107
↓ 2 callersMethodid
(&self)
src/views/anyview.rs:23
↓ 2 callersMethodinput_digit
Handles digit input, managing leading zeros and decimal points.
examples/calculator/src/calculator.rs:450
↓ 2 callersMethodis_flexible
(&self)
src/views/flex.rs:76
↓ 2 callersMethodlayout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/stack.rs:96
↓ 2 callersMethodlayout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/size.rs:36
↓ 2 callersMethodlayout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/cond.rs:47
↓ 2 callersMethodlayout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/tap.rs:123
↓ 2 callersMethodlayout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/offset.rs:37
↓ 2 callersMethodlayout_fixed_children
( &self, path: &mut IdPath, proposed_child_size: LocalSize, args: &mut LayoutA
src/views/stack.rs:299
↓ 2 callersMethodlayout_flex_children
( &self, path: &mut IdPath, flex_size: LocalSize, args: &mut LayoutArgs,
src/views/stack.rs:318
↓ 2 callersFunctionmap
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 callersFunctionmy_control
()
examples/custom_modifier.rs:19
↓ 2 callersFunctionmy_control
()
examples/env.rs:15
↓ 2 callersFunctionmy_text
(name: &str)
examples/any_view_modifier.rs:13
↓ 2 callersFunctionmy_text
(name: &str)
examples/custom_modifier_with_state.rs:30
↓ 2 callersMethodname
(&self)
src/views/command.rs:354
↓ 2 callersFunctionon_main
(f: impl FnOnce(&mut Context) + Send + 'static)
src/winit_event_loop.rs:34
↓ 2 callersFunctionoutput_dir
()
src/screenshot_tests.rs:14
↓ 2 callersMethodpress_key
(&mut self, index: MidiNoteId, velocity: MidiNoteId)
examples/synth/src/midi_keyboard.rs:296
↓ 2 callersMethodprocess
( &self, event: &Event, path: &mut IdPath, cx: &mut Context, actions:
src/views/tap.rs:85
↓ 2 callersMethodset_key_mods
Set keyboard modifier state (shift, ctrl, etc).
src/test_harness.rs:117
↓ 2 callersMethodthumb_color
(self, color: Color)
src/views/slider.rs:78
↓ 2 callersMethodtid
(&self)
src/views/anyview.rs:35
↓ 2 callersFunctiontoggle_with_config
(on: impl Binding<bool>, config: ToggleConfig)
src/views/toggle.rs:70
↓ 2 callersMethodtouch
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 callersMethodvger_paint
(&self, vger: &mut Vger)
src/paint.rs:19
↓ 1 callersMethodaccess
( &self, path: &mut IdPath, cx: &mut Context, nodes: &mut Vec<(accesskit::Node
src/views/key.rs:114
↓ 1 callersMethodaction
Adds an action to the menu command.
src/views/command.rs:371
↓ 1 callersFunctionadd_button
(todos: impl Binding<Vec<String>>)
examples/todo_list.rs:3
↓ 1 callersMethodadd_counter
(&mut self)
examples/counter_list.rs:45
↓ 1 callersMethodagro
(self)
examples/custom_modifier.rs:32
↓ 1 callersFunctionanim_to
(current: &mut LocalOffset, target: LocalOffset)
examples/gestures.rs:3
↓ 1 callersMethodapply_percentage
Converts the current number to a percentage (divides by 100).
examples/calculator/src/calculator.rs:493
↓ 1 callersFunctionbutton_example
()
examples/gallery.rs:3
↓ 1 callersMethodcalculate_note_for_index
(&self, index: usize)
examples/synth/src/midi_keyboard.rs:346
↓ 1 callersMethodcall
(&self, cx: &mut Context, tap_info: TapInfo, actions: &mut Vec<Box<dyn Any>>)
src/views/tap.rs:20
↓ 1 callersMethodclear_dirty
(&mut self)
src/context.rs:403
↓ 1 callersMethodclip
Clip to bounds.
src/modifiers.rs:203
↓ 1 callersFunctioncommand
Specifies a menu command.
src/views/command.rs:345
↓ 1 callersMethodcommand_group
Adds a group of menu commands.
src/modifiers.rs:28
↓ 1 callersMethodcommands
Get menu commands.
src/context.rs:341
↓ 1 callersMethoddark_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 callersMethoddirty
(&self, path: &mut IdPath, xform: LocalToWorld, cx: &mut Context)
src/views/key.rs:89
↓ 1 callersMethoddisplay_value
(&self, state: &CalculatorState)
examples/calculator/src/calculator.rs:251
↓ 1 callersMethoddrag_p
Calls a function in response to a drag. Version which passes the position.
src/modifiers.rs:43
↓ 1 callersFunctionenv
Reads from the environment.
src/views/env.rs:84
↓ 1 callersMethodenv
Add an environment value.
src/modifiers.rs:89
↓ 1 callersMethodexec
(&self)
src/views/command.rs:353
↓ 1 callersFunctionfind_flip_cards
Function to find and extract flip cards from JSON data
examples/flip_cards/src/main.rs:9
↓ 1 callersFunctionfmt_layout
Helper to format a layout entry as a readable string.
src/snapshot_tests.rs:4
↓ 1 callersMethodfocus
(&self, data: &'a Counters)
examples/counter_list.rs:66
↓ 1 callersMethodgc
(&self, path: &mut IdPath, cx: &mut Context, map: &mut Vec<ViewId>)
src/views/state.rs:172
↓ 1 callersMethodgc
(&self, path: &mut IdPath, cx: &mut Context, map: &mut Vec<ViewId>)
src/views/key.rs:108
↓ 1 callersMethodgenerate
Generate the BLEP table with the current configuration
examples/synth/src/synth/oscillator.rs:92
↓ 1 callersMethodgenerate_sawtooth
Generate a sawtooth wave sample with optional anti-aliasing
examples/synth/src/synth/oscillator.rs:137
↓ 1 callersMethodgenerate_square
Generate a square wave sample with optional anti-aliasing
examples/synth/src/synth/oscillator.rs:156
↓ 1 callersMethodget
(&self, cx: &'a Context)
src/binding.rs:81
↓ 1 callersMethodgrab_cursor
(self)
src/views/drag.rs:118
↓ 1 callersMethodhittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/touch.rs:151
↓ 1 callersMethodhittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/tap.rs:130
↓ 1 callersMethodhittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/focus.rs:65
↓ 1 callersMethodhittest
(&self, path: &mut IdPath, pt: LocalPoint, cx: &mut Context)
src/views/drag.rs:217
↓ 1 callersMethodhotkey
Adds a hotkey to the menu command.
src/views/command.rs:364
↓ 1 callersMethodhover_p
Calls a function in response to a mouse hovering. Version which passes the position
src/modifiers.rs:81
↓ 1 callersMethodids
(&self)
examples/counter_list.rs:36
↓ 1 callersMethodinput_decimal
Processes decimal point input, ensuring only one decimal point exists.
examples/calculator/src/calculator.rs:467
↓ 1 callersMethodis_default
(self)
src/viewid.rs:19
↓ 1 callersMethodis_dirty
(&self, id: ViewId)
src/context.rs:420
↓ 1 callersMethodis_empty
(&self)
src/views/command.rs:111
↓ 1 callersMethodkey
(&self)
src/views/command.rs:357
↓ 1 callersFunctionknob_example
()
examples/gallery.rs:18
↓ 1 callersMethodlayout
(&self, _path: &mut IdPath, _args: &mut LayoutArgs)
src/views/emptyview.rs:8
↓ 1 callersMethodlayout
(&self, _path: &mut IdPath, _args: &mut LayoutArgs)
src/views/spacer.rs:8
↓ 1 callersMethodlayout
(&self, path: &mut IdPath, args: &mut LayoutArgs)
src/views/drag.rs:204
↓ 1 callersMethodlayout_entries
(&self)
src/context.rs:391
↓ 1 callersFunctionlerp
(x: f32, a: f32, b: f32)
src/views/knob.rs:6
← previousnext →101–200 of 680, ranked by callers