MCPcopy Create free account

hub / github.com/bkirwi/armrest / functions

Functions266 in github.com/bkirwi/armrest

↓ 45 callersMethodmap
(self, map_fn: F)
src/ui/widget.rs:205
↓ 40 callersMethodlen
(&self)
src/ink.rs:185
↓ 36 callersMethodpush
(&mut self, x: f32, y: f32, time: f32)
src/ink.rs:136
↓ 25 callersMethodappend
(&mut self, mut other: Ink, time_offset: f32)
src/ink.rs:146
↓ 22 callersMethodsplit
(&self, split: Side, value: i32)
src/geom.rs:59
↓ 17 callersMethodpush
(&mut self, widget: T)
src/ui/widget.rs:343
↓ 15 callersMethodclone
(&self)
src/app.rs:40
↓ 15 callersMethodsplit_off
(&mut self, side: Side, offset: i32)
src/ui/widget.rs:37
↓ 14 callersMethodrender_split
(&self, view: &mut View<Self::Message>, split: Side, positioning: f32)
src/ui/widget.rs:184
↓ 13 callersMethodhandlers
(&mut self)
src/ui/widget.rs:28
↓ 12 callersMethodlen
()
src/ml.rs:109
↓ 12 callersMethodsize
(&self)
src/ui/widget.rs:24
↓ 12 callersMethodwrite
(&mut self, x: i32, y: i32, color: color)
src/ui/canvas.rs:37
↓ 10 callersMethodcontains
(&self, point: Point2<i32>)
src/geom.rs:104
↓ 10 callersMethodpen_up
(&mut self)
src/ink.rs:170
↓ 10 callersMethodwords
Split the given string into words, and append each of them to the current Text.
src/ui/text.rs:376
↓ 10 callersFunctionxy
(p: Point3<f32>)
src/math.rs:5
↓ 8 callersMethodframebuffer
(&mut self)
src/ui/canvas.rs:29
↓ 8 callersMethodstrokes
Iterate over the distinct strokes in the ink
src/ink.rs:214
↓ 7 callersMethodclear
(&mut self)
src/ink.rs:177
↓ 7 callersMethodinto_text
(mut self)
src/ui/text.rs:266
↓ 7 callersFunctionload_tensors
(test_file)
script/training.py:34
↓ 6 callersMethodannotate
(&mut self, ink: &Ink)
src/ui/widget.rs:45
↓ 6 callersMethodbounds
(&self)
src/ink.rs:103
↓ 6 callersMethodhash
(&self, state: &mut H)
src/ui/text.rs:89
↓ 6 callersMethodlast
(&self)
src/ui/widget.rs:426
↓ 6 callersMethodon_ink
(&mut self, message_fn: impl FnOnce(Ink) -> M)
src/ui/widget.rs:131
↓ 5 callersMethodbounds
(&self)
src/ui/canvas.rs:33
↓ 5 callersMethodfetch_increment
(&mut self)
src/ui/screen.rs:94
↓ 5 callersMethodmessage
(mut self, message: M)
src/ui/text.rs:241
↓ 5 callersMethodtotal
(self)
src/ml.rs:407
↓ 4 callersMethodcalculate_best_match
(&mut self)
examples/demo.rs:218
↓ 4 callersMethoddistance
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 callersFunctiondouglas_peucker
(data: &Ink, distance: f32)
src/math.rs:31
↓ 4 callersFunctionload_model_and_checkpoint
(model, checkpoint)
script/training.py:654
↓ 4 callersFunctionnormalize
(pairs)
script/training.py:224
↓ 4 callersMethodon_tap
NB: allows tapping with the pen.
src/ui/widget.rs:109
↓ 4 callersMethodpad
(&self, padding: i32)
src/geom.rs:145
↓ 4 callersMethodrect
(&self)
src/geom.rs:166
↓ 4 callersMethodrender
(&self, view: View<Self::Message>)
src/app.rs:312
↓ 4 callersMethodroot
(&mut self)
src/ui/screen.rs:317
↓ 4 callersMethodsize
(&self)
src/ui/screen.rs:209
↓ 4 callersMethodtranslate
(mut self, offset: Vector2<f32>)
src/ink.rs:124
↓ 4 callersMethodtruncate
(&mut self)
src/ui/screen.rs:359
↓ 3 callersFunctionbeam_decode
( buffer: &[f32], beam_width: usize, alphabet: &[char], lm: &impl LanguageModel, )
src/ml.rs:412
↓ 3 callersFunctiondataset_from_pairs
Accepts string->[N,4]d tensor pairs and returs a dataset
script/training.py:103
↓ 3 callersMethoddraw
(&self, canvas: &mut Canvas)
examples/todo.rs:53
↓ 3 callersMethodis_before
(&self, other: Sequence)
src/ui/screen.rs:100
↓ 3 callersMethodis_pen_up
(&self, index: usize)
src/ink.rs:166
↓ 3 callersMethodlast_mut
(&mut self)
src/ui/widget.rs:430
↓ 3 callersMethodleave_rest_blank
(self)
src/ui/widget.rs:53
↓ 3 callersMethodno_message
(mut self)
src/ui/text.rs:251
↓ 3 callersMethodon_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 callersMethodrecognize
( &mut self, ink: &MI, decoder: &O, )
src/ml.rs:292
↓ 3 callersMethodregion
(&self)
src/geom.rs:192
↓ 3 callersMethodresample
(&self, distance: f32)
src/ink.rs:311
↓ 3 callersFunctionsave_inks
(pairs, filename)
script/training.py:79
↓ 3 callersMethodsend
(&self, message: M)
src/app.rs:21
↓ 3 callersMethodspace
(mut self)
src/ui/text.rs:322
↓ 3 callersMethodupdate
(&mut self, msg: Self::Message)
examples/demo.rs:319
↓ 3 callersMethodvoid
(self)
src/ui/widget.rs:215
↓ 2 callersFunctionbuild_model
(step_size=10)
script/training.py:484
↓ 2 callersMethodcentroid
(&self)
src/ink.rs:116
↓ 2 callersFunctioncer
(pred, true)
script/training.py:100
↓ 2 callersFunctionclean_iam_text
(line)
script/training.py:197
↓ 2 callersMethodcloud_distance
(&self, template: &Points, start: usize, min_so_far: f32)
src/dollar.rs:108
↓ 2 callersMethodcontains_prefix
(&self, prefix: &String)
src/bin/test-tflite.rs:21
↓ 2 callersFunctionctc_decode
(predicted_labels, predicted_lengths, beam_width=1)
script/training.py:118
↓ 2 callersMethodcurrent_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 callersMethoddraw
(self, fragment: &impl Fragment)
src/ui/widget.rs:49
↓ 2 callersMethoddraw
(mut self, hash: ContentHash, draw_fn: impl FnOnce(Canvas))
src/ui/screen.rs:398
↓ 2 callersMethoddraw
(&self, canvas: &mut Canvas)
src/ui/text.rs:96
↓ 2 callersMethoddraw
(&self, canvas: &mut Canvas)
examples/demo.rs:139
↓ 2 callersFunctionencode_string
(string)
script/training.py:28
↓ 2 callersMethoderase
(&mut self, eraser: &Ink, radius: f32)
src/ink.rs:223
↓ 2 callersFunctionfilter_valid
(pairs)
script/training.py:420
↓ 2 callersMethodlength
(&self)
src/input.rs:43
↓ 2 callersMethodliteral
(size: i32, font: &Font<'static>, text: &str)
src/ui/text.rs:131
↓ 2 callersMethodmidpoint
(&self)
src/input.rs:47
↓ 2 callersFunctionmodel_to_prediction_model
(model)
script/training.py:518
↓ 2 callersFunctionnodes_of_type
(root, type)
script/training.py:343
↓ 2 callersMethodnormalize
(&mut self, target_height: f32)
src/ink.rs:269
↓ 2 callersMethododds
(&self, _prefix: &str, ch: char)
src/ml.rs:367
↓ 2 callersMethodopposite
(&self)
src/geom.rs:13
↓ 2 callersMethodpen_near
(&mut self, pen: Tool, entering: bool)
src/input.rs:89
↓ 2 callersFunctionpoint_segment_distance2
(p0: Point2<f32>, p1: Point2<f32>, q: Point2<f32>)
src/math.rs:13
↓ 2 callersMethodpop
(&mut self)
src/ui/widget.rs:330
↓ 2 callersMethodpush_annotation
(&mut self, bounds: Region, hash: ContentHash)
src/ui/screen.rs:290
↓ 2 callersMethodpush_ink
(&mut self, ink: Ink)
examples/demo.rs:174
↓ 2 callersMethodquick_draw
(&mut self, draw_fn: impl FnOnce(&mut Framebuffer) -> mxcfb_rect)
src/ui/screen.rs:305
↓ 2 callersFunctionquick_refresh
Refresh the screen as quickly as possible. Useful for low-latency updates drawn by the pen.
src/ui/screen.rs:45
↓ 2 callersMethodread_from
(&self, buffer: &[f32])
src/ml.rs:218
↓ 2 callersMethodrefresh_changes
(&mut self)
src/ui/screen.rs:250
↓ 2 callersMethodregion
(&self)
src/ui/screen.rs:353
↓ 2 callersMethodrelative
(&mut self, region: Region)
src/ui/widget.rs:66
↓ 2 callersMethodrequest_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 callersMethodrun
(&mut self, component: &mut Component<W>)
src/app.rs:106
↓ 2 callersFunctionsave_tensors
(pairs, path)
script/training.py:52
↓ 2 callersMethodscale
Scale the points to fit tightly within the unit square.
src/dollar.rs:56
↓ 2 callersMethodsize
(&self)
src/geom.rs:162
next →1–100 of 266, ranked by callers