Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bkirwi/armrest
/ functions
Functions
266 in github.com/bkirwi/armrest
⨍
Functions
266
◇
Types & classes
68
↓ 45 callers
Method
map
(self, map_fn: F)
src/ui/widget.rs:205
↓ 40 callers
Method
len
(&self)
src/ink.rs:185
↓ 36 callers
Method
push
(&mut self, x: f32, y: f32, time: f32)
src/ink.rs:136
↓ 25 callers
Method
append
(&mut self, mut other: Ink, time_offset: f32)
src/ink.rs:146
↓ 22 callers
Method
split
(&self, split: Side, value: i32)
src/geom.rs:59
↓ 17 callers
Method
push
(&mut self, widget: T)
src/ui/widget.rs:343
↓ 15 callers
Method
clone
(&self)
src/app.rs:40
↓ 15 callers
Method
split_off
(&mut self, side: Side, offset: i32)
src/ui/widget.rs:37
↓ 14 callers
Method
render_split
(&self, view: &mut View<Self::Message>, split: Side, positioning: f32)
src/ui/widget.rs:184
↓ 13 callers
Method
handlers
(&mut self)
src/ui/widget.rs:28
↓ 12 callers
Method
len
()
src/ml.rs:109
↓ 12 callers
Method
size
(&self)
src/ui/widget.rs:24
↓ 12 callers
Method
write
(&mut self, x: i32, y: i32, color: color)
src/ui/canvas.rs:37
↓ 10 callers
Method
contains
(&self, point: Point2<i32>)
src/geom.rs:104
↓ 10 callers
Method
pen_up
(&mut self)
src/ink.rs:170
↓ 10 callers
Method
words
Split the given string into words, and append each of them to the current Text.
src/ui/text.rs:376
↓ 10 callers
Function
xy
(p: Point3<f32>)
src/math.rs:5
↓ 8 callers
Method
framebuffer
(&mut self)
src/ui/canvas.rs:29
↓ 8 callers
Method
strokes
Iterate over the distinct strokes in the ink
src/ink.rs:214
↓ 7 callers
Method
clear
(&mut self)
src/ink.rs:177
↓ 7 callers
Method
into_text
(mut self)
src/ui/text.rs:266
↓ 7 callers
Function
load_tensors
(test_file)
script/training.py:34
↓ 6 callers
Method
annotate
(&mut self, ink: &Ink)
src/ui/widget.rs:45
↓ 6 callers
Method
bounds
(&self)
src/ink.rs:103
↓ 6 callers
Method
hash
(&self, state: &mut H)
src/ui/text.rs:89
↓ 6 callers
Method
last
(&self)
src/ui/widget.rs:426
↓ 6 callers
Method
on_ink
(&mut self, message_fn: impl FnOnce(Ink) -> M)
src/ui/widget.rs:131
↓ 5 callers
Method
bounds
(&self)
src/ui/canvas.rs:33
↓ 5 callers
Method
fetch_increment
(&mut self)
src/ui/screen.rs:94
↓ 5 callers
Method
message
(mut self, message: M)
src/ui/text.rs:241
↓ 5 callers
Method
total
(self)
src/ml.rs:407
↓ 4 callers
Method
calculate_best_match
(&mut self)
examples/demo.rs:218
↓ 4 callers
Method
distance
Estimate the distance between `self` and the given template, using the optimized $P algorithm. Returns the estimated distance or `ceiling`, whichever
src/dollar.rs:149
↓ 4 callers
Function
douglas_peucker
(data: &Ink, distance: f32)
src/math.rs:31
↓ 4 callers
Function
load_model_and_checkpoint
(model, checkpoint)
script/training.py:654
↓ 4 callers
Function
normalize
(pairs)
script/training.py:224
↓ 4 callers
Method
on_tap
NB: allows tapping with the pen.
src/ui/widget.rs:109
↓ 4 callers
Method
pad
(&self, padding: i32)
src/geom.rs:145
↓ 4 callers
Method
rect
(&self)
src/geom.rs:166
↓ 4 callers
Method
render
(&self, view: View<Self::Message>)
src/app.rs:312
↓ 4 callers
Method
root
(&mut self)
src/ui/screen.rs:317
↓ 4 callers
Method
size
(&self)
src/ui/screen.rs:209
↓ 4 callers
Method
translate
(mut self, offset: Vector2<f32>)
src/ink.rs:124
↓ 4 callers
Method
truncate
(&mut self)
src/ui/screen.rs:359
↓ 3 callers
Function
beam_decode
( buffer: &[f32], beam_width: usize, alphabet: &[char], lm: &impl LanguageModel, )
src/ml.rs:412
↓ 3 callers
Function
dataset_from_pairs
Accepts string->[N,4]d tensor pairs and returs a dataset
script/training.py:103
↓ 3 callers
Method
draw
(&self, canvas: &mut Canvas)
examples/todo.rs:53
↓ 3 callers
Method
is_before
(&self, other: Sequence)
src/ui/screen.rs:100
↓ 3 callers
Method
is_pen_up
(&self, index: usize)
src/ink.rs:166
↓ 3 callers
Method
last_mut
(&mut self)
src/ui/widget.rs:430
↓ 3 callers
Method
leave_rest_blank
(self)
src/ui/widget.rs:53
↓ 3 callers
Method
no_message
(mut self)
src/ui/text.rs:251
↓ 3 callers
Method
on_erase
NB: unlike on_ink, this triggers if there's any overlap between the region and the ink. This is typically more appropriate for erasing, since if eg. w
src/ui/widget.rs:145
↓ 3 callers
Method
recognize
( &mut self, ink: &MI, decoder: &O, )
src/ml.rs:292
↓ 3 callers
Method
region
(&self)
src/geom.rs:192
↓ 3 callers
Method
resample
(&self, distance: f32)
src/ink.rs:311
↓ 3 callers
Function
save_inks
(pairs, filename)
script/training.py:79
↓ 3 callers
Method
send
(&self, message: M)
src/app.rs:21
↓ 3 callers
Method
space
(mut self)
src/ui/text.rs:322
↓ 3 callers
Method
update
(&mut self, msg: Self::Message)
examples/demo.rs:319
↓ 3 callers
Method
void
(self)
src/ui/widget.rs:215
↓ 2 callers
Function
build_model
(step_size=10)
script/training.py:484
↓ 2 callers
Method
centroid
(&self)
src/ink.rs:116
↓ 2 callers
Function
cer
(pred, true)
script/training.py:100
↓ 2 callers
Function
clean_iam_text
(line)
script/training.py:197
↓ 2 callers
Method
cloud_distance
(&self, template: &Points, start: usize, min_so_far: f32)
src/dollar.rs:108
↓ 2 callers
Method
contains_prefix
(&self, prefix: &String)
src/bin/test-tflite.rs:21
↓ 2 callers
Function
ctc_decode
(predicted_labels, predicted_lengths, beam_width=1)
script/training.py:118
↓ 2 callers
Method
current_route
When this value changes, the App code will flash the screen black and white before redrawing. This is mostly useful to clear ghosting. Having the scr
src/app.rs:75
↓ 2 callers
Method
draw
(self, fragment: &impl Fragment)
src/ui/widget.rs:49
↓ 2 callers
Method
draw
(mut self, hash: ContentHash, draw_fn: impl FnOnce(Canvas))
src/ui/screen.rs:398
↓ 2 callers
Method
draw
(&self, canvas: &mut Canvas)
src/ui/text.rs:96
↓ 2 callers
Method
draw
(&self, canvas: &mut Canvas)
examples/demo.rs:139
↓ 2 callers
Function
encode_string
(string)
script/training.py:28
↓ 2 callers
Method
erase
(&mut self, eraser: &Ink, radius: f32)
src/ink.rs:223
↓ 2 callers
Function
filter_valid
(pairs)
script/training.py:420
↓ 2 callers
Method
length
(&self)
src/input.rs:43
↓ 2 callers
Method
literal
(size: i32, font: &Font<'static>, text: &str)
src/ui/text.rs:131
↓ 2 callers
Method
midpoint
(&self)
src/input.rs:47
↓ 2 callers
Function
model_to_prediction_model
(model)
script/training.py:518
↓ 2 callers
Function
nodes_of_type
(root, type)
script/training.py:343
↓ 2 callers
Method
normalize
(&mut self, target_height: f32)
src/ink.rs:269
↓ 2 callers
Method
odds
(&self, _prefix: &str, ch: char)
src/ml.rs:367
↓ 2 callers
Method
opposite
(&self)
src/geom.rs:13
↓ 2 callers
Method
pen_near
(&mut self, pen: Tool, entering: bool)
src/input.rs:89
↓ 2 callers
Function
point_segment_distance2
(p0: Point2<f32>, p1: Point2<f32>, q: Point2<f32>)
src/math.rs:13
↓ 2 callers
Method
pop
(&mut self)
src/ui/widget.rs:330
↓ 2 callers
Method
push_annotation
(&mut self, bounds: Region, hash: ContentHash)
src/ui/screen.rs:290
↓ 2 callers
Method
push_ink
(&mut self, ink: Ink)
examples/demo.rs:174
↓ 2 callers
Method
quick_draw
(&mut self, draw_fn: impl FnOnce(&mut Framebuffer) -> mxcfb_rect)
src/ui/screen.rs:305
↓ 2 callers
Function
quick_refresh
Refresh the screen as quickly as possible. Useful for low-latency updates drawn by the pen.
src/ui/screen.rs:45
↓ 2 callers
Method
read_from
(&self, buffer: &[f32])
src/ml.rs:218
↓ 2 callers
Method
refresh_changes
(&mut self)
src/ui/screen.rs:250
↓ 2 callers
Method
region
(&self)
src/ui/screen.rs:353
↓ 2 callers
Method
relative
(&mut self, region: Region)
src/ui/widget.rs:66
↓ 2 callers
Method
request_full_refresh
Render all black to the screen, then all white. This is occasionally useful to clear the ghosting that tends to accumulate on an e-ink screen over tim
src/ui/screen.rs:313
↓ 2 callers
Method
run
(&mut self, component: &mut Component<W>)
src/app.rs:106
↓ 2 callers
Function
save_tensors
(pairs, path)
script/training.py:52
↓ 2 callers
Method
scale
Scale the points to fit tightly within the unit square.
src/dollar.rs:56
↓ 2 callers
Method
size
(&self)
src/geom.rs:162
next →
1–100 of 266, ranked by callers