MCPcopy Create free account

hub / github.com/dfrg/swash_demo / functions

Functions417 in github.com/dfrg/swash_demo

↓ 3 callersMethodto_owned
(&self)
src/layout/span_style.rs:57
↓ 3 callersFunctiontype_from_level
Returns a default bidi type for a level.
src/layout/bidi.rs:639
↓ 3 callersMethoduniform_location
(&self, name: &str)
src/gfx/mod.rs:231
↓ 3 callersMethodvisual_clusters
Returns an iterator over the clusters in visual order.
src/layout/layout.rs:335
↓ 2 callersFunctionabove
(line: &Line)
src/layout/nav.rs:739
↓ 2 callersMethodadd
(&mut self, settings: I)
src/layout/builder_data.rs:321
↓ 2 callersMethodadd_font
(&mut self, font: &FontInfo)
src/layout/font/builder.rs:203
↓ 2 callersMethodadd_image_rect
(&mut self, rect: &Rect, depth: f32, color: Color, coords: &[f32; 4], image: TextureId, has_alpha: bool)
src/comp/batch/mod.rs:180
↓ 2 callersMethodadjacent_line
( &self, layout: &Paragraph, prev: bool, move_state: &mut Option<f32>, )
src/layout/nav.rs:607
↓ 2 callersMethodalloc_entry
(&mut self)
src/comp/image_cache/cache.rs:310
↓ 2 callersMethodallocate
Allocates a rectangle in the atlas if possible. Returns the x and y coordinates of the allocated slot.
src/comp/image_cache/atlas.rs:36
↓ 2 callersMethodallocate_line
(&mut self, padded_height: u16)
src/comp/image_cache/atlas.rs:213
↓ 2 callersMethodborrow
(&self)
src/util/string.rs:85
↓ 2 callersMethodbuild
(self)
src/doc/mod.rs:205
↓ 2 callersMethodbuild_into
Consumes the builder and fills the specified paragraph with the result.
src/layout/builder.rs:269
↓ 2 callersMethodbuilder
()
src/doc/mod.rs:14
↓ 2 callersMethodcache_key
Returns a unique key for identifying this font.
src/layout/font/mod.rs:108
↓ 2 callersMethodcheck_width
(&self, line: &Line, width: u16)
src/comp/image_cache/atlas.rs:248
↓ 2 callersMethodclear
(&mut self)
src/comp/batch/mod.rs:50
↓ 2 callersMethodcollapse
(&self, layout: &Paragraph, prev: bool)
src/layout/nav.rs:458
↓ 2 callersFunctioncompile_shader
(kind: GLenum, source: &str)
src/gfx/mod.rs:171
↓ 2 callersMethoddeallocate
Deallocates the slot with the specified coordinates and width.
src/comp/image_cache/atlas.rs:115
↓ 2 callersMethodenter_file
(&mut self, path: PathBuf, timestamp: SystemTime, size: u64)
src/layout/font/builder.rs:190
↓ 2 callersMethodevict_from_atlases
(&mut self, epoch: u64)
src/comp/image_cache/cache.rs:272
↓ 2 callersMethodget_selection
(&self, range: Range<usize>)
src/doc/mod.rs:31
↓ 2 callersMethodglyphs
Returns an iterator over the glyphs for the cluster.
src/layout/layout.rs:497
↓ 2 callersMethodhas_alpha
Returns true if the image contains transparency.
src/comp/image_cache/mod.rs:70
↓ 2 callersMethodinsert_str
(&mut self, offset: usize, text: &str)
src/doc/mod.rs:37
↓ 2 callersMethodinto_owned
(self)
src/layout/span_style.rs:79
↓ 2 callersMethodis_newline
Returns true if the following cluster is a mandatory line break.
src/layout/layout.rs:481
↓ 2 callersMethodis_valid
Returns true if the image is valid.
src/comp/image_cache/cache.rs:169
↓ 2 callersMethodisolate_status
(&self)
src/layout/bidi.rs:797
↓ 2 callersMethodnames
Returns the family names.
src/layout/font/family.rs:23
↓ 2 callersMethodoffset
Returns the offset to the font table directory in the source.
src/layout/font/index.rs:414
↓ 2 callersFunctionparse_families
(families: &'a str)
src/layout/font/family.rs:61
↓ 2 callersMethodpush
(&mut self, font: FontId, attrs: Attributes)
src/layout/font/context.rs:494
↓ 2 callersMethodpush_run
(&mut self, spans: &[SpanData], font: Font, size: f32, level: u8, shaper: Shaper<'a>)
src/layout/layout.rs:48
↓ 2 callersFunctionread_u16
(bytes: &[u8])
src/util/fxhash.rs:99
↓ 2 callersFunctionread_u32
(bytes: &[u8])
src/util/fxhash.rs:91
↓ 2 callersMethodruns
Returns an iterator over the runs of the line.
src/layout/layout.rs:629
↓ 2 callersMethodscan_data
( &mut self, data: &[u8], all_names: bool, mut f: impl FnMut(&FontInfo), )
src/layout/font/builder.rs:331
↓ 2 callersMethodselect_group
Selects a font group for subsequent cluster mapping operations.
src/layout/font/context.rs:61
↓ 2 callersFunctionshape_clusters
( fcx: &mut FontContext, scx: &mut ShapeContext, state: &mut ShapeState, parser: &mut Parser<I
src/layout/builder.rs:556
↓ 2 callersMethodsource
Returns the font source.
src/layout/font/index.rs:401
↓ 2 callersMethodto_f32
(self)
src/comp/image_cache/glyph.rs:353
↓ 2 callersMethodupgrade
Upgrades the weak reference.
src/layout/font/shared_data.rs:39
↓ 2 callersFunctionwrite32
(mut hash: u32, mut bytes: &[u8])
src/util/fxhash.rs:105
↓ 2 callersFunctionwrite64
(mut hash: u64, mut bytes: &[u8])
src/util/fxhash.rs:124
↓ 1 callersMethodadd_mask_rect
(&mut self, rect: &Rect, depth: f32, color: Color, coords: &[f32; 4], mask: TextureId, subpix: bool)
src/comp/batch/mod.rs:171
↓ 1 callersMethodadd_spacing
(&mut self, spacing: f32)
src/layout/layout_data.rs:150
↓ 1 callersMethodadd_system_fonts
Adds system fonts to the library.
src/layout/font/builder.rs:71
↓ 1 callersMethodadd_text
Adds a text fragment to the paragraph.
src/layout/builder.rs:106
↓ 1 callersMethodadd_user_fonts
Adds user fonts to the library.
src/layout/font/builder.rs:102
↓ 1 callersMethodall_names
Specifies whether all localized family names should be included in the context.
src/layout/font/builder.rs:46
↓ 1 callersMethodalloc_standalone
(&mut self, request: AddImage)
src/comp/image_cache/cache.rs:326
↓ 1 callersMethodallocate
Allocates a new image and optionally fills it with the specified data.
src/comp/image_cache/cache.rs:33
↓ 1 callersMethodapply_spacing
(&mut self, spans: &[SpanData])
src/layout/layout.rs:209
↓ 1 callersMethodas_ref
(&self)
src/layout/font/shared_data.rs:107
↓ 1 callersMethodascent
Returns the ascent of the line.
src/layout/layout.rs:579
↓ 1 callersMethodbegin
(&mut self, dir: Direction, lang: Option<Language>, scale: f32)
src/layout/builder_data.rs:143
↓ 1 callersMethodbegin
Advances the epoch for the compositor and clears all batches.
src/comp/mod.rs:43
↓ 1 callersMethodborrow
(&self)
src/comp/image_cache/glyph.rs:168
↓ 1 callersMethodbreak_lines
Clears the current line state and returns a line breaker for the paragraph.
src/layout/layout.rs:26
↓ 1 callersMethodbreak_next
Computes the next line in the paragraph. Returns the advance and size (width and height for horizontal layouts) of the line.
src/layout/line_breaker.rs:39
↓ 1 callersMethodbreak_remaining
Breaks all remaining lines with the specified maximum advance. This consumes the line breaker.
src/layout/line_breaker.rs:174
↓ 1 callersMethodbuffer_size
(&self, width: u32, height: u32)
src/comp/image_cache/mod.rs:15
↓ 1 callersMethodbuild
Consumes the builder and returns the resulting paragraph.
src/layout/builder.rs:276
↓ 1 callersMethodbuild
Builds a library for the current configuration.
src/layout/font/builder.rs:139
↓ 1 callersMethodbuild_display_list
(&self, list: &mut DisplayList)
src/comp/batch/mod.rs:133
↓ 1 callersFunctionbuild_document
()
src/main.rs:531
↓ 1 callersMethodbuilder
Creates a new builder for computing a paragraph layout with the specified direction, language and scaling factor.
src/layout/builder.rs:36
↓ 1 callersMethodclear
(&mut self)
src/layout/builder_data.rs:129
↓ 1 callersMethodclear
Clears the paragraph.
src/layout/layout.rs:41
↓ 1 callersMethodclear_advance
(&mut self)
src/layout/layout_data.rs:155
↓ 1 callersMethodcommands
Returns the sequence of display commands.
src/comp/batch/mod.rs:283
↓ 1 callersMethodcontains
(&self, stretch: Stretch, weight: Weight, style: Style)
src/layout/font/index_data.rs:30
↓ 1 callersFunctioncreate_view_proj
(width: u32, height: u32)
src/gfx/device.rs:195
↓ 1 callersMethoddeallocate
Deallocates the specified image.
src/comp/image_cache/cache.rs:118
↓ 1 callersMethoddeallocate_impl
(&mut self, x: u16, y: u16, width: u16)
src/comp/image_cache/atlas.rs:124
↓ 1 callersMethoddirection
Returns the direction of the run.
src/layout/layout.rs:289
↓ 1 callersMethoddowngrade
Creates a new weak reference to the data.
src/layout/font/shared_data.rs:81
↓ 1 callersMethoddrain_events
(&mut self, mut f: impl FnMut(TextureEvent))
src/comp/image_cache/cache.rs:204
↓ 1 callersMethoddraw_glyphs
Draws a text run.
src/comp/mod.rs:97
↓ 1 callersFunctiondraw_layout
( comp: &mut comp::Compositor, layout: &Paragraph, x: f32, y: f32, depth: f32, color:
src/main.rs:478
↓ 1 callersMethodemoji
(&mut self, fonts: &FontCache, attrs: Attributes)
src/layout/font/context.rs:427
↓ 1 callersMethodemoji_family
(&self)
src/layout/font/index.rs:249
↓ 1 callersMethodeol_state
(&self, layout: &Paragraph)
src/layout/nav.rs:638
↓ 1 callersMethoderase_previous
Returns the range of text that should be erased based on the current selection. This operation implements the action of the `backspace` key.
src/layout/nav.rs:166
↓ 1 callersMethodextend_full
(&self, layout: &Paragraph, other: Selection)
src/layout/nav.rs:423
↓ 1 callersMethodextend_word
(&self, layout: &Paragraph, other: Selection)
src/layout/nav.rs:382
↓ 1 callersMethodfallbacks
(&self, script: Script, cjk: Cjk)
src/layout/font/index.rs:253
↓ 1 callersMethodfamily_by_key
Returns a font family entry for the specified family key.
src/layout/font/index.rs:310
↓ 1 callersMethodfamily_by_name
Returns a font family entry for the specified name.
src/layout/font/index.rs:321
↓ 1 callersMethodfeatures
Returns an iterator over the features supported by a font.
src/layout/font/mod.rs:71
↓ 1 callersFunctionfill
( x: u16, y: u16, width: u16, height: u16, image: &[u8], target_width: u16, target
src/comp/image_cache/cache.rs:442
↓ 1 callersMethodfill_fallbacks
(&mut self, fonts: &FontCache)
src/layout/font/context.rs:414
↓ 1 callersMethodfind_and_pop
(&mut self, closer: char)
src/layout/bidi.rs:822
↓ 1 callersFunctionfind_limit
(types: &[BidiClass], offset: usize, ty: BidiClass)
src/layout/bidi.rs:706
↓ 1 callersFunctionfind_limit_by_mask
(types: &[BidiClass], offset: usize, mask: u32)
src/layout/bidi.rs:717
↓ 1 callersMethodfinish
Consumes the line breaker and finalizes all line computations.
src/layout/line_breaker.rs:180
← previousnext →101–200 of 417, ranked by callers