Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dfrg/swash_demo
/ functions
Functions
417 in github.com/dfrg/swash_demo
⨍
Functions
417
◇
Types & classes
144
↓ 91 callers
Method
len
(&self)
src/layout/font/fallback.rs:15
↓ 51 callers
Method
push
Pushes a new span with the specified properties. Returns the new span identifier and a value indicating a new direction, if any.
src/layout/builder_data.rs:172
↓ 40 callers
Method
map_script
(&mut self, script: Script, families: &[&str])
src/layout/font/index.rs:261
↓ 35 callers
Method
find_family
(&self, families: &[&str])
src/layout/font/index.rs:268
↓ 31 callers
Method
len
(&self)
src/util/string.rs:34
↓ 26 callers
Method
get
(&self, key: u32)
src/layout/builder_data.rs:353
↓ 25 callers
Method
clone
(&self)
src/util/string.rs:72
↓ 22 callers
Method
as_ref
Returns a borrowed reference to the font.
src/layout/font/mod.rs:113
↓ 21 callers
Method
extend
(&self, layout: &Paragraph, focus: Node)
src/layout/nav.rs:356
↓ 21 callers
Method
get
Returns a font matching the specified key.
src/layout/font/context.rs:166
↓ 19 callers
Method
add_text
(&mut self, text: &str)
src/doc/mod.rs:192
↓ 16 callers
Method
as_str
(&self)
src/util/string.rs:38
↓ 16 callers
Method
insert
(&mut self, offset: usize, ch: char)
src/doc/mod.rs:52
↓ 15 callers
Function
make_range
(r: (u32, u32))
src/layout/layout.rs:663
↓ 13 callers
Method
enter_span
(&mut self, properties: I)
src/doc/mod.rs:163
↓ 12 callers
Method
offset
Returns the current source offset for the focus of the selection. This is where text should be inserted.
src/layout/nav.rs:120
↓ 12 callers
Method
to_usize
(self)
src/layout/font/types.rs:10
↓ 11 callers
Method
add_dir
Adds fonts from the specified directory to the library.
src/layout/font/builder.rs:58
↓ 11 callers
Method
clear
Clears the resolver state.
src/layout/bidi.rs:50
↓ 11 callers
Method
clear
(&mut self)
src/layout/font/context.rs:483
↓ 11 callers
Method
erase
(&mut self, erase: Erase)
src/doc/mod.rs:67
↓ 10 callers
Function
is_removed_by_x9
(ty: BidiClass)
src/layout/bidi.rs:702
↓ 10 callers
Method
leave_span
(&mut self)
src/doc/mod.rs:188
↓ 10 callers
Method
size
Returns the size of the line (height for horizontal and width for vertical layouts).
src/layout/layout.rs:624
↓ 9 callers
Method
find_fallbacks
(&self, families: &[&str])
src/layout/font/index.rs:277
↓ 9 callers
Method
is_collapsed
Returns true if the selection is collapsed.
src/layout/nav.rs:107
↓ 9 callers
Method
push
(&mut self, level: u8, override_status: BidiClass, isolate_status: bool)
src/layout/bidi.rs:775
↓ 9 callers
Method
push
(&mut self, family: FamilyId)
src/layout/font/fallback.rs:19
↓ 8 callers
Method
get
(&mut self, id: u16, x: f32, y: f32)
src/comp/image_cache/glyph.rs:113
↓ 7 callers
Method
add_rect
(&mut self, rect: &Rect, depth: f32, color: Color, coords: Option<&[f32; 4]>, image: Option<TextureId>, mask:
src/comp/batch/mod.rs:58
↓ 7 callers
Method
advance
Returns the advance of the run.
src/layout/layout.rs:306
↓ 7 callers
Method
baseline
Returns the baseline offset.
src/layout/layout.rs:574
↓ 7 callers
Method
end
(self)
src/comp/image_cache/atlas.rs:336
↓ 6 callers
Method
as_bytes
Returns the underlying bytes of the data.
src/layout/font/shared_data.rs:88
↓ 6 callers
Function
commit_line
( layout: &LayoutData, lines: &mut LineLayoutData, state: &mut LineState, max_advance: f32,
src/layout/line_breaker.rs:357
↓ 6 callers
Method
embedding_level
(&self)
src/layout/bidi.rs:789
↓ 6 callers
Method
get
Retrieves the image for the specified handle and updates the epoch.
src/comp/image_cache/cache.rs:139
↓ 6 callers
Method
get
(&'a mut self, name: &str)
src/util/string.rs:147
↓ 6 callers
Method
next
Returns a new, optionally extended, selection with the focus at the next visual character.
src/layout/nav.rs:197
↓ 6 callers
Method
text_offset
(&self, layout: &Paragraph)
src/layout/nav.rs:687
↓ 6 callers
Method
to_usize
Converts the span identifier to an index.
src/layout/mod.rs:52
↓ 5 callers
Method
is_empty
Returns true if the cluster is empty. This occurs when ignorable glyphs are removed by the shaper.
src/layout/layout.rs:461
↓ 5 callers
Method
is_rtl
(&self, cluster: u32)
src/layout/layout_data.rs:292
↓ 5 callers
Method
override_status
(&self)
src/layout/bidi.rs:793
↓ 5 callers
Method
push_char
(&mut self, ch: char)
src/layout/builder.rs:428
↓ 5 callers
Method
simple_data
(self)
src/layout/layout_data.rs:142
↓ 5 callers
Method
visual_to_logical
(&self, cluster: u32)
src/layout/layout_data.rs:280
↓ 4 callers
Method
activate
(&self)
src/gfx/device.rs:152
↓ 4 callers
Method
allocate_slot
(&mut self, x: u16, width: u16)
src/comp/image_cache/atlas.rs:228
↓ 4 callers
Method
data
(&self)
src/layout/layout.rs:637
↓ 4 callers
Method
descent
Returns the descent of the line.
src/layout/layout.rs:584
↓ 4 callers
Method
detail_index
(self)
src/layout/layout_data.rs:146
↓ 4 callers
Method
draw_rect
Draws a rectangle with the specified depth and color.
src/comp/mod.rs:78
↓ 4 callers
Method
fragment_from_offset
(&self, offset: usize)
src/doc/mod.rs:122
↓ 4 callers
Method
index
(self)
src/comp/image_cache/mod.rs:65
↓ 4 callers
Method
is_detailed
(&self)
src/layout/layout_data.rs:37
↓ 4 callers
Method
is_empty
(&self)
src/comp/image_cache/atlas.rs:318
↓ 4 callers
Method
is_simple
(self)
src/layout/layout_data.rs:138
↓ 4 callers
Method
line_index_for_cluster
(&self, cluster: u32)
src/layout/layout_data.rs:261
↓ 4 callers
Method
lines
Returns an iterator over the lines in the paragraph.
src/layout/layout.rs:32
↓ 4 callers
Method
logical_index
(&self, layout: &Paragraph)
src/layout/nav.rs:711
↓ 4 callers
Method
next
(&mut self)
src/layout/font/family.rs:79
↓ 4 callers
Method
normalized_range
Returns the source range for the currently selected text. This function ensures that `start <= end`.
src/layout/nav.rs:141
↓ 4 callers
Method
pop
Pops the most recent span from the stack. Returns true if the direction changed.
src/layout/builder_data.rs:296
↓ 4 callers
Method
query
Returns a font entry that matches the specified family and attributes.
src/layout/font/context.rs:152
↓ 4 callers
Method
setup_from_visual
(&mut self, layout: &Paragraph, mut index: u32)
src/layout/nav.rs:626
↓ 4 callers
Method
update
(&mut self, data: &[T])
src/gfx/mod.rs:47
↓ 4 callers
Method
variations
Returns an iterator over the variations for the font.
src/layout/font/mod.rs:56
↓ 3 callers
Method
alloc_batch
(&mut self, transparent: bool)
src/comp/batch/mod.rs:242
↓ 3 callers
Method
alloc_from_atlases
(&mut self, format: PixelFormat, width: u16, height: u16)
src/comp/image_cache/cache.rs:298
↓ 3 callers
Method
as_arc
(&self)
src/util/string.rs:54
↓ 3 callers
Method
as_ref
(&self)
src/comp/image_cache/glyph.rs:204
↓ 3 callers
Method
attrib_location
(&self, name: &str)
src/gfx/mod.rs:226
↓ 3 callers
Method
attributes
Returns the primary attributes for the font.
src/layout/font/mod.rs:41
↓ 3 callers
Method
bind
(&self)
src/gfx/mod.rs:77
↓ 3 callers
Method
bind_attribs
(&self)
src/gfx/device.rs:162
↓ 3 callers
Method
clear
(&mut self)
src/comp/image_cache/cache.rs:425
↓ 3 callers
Method
cursor
Returns the visual geometry of the focus.
src/layout/nav.rs:112
↓ 3 callers
Method
data
(&self)
src/layout/font/shared_data.rs:15
↓ 3 callers
Method
data
(&'a self)
src/comp/image_cache/mod.rs:104
↓ 3 callers
Method
end
Returns a new, optionally extended, selection with the focus at the end of the current line.
src/layout/nav.rs:248
↓ 3 callers
Method
extend_to
Returns a new selection, extending self to the specified point.
src/layout/nav.rs:187
↓ 3 callers
Method
family_by_id
Returns a font family entry for the specified identifier.
src/layout/font/index.rs:329
↓ 3 callers
Method
free_slot
(&mut self, index: u32)
src/comp/image_cache/atlas.rs:243
↓ 3 callers
Method
generation
(self)
src/comp/image_cache/mod.rs:61
↓ 3 callers
Method
home
Returns a new, optionally extended, selection with the focus at the beginning of the current line.
src/layout/nav.rs:237
↓ 3 callers
Method
id
Returns the family identifier.
src/layout/font/index.rs:364
↓ 3 callers
Method
info
Returns the cluster information.
src/layout/layout.rs:455
↓ 3 callers
Method
is_empty
(&self)
src/layout/layout_data.rs:33
↓ 3 callers
Method
is_inline
(&self)
src/util/string.rs:50
↓ 3 callers
Function
is_isolate_initiator
(ty: BidiClass)
src/layout/bidi.rs:698
↓ 3 callers
Method
key
(&self)
src/layout/font/family.rs:33
↓ 3 callers
Method
logical_to_visual
(&self, cluster: u32)
src/layout/layout_data.rs:270
↓ 3 callers
Method
map_cluster
Maps the characters in a cluster to nominal glyph identifiers and returns the most suitable font based on the currently selected descriptor and fallba
src/layout/font/context.rs:74
↓ 3 callers
Method
normalized_coords
Returns the normalized variation coordinates for the run.
src/layout/layout.rs:298
↓ 3 callers
Method
pop
(&mut self)
src/layout/bidi.rs:783
↓ 3 callers
Function
real_script
(script: Script)
src/layout/builder.rs:437
↓ 3 callers
Method
selector
( &self, attrs: RequestedAttributes, )
src/layout/font/index.rs:440
↓ 3 callers
Method
set_view_proj
(&self, view_proj: &[f32])
src/gfx/device.rs:156
↓ 3 callers
Method
to_gl
(self)
src/gfx/mod.rs:19
next →
1–100 of 417, ranked by callers