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
↓ 2 callers
Method
space
(&mut self, a: Side, b: Side, extra: i32, ratio: f32)
src/ui/screen.rs:474
↓ 2 callers
Method
split_off
Split a smaller canvas off from this one, at the given side and offset. The current frame is modified to represent the remaining area in the frame.
src/ui/screen.rs:425
↓ 2 callers
Method
take_ink
(&mut self)
src/input.rs:110
↓ 2 callers
Method
visit
( &mut self, damaged: Region, mut on_visit: impl FnMut(Region, Sequence, &mut ContentH
src/ui/screen.rs:125
↓ 2 callers
Method
wrap
( size: i32, font: &Font<'static>, text: &str, max_width: i32, justify
src/ui/text.rs:139
↓ 1 callers
Function
augment
(pairs, subset, target_size)
script/training.py:430
↓ 1 callers
Method
centroid
(&self)
src/dollar.rs:77
↓ 1 callers
Function
ctc_loss
(true_labels, true_lengths, predicted_labels, predicted_lengths)
script/training.py:127
↓ 1 callers
Method
current_ink
(&self)
src/input.rs:106
↓ 1 callers
Function
decode_string
(string)
script/training.py:31
↓ 1 callers
Method
draw_fragment
(self, fragment: &F)
src/ui/screen.rs:414
↓ 1 callers
Function
draw_ink
(fb: &mut Framebuffer, origin: Point2<i32>, ink: &Ink)
src/ui/screen.rs:57
↓ 1 callers
Method
fixup
TODO: maybe we're over-refreshing when annotations are involved. When we change a fragment, we need to redraw the annotations that overlap; but we don
src/ui/screen.rs:217
↓ 1 callers
Function
full_refresh
Refresh the entire screen, including a flash to clear ghosting. Appropriate between major transitions in the app.
src/ui/screen.rs:19
↓ 1 callers
Method
get
(&self, index: usize)
src/ml.rs:113
↓ 1 callers
Method
get_mut
(&mut self)
src/app.rs:295
↓ 1 callers
Function
greedy_decode
(buffer: &[f32])
src/ml.rs:337
↓ 1 callers
Method
hash
(&self, state: &mut H)
src/ui/canvas.rs:108
↓ 1 callers
Function
hausdorff_distance
The unidirectional hausdorff distance: the maximum distance between a point on stroke `a` and _any_ point on stroke `b`.
src/math.rs:69
↓ 1 callers
Method
horizontal_space
(&mut self, width: i32, placement: f32)
src/ui/screen.rs:482
↓ 1 callers
Method
ink_len
(&self)
src/ink.rs:334
↓ 1 callers
Method
intersect
(&self, other: Region)
src/geom.rs:111
↓ 1 callers
Function
is_invalid
(text, ink)
script/training.py:398
↓ 1 callers
Function
levenstein
(a, b)
script/training.py:87
↓ 1 callers
Function
load_docdb
(data_dir, name, data_type)
script/training.py:286
↓ 1 callers
Function
load_inks
(filename)
script/training.py:60
↓ 1 callers
Function
load_ondb
(data_dir, name)
script/training.py:131
↓ 1 callers
Method
map_region
(&mut self, map_fn: impl FnOnce(Region) -> Region)
src/ui/widget.rs:75
↓ 1 callers
Function
min_distance
(data: &Ink, distance: f32)
src/math.rs:88
↓ 1 callers
Method
odds
(&self, input: &str, ch: char)
src/bin/test-tflite.rs:30
↓ 1 callers
Method
odds_end
(&self, _prefix: &str)
src/ml.rs:361
↓ 1 callers
Method
on_event
(&mut self, event: InputEvent)
src/input.rs:118
↓ 1 callers
Method
pad
(&mut self, padding: i32)
src/ui/widget.rs:71
↓ 1 callers
Function
parse_trace_string
(text)
script/training.py:314
↓ 1 callers
Function
partial_refresh
Refresh a region of the screen. Appropriate for greyscale, including images and text.
src/ui/screen.rs:31
↓ 1 callers
Method
points
(&self)
src/dollar.rs:14
↓ 1 callers
Method
recenter_on
(&mut self, center: Point2<f32>)
src/dollar.rs:82
↓ 1 callers
Method
remaining
(&self)
src/ui/widget.rs:316
↓ 1 callers
Method
render
(&self, view: View<Self::Message>)
src/ui/widget.rs:231
↓ 1 callers
Method
render_placed
( &self, mut view: View<Self::Message>, horizontal_placement: f32, vertical_pl
src/ui/widget.rs:172
↓ 1 callers
Function
save_prediction_model
(model, path, steps=4000)
script/training.py:524
↓ 1 callers
Method
scale_by
(&mut self, scale: f32)
src/dollar.rs:70
↓ 1 callers
Method
set_length
Adjust the line length by resizing the spaces between words. This is likely to look quite ugly for large adjustments... be judicious.
src/ui/text.rs:491
↓ 1 callers
Method
size
(&self)
src/ink.rs:26
↓ 1 callers
Method
size
(&self)
examples/demo.rs:97
↓ 1 callers
Method
size
(&self)
examples/todo.rs:122
↓ 1 callers
Method
smooth
(&mut self, half_life: f32)
src/ink.rs:281
↓ 1 callers
Function
space_width
(font: &Font, scale: Scale)
src/ui/text.rs:12
↓ 1 callers
Function
to_deltas
(pairs)
script/training.py:463
↓ 1 callers
Method
to_swipe
(&self)
src/input.rs:58
↓ 1 callers
Function
transform
(strokes)
script/training.py:449
↓ 1 callers
Method
translate
(&self, vec: Vector2<i32>)
src/geom.rs:52
↓ 1 callers
Method
union
(&self, other: Region)
src/geom.rs:132
↓ 1 callers
Function
validate
(pairs)
script/training.py:611
↓ 1 callers
Method
vertical_space
(&mut self, height: i32, placement: f32)
src/ui/screen.rs:486
↓ 1 callers
Method
wakeup
(&mut self)
src/app.rs:59
↓ 1 callers
Method
width
(&self)
src/ui/text.rs:58
↓ 1 callers
Method
write_to
(&self, buffer: &mut [f32])
src/ml.rs:53
↓ 1 callers
Function
xy_distance2
(p0: Point3<f32>, p1: Point3<f32>)
src/math.rs:9
Method
__init__
(self, name=None)
script/training.py:475
Method
add
(self, rhs: Coord3D)
src/ml.rs:129
Method
add_assign
(&mut self, rhs: f32)
src/ink.rs:32
Method
annotate
(&mut self, ink: &Ink)
src/ui/screen.rs:374
Method
area
(&self)
src/geom.rs:47
Function
augment_text
(from_path, to_path, subset, target_size)
script/training.py:691
Method
baseline
(mut self, from_top: f32)
src/ui/text.rs:231
Method
binary_search
(points: &[Point3<f32>], x: f32)
src/ink.rs:232
Method
builder
(height: i32, font: &'a Font<'static>)
src/ui/text.rs:127
Method
call
(self, true_labels, true_lengths, predicted_labels, predicted_lengths)
script/training.py:478
Method
clamp
(low: &mut i32, high: &mut i32)
src/geom.rs:149
Method
clear
(&mut self)
src/ui/widget.rs:326
Function
create_keras
(path, step_size)
script/training.py:835
Method
current
(&self)
src/ui/widget.rs:418
Method
current_index
(&self)
src/ui/widget.rs:414
Method
current_mut
(&mut self)
src/ui/widget.rs:422
Method
default
()
src/ink.rs:55
Method
deref
(&self)
src/ui/widget.rs:370
Method
deref_mut
(&mut self)
src/ui/widget.rs:376
Method
deserialize
(deserializer: D)
src/ink.rs:83
Function
do_train
(root, trainset, validset, model, checkpoint)
script/training.py:724
Method
do_visit
( tree: &mut DrawTree, mut damaged: Region, on_visit: &mut impl FnMut(Regi
src/ui/screen.rs:130
Function
docdb_to_text
(docdb_path, text_path, subset, data_type)
script/training.py:681
Method
draw
(&self, canvas: &mut Canvas)
src/ui/canvas.rs:80
Method
drop
(&mut self)
src/ui/screen.rs:347
Method
elements
(&self)
src/ui/widget.rs:312
Method
eq
(&self, _other: &Self)
src/ml.rs:93
Function
fit_batches
(batch)
script/training.py:755
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/ink.rs:61
Method
fmt
(&self, f: &mut Formatter<'_>)
src/ui/text.rs:52
Method
font
(mut self, font: &'a Font<'static>)
src/ui/text.rs:221
Method
from
(err: tflite::Error)
src/ml.rs:27
Method
from_biggest_components
(_p1: Self, _p2: Self)
src/ml.rs:117
Method
from_components
(_components: &[f64])
src/ml.rs:101
Method
from_font
Create a new builder based on a specific font. This chooses the text baseline based on the ascender height in the font given.
src/ui/text.rs:206
Method
from_smallest_components
(_p1: Self, _p2: Self)
src/ml.rs:121
Method
from_string
(input: &str)
src/ink.rs:189
Method
fully_render
( screen: &mut Screen, widget: &mut W, messages: &mut Vec<W::Message>,
src/app.rs:117
Method
ink_start
(&self)
src/input.rs:114
Method
into_any
(self)
src/ui/widget.rs:274
Method
into_inner
(self)
src/app.rs:291
← previous
next →
101–200 of 266, ranked by callers