MCPcopy Create free account

hub / github.com/dfrg/swash_demo / functions

Functions417 in github.com/dfrg/swash_demo

↓ 91 callersMethodlen
(&self)
src/layout/font/fallback.rs:15
↓ 51 callersMethodpush
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 callersMethodmap_script
(&mut self, script: Script, families: &[&str])
src/layout/font/index.rs:261
↓ 35 callersMethodfind_family
(&self, families: &[&str])
src/layout/font/index.rs:268
↓ 31 callersMethodlen
(&self)
src/util/string.rs:34
↓ 26 callersMethodget
(&self, key: u32)
src/layout/builder_data.rs:353
↓ 25 callersMethodclone
(&self)
src/util/string.rs:72
↓ 22 callersMethodas_ref
Returns a borrowed reference to the font.
src/layout/font/mod.rs:113
↓ 21 callersMethodextend
(&self, layout: &Paragraph, focus: Node)
src/layout/nav.rs:356
↓ 21 callersMethodget
Returns a font matching the specified key.
src/layout/font/context.rs:166
↓ 19 callersMethodadd_text
(&mut self, text: &str)
src/doc/mod.rs:192
↓ 16 callersMethodas_str
(&self)
src/util/string.rs:38
↓ 16 callersMethodinsert
(&mut self, offset: usize, ch: char)
src/doc/mod.rs:52
↓ 15 callersFunctionmake_range
(r: (u32, u32))
src/layout/layout.rs:663
↓ 13 callersMethodenter_span
(&mut self, properties: I)
src/doc/mod.rs:163
↓ 12 callersMethodoffset
Returns the current source offset for the focus of the selection. This is where text should be inserted.
src/layout/nav.rs:120
↓ 12 callersMethodto_usize
(self)
src/layout/font/types.rs:10
↓ 11 callersMethodadd_dir
Adds fonts from the specified directory to the library.
src/layout/font/builder.rs:58
↓ 11 callersMethodclear
Clears the resolver state.
src/layout/bidi.rs:50
↓ 11 callersMethodclear
(&mut self)
src/layout/font/context.rs:483
↓ 11 callersMethoderase
(&mut self, erase: Erase)
src/doc/mod.rs:67
↓ 10 callersFunctionis_removed_by_x9
(ty: BidiClass)
src/layout/bidi.rs:702
↓ 10 callersMethodleave_span
(&mut self)
src/doc/mod.rs:188
↓ 10 callersMethodsize
Returns the size of the line (height for horizontal and width for vertical layouts).
src/layout/layout.rs:624
↓ 9 callersMethodfind_fallbacks
(&self, families: &[&str])
src/layout/font/index.rs:277
↓ 9 callersMethodis_collapsed
Returns true if the selection is collapsed.
src/layout/nav.rs:107
↓ 9 callersMethodpush
(&mut self, level: u8, override_status: BidiClass, isolate_status: bool)
src/layout/bidi.rs:775
↓ 9 callersMethodpush
(&mut self, family: FamilyId)
src/layout/font/fallback.rs:19
↓ 8 callersMethodget
(&mut self, id: u16, x: f32, y: f32)
src/comp/image_cache/glyph.rs:113
↓ 7 callersMethodadd_rect
(&mut self, rect: &Rect, depth: f32, color: Color, coords: Option<&[f32; 4]>, image: Option<TextureId>, mask:
src/comp/batch/mod.rs:58
↓ 7 callersMethodadvance
Returns the advance of the run.
src/layout/layout.rs:306
↓ 7 callersMethodbaseline
Returns the baseline offset.
src/layout/layout.rs:574
↓ 7 callersMethodend
(self)
src/comp/image_cache/atlas.rs:336
↓ 6 callersMethodas_bytes
Returns the underlying bytes of the data.
src/layout/font/shared_data.rs:88
↓ 6 callersFunctioncommit_line
( layout: &LayoutData, lines: &mut LineLayoutData, state: &mut LineState, max_advance: f32,
src/layout/line_breaker.rs:357
↓ 6 callersMethodembedding_level
(&self)
src/layout/bidi.rs:789
↓ 6 callersMethodget
Retrieves the image for the specified handle and updates the epoch.
src/comp/image_cache/cache.rs:139
↓ 6 callersMethodget
(&'a mut self, name: &str)
src/util/string.rs:147
↓ 6 callersMethodnext
Returns a new, optionally extended, selection with the focus at the next visual character.
src/layout/nav.rs:197
↓ 6 callersMethodtext_offset
(&self, layout: &Paragraph)
src/layout/nav.rs:687
↓ 6 callersMethodto_usize
Converts the span identifier to an index.
src/layout/mod.rs:52
↓ 5 callersMethodis_empty
Returns true if the cluster is empty. This occurs when ignorable glyphs are removed by the shaper.
src/layout/layout.rs:461
↓ 5 callersMethodis_rtl
(&self, cluster: u32)
src/layout/layout_data.rs:292
↓ 5 callersMethodoverride_status
(&self)
src/layout/bidi.rs:793
↓ 5 callersMethodpush_char
(&mut self, ch: char)
src/layout/builder.rs:428
↓ 5 callersMethodsimple_data
(self)
src/layout/layout_data.rs:142
↓ 5 callersMethodvisual_to_logical
(&self, cluster: u32)
src/layout/layout_data.rs:280
↓ 4 callersMethodactivate
(&self)
src/gfx/device.rs:152
↓ 4 callersMethodallocate_slot
(&mut self, x: u16, width: u16)
src/comp/image_cache/atlas.rs:228
↓ 4 callersMethoddata
(&self)
src/layout/layout.rs:637
↓ 4 callersMethoddescent
Returns the descent of the line.
src/layout/layout.rs:584
↓ 4 callersMethoddetail_index
(self)
src/layout/layout_data.rs:146
↓ 4 callersMethoddraw_rect
Draws a rectangle with the specified depth and color.
src/comp/mod.rs:78
↓ 4 callersMethodfragment_from_offset
(&self, offset: usize)
src/doc/mod.rs:122
↓ 4 callersMethodindex
(self)
src/comp/image_cache/mod.rs:65
↓ 4 callersMethodis_detailed
(&self)
src/layout/layout_data.rs:37
↓ 4 callersMethodis_empty
(&self)
src/comp/image_cache/atlas.rs:318
↓ 4 callersMethodis_simple
(self)
src/layout/layout_data.rs:138
↓ 4 callersMethodline_index_for_cluster
(&self, cluster: u32)
src/layout/layout_data.rs:261
↓ 4 callersMethodlines
Returns an iterator over the lines in the paragraph.
src/layout/layout.rs:32
↓ 4 callersMethodlogical_index
(&self, layout: &Paragraph)
src/layout/nav.rs:711
↓ 4 callersMethodnext
(&mut self)
src/layout/font/family.rs:79
↓ 4 callersMethodnormalized_range
Returns the source range for the currently selected text. This function ensures that `start <= end`.
src/layout/nav.rs:141
↓ 4 callersMethodpop
Pops the most recent span from the stack. Returns true if the direction changed.
src/layout/builder_data.rs:296
↓ 4 callersMethodquery
Returns a font entry that matches the specified family and attributes.
src/layout/font/context.rs:152
↓ 4 callersMethodsetup_from_visual
(&mut self, layout: &Paragraph, mut index: u32)
src/layout/nav.rs:626
↓ 4 callersMethodupdate
(&mut self, data: &[T])
src/gfx/mod.rs:47
↓ 4 callersMethodvariations
Returns an iterator over the variations for the font.
src/layout/font/mod.rs:56
↓ 3 callersMethodalloc_batch
(&mut self, transparent: bool)
src/comp/batch/mod.rs:242
↓ 3 callersMethodalloc_from_atlases
(&mut self, format: PixelFormat, width: u16, height: u16)
src/comp/image_cache/cache.rs:298
↓ 3 callersMethodas_arc
(&self)
src/util/string.rs:54
↓ 3 callersMethodas_ref
(&self)
src/comp/image_cache/glyph.rs:204
↓ 3 callersMethodattrib_location
(&self, name: &str)
src/gfx/mod.rs:226
↓ 3 callersMethodattributes
Returns the primary attributes for the font.
src/layout/font/mod.rs:41
↓ 3 callersMethodbind
(&self)
src/gfx/mod.rs:77
↓ 3 callersMethodbind_attribs
(&self)
src/gfx/device.rs:162
↓ 3 callersMethodclear
(&mut self)
src/comp/image_cache/cache.rs:425
↓ 3 callersMethodcursor
Returns the visual geometry of the focus.
src/layout/nav.rs:112
↓ 3 callersMethoddata
(&self)
src/layout/font/shared_data.rs:15
↓ 3 callersMethoddata
(&'a self)
src/comp/image_cache/mod.rs:104
↓ 3 callersMethodend
Returns a new, optionally extended, selection with the focus at the end of the current line.
src/layout/nav.rs:248
↓ 3 callersMethodextend_to
Returns a new selection, extending self to the specified point.
src/layout/nav.rs:187
↓ 3 callersMethodfamily_by_id
Returns a font family entry for the specified identifier.
src/layout/font/index.rs:329
↓ 3 callersMethodfree_slot
(&mut self, index: u32)
src/comp/image_cache/atlas.rs:243
↓ 3 callersMethodgeneration
(self)
src/comp/image_cache/mod.rs:61
↓ 3 callersMethodhome
Returns a new, optionally extended, selection with the focus at the beginning of the current line.
src/layout/nav.rs:237
↓ 3 callersMethodid
Returns the family identifier.
src/layout/font/index.rs:364
↓ 3 callersMethodinfo
Returns the cluster information.
src/layout/layout.rs:455
↓ 3 callersMethodis_empty
(&self)
src/layout/layout_data.rs:33
↓ 3 callersMethodis_inline
(&self)
src/util/string.rs:50
↓ 3 callersFunctionis_isolate_initiator
(ty: BidiClass)
src/layout/bidi.rs:698
↓ 3 callersMethodkey
(&self)
src/layout/font/family.rs:33
↓ 3 callersMethodlogical_to_visual
(&self, cluster: u32)
src/layout/layout_data.rs:270
↓ 3 callersMethodmap_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 callersMethodnormalized_coords
Returns the normalized variation coordinates for the run.
src/layout/layout.rs:298
↓ 3 callersMethodpop
(&mut self)
src/layout/bidi.rs:783
↓ 3 callersFunctionreal_script
(script: Script)
src/layout/builder.rs:437
↓ 3 callersMethodselector
( &self, attrs: RequestedAttributes, )
src/layout/font/index.rs:440
↓ 3 callersMethodset_view_proj
(&self, view_proj: &[f32])
src/gfx/device.rs:156
↓ 3 callersMethodto_gl
(self)
src/gfx/mod.rs:19
next →1–100 of 417, ranked by callers