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
↓ 1 callers
Method
finish
(&mut self)
src/layout/layout.rs:251
↓ 1 callers
Method
finish
Builds a display list for the current batched geometry and enumerates all texture events with the specified closure.
src/comp/mod.rs:51
↓ 1 callers
Method
finish_composition
(&mut self, compositor: &mut Compositor, display_list: &mut DisplayList)
src/gfx/device.rs:45
↓ 1 callers
Method
font
Returns the font for the run.
src/layout/layout.rs:274
↓ 1 callers
Method
font_by_id
Returns a font entry for the specified identifier.
src/layout/font/context.rs:161
↓ 1 callers
Method
font_size
Returns the font size for the run.
src/layout/layout.rs:279
↓ 1 callers
Function
get_entry
(fonts: &'a mut HashMap<FontKey, FontEntry>, id: u64, coords: &[i16])
src/comp/image_cache/glyph.rs:84
↓ 1 callers
Method
get_image
Returns the image associated with the specified identifier.
src/comp/mod.rs:65
↓ 1 callers
Method
get_selection_into
(&self, range: Range<usize>, buf: &mut String)
src/doc/mod.rs:24
↓ 1 callers
Method
glyphs_mut
( &self, detail: &[DetailedClusterData], glyphs: &'a mut [GlyphData], )
src/layout/layout_data.rs:97
↓ 1 callers
Method
handle_texture_event
(&mut self, event: &TextureEvent)
src/gfx/device.rs:24
↓ 1 callers
Method
indices
Returns the buffered indices for the display list.
src/comp/batch/mod.rs:278
↓ 1 callers
Method
is_continuation
(&self)
src/layout/layout_data.rs:45
↓ 1 callers
Method
is_last_continuation
Returns true if the cluster is the final continuation of a ligature.
src/layout/layout.rs:476
↓ 1 callers
Method
is_ligature
Returns true if the cluster is a ligature.
src/layout/layout.rs:466
↓ 1 callers
Method
itemize
(&mut self)
src/layout/builder.rs:315
↓ 1 callers
Method
layout
(&self, lcx: &mut ParagraphBuilder)
src/doc/mod.rs:18
↓ 1 callers
Method
layout_span
(&self, span: u32, lcx: &mut ParagraphBuilder)
src/doc/mod.rs:103
↓ 1 callers
Method
leading
Returns the leading of the line.
src/layout/layout.rs:589
↓ 1 callers
Method
levels
Returns the sequence of bidi levels corresponding to all characters in the paragraph.
src/layout/bidi.rs:45
↓ 1 callers
Function
load
(gl_context: &glutin::Context<PossiblyCurrent>)
src/gfx/gl.rs:6
↓ 1 callers
Method
localized_strings
Returns an iterator over the localized strings for the font.
src/layout/font/mod.rs:51
↓ 1 callers
Method
map_fallbacks
Specifies whether default fallbacks should be mapped for the current platform.
src/layout/font/builder.rs:133
↓ 1 callers
Method
map_generic_families
Specifies whether default generic families should be mapped for the current platform.
src/layout/font/builder.rs:126
↓ 1 callers
Method
metrics
Returns metrics for the font and the specified normalized variation coordinates.
src/layout/font/mod.rs:77
↓ 1 callers
Method
mmap
Specifies a memory mapping hint.
src/layout/font/builder.rs:52
↓ 1 callers
Method
next_back
(&mut self)
src/layout/layout.rs:422
↓ 1 callers
Method
next_line
Returns a new, optionally extended, selection with the focus at a position on the next line that matches the state of the current selection.
src/layout/nav.rs:260
↓ 1 callers
Method
path
Returns the path of the source, if it is represented by a file.
src/layout/font/index.rs:462
↓ 1 callers
Method
pop_span
Pops the current span, restoring the styles of the parent.
src/layout/builder.rs:95
↓ 1 callers
Method
previous
Returns a new, optionally extended, selection with the focus at the previous visual character.
src/layout/nav.rs:219
↓ 1 callers
Method
previous_line
Returns a new, optionally extended, selection with the focus at a position on the previous line that matches the state of the current selection.
src/layout/nav.rs:278
↓ 1 callers
Method
prune
(&mut self, epoch: Epoch, images: &mut ImageCache)
src/comp/image_cache/glyph.rs:61
↓ 1 callers
Method
push_glyph
(&mut self, glyph: &ShapedGlyph)
src/layout/layout.rs:185
↓ 1 callers
Method
push_rect
(&mut self, rect: &Rect, depth: f32, flags: f32, color: Color, coords: Option<&[f32; 4]>)
src/comp/batch/mod.rs:95
↓ 1 callers
Method
push_span
Enters a new span with the specified styles.
src/layout/builder.rs:74
↓ 1 callers
Method
range
(&self)
src/comp/image_cache/glyph.rs:314
↓ 1 callers
Function
read_u64
(bytes: &[u8])
src/util/fxhash.rs:79
↓ 1 callers
Method
regions_with
Invokes the specified function with a series of rectangles that define the visual state of the selection.
src/layout/nav.rs:295
↓ 1 callers
Method
register_group
Registers a font group.
src/layout/font/context.rs:56
↓ 1 callers
Method
render
(&mut self, width: u32, height: u32, list: &DisplayList)
src/gfx/device.rs:49
↓ 1 callers
Function
reorder_runs
(runs: &mut [RunData])
src/layout/line_breaker.rs:406
↓ 1 callers
Method
reset
(&mut self)
src/layout/font/context.rs:286
↓ 1 callers
Method
reset
(&mut self)
src/comp/batch/mod.rs:163
↓ 1 callers
Method
reset_group_state
Resets font group caches and state. This should be called at the end of every layout session.
src/layout/font/context.rs:51
↓ 1 callers
Method
resolve
(&mut self, layout: &mut Paragraph)
src/layout/builder.rs:284
↓ 1 callers
Method
resolve_levels
(&mut self)
src/layout/bidi.rs:198
↓ 1 callers
Method
resolve_runs
(&mut self)
src/layout/bidi.rs:296
↓ 1 callers
Method
resolve_sequence
( &mut self, level: u8, sos: BidiClass, eos: BidiClass, len: usize,
src/layout/bidi.rs:381
↓ 1 callers
Method
resolve_with_types
Resolves a paragraph with the specified base direction and precomputed types.
src/layout/bidi.rs:61
↓ 1 callers
Method
rgb
Converts the color to an array of bytes in RGB order.
src/comp/color.rs:220
↓ 1 callers
Method
rgba
Converts the color to an array of bytes in RGBA order.
src/comp/color.rs:205
↓ 1 callers
Method
run_data_for_cluster
(&self, cluster: u32)
src/layout/layout_data.rs:257
↓ 1 callers
Method
run_index_for_cluster
(&self, cluster: u32)
src/layout/layout_data.rs:248
↓ 1 callers
Method
same_kind
(&self, other: &SpanStyle)
src/layout/span_style.rs:101
↓ 1 callers
Method
scan_dir
( &mut self, path: impl AsRef<Path>, all_names: bool, sink: &mut impl ScannerS
src/layout/font/builder.rs:307
↓ 1 callers
Method
scan_dir_impl
( &mut self, path: impl AsRef<Path>, all_names: bool, sink: &mut impl ScannerS
src/layout/font/builder.rs:347
↓ 1 callers
Method
scan_file
( &mut self, path: impl AsRef<Path>, all_names: bool, sink: &mut impl ScannerS
src/layout/font/builder.rs:316
↓ 1 callers
Method
scan_font
( &mut self, font: FontRef, index: u32, all_names: bool, f: &mut impl
src/layout/font/builder.rs:400
↓ 1 callers
Method
select
Selects a descriptor for mapping clusters.
src/layout/font/context.rs:394
↓ 1 callers
Method
select_fallbacks
Selects fallback fonts for the specified writing system.
src/layout/font/context.rs:66
↓ 1 callers
Method
session
( &'a mut self, epoch: Epoch, images: &'a mut ImageCache, font: FontRef<'a>,
src/comp/image_cache/glyph.rs:35
↓ 1 callers
Method
setup_default_fallbacks
(&mut self)
src/layout/font/index.rs:51
↓ 1 callers
Method
setup_default_generic
(&mut self)
src/layout/font/index.rs:188
↓ 1 callers
Method
shape
(&mut self, layout: &mut Paragraph)
src/layout/builder.rs:410
↓ 1 callers
Function
shape_item
( fcx: &mut FontContext, scx: &mut ShapeContext, state: &BuilderState, item: &ItemData, cl
src/layout/builder.rs:455
↓ 1 callers
Method
to_rgba_f32
Converts the byte color into a floating point representation.
src/comp/color.rs:250
↓ 1 callers
Method
underline
Returns true if the run has an underline decoration.
src/layout/layout.rs:311
↓ 1 callers
Method
underline_offset
Returns the underline offset for the run.
src/layout/layout.rs:316
↓ 1 callers
Method
underline_size
Returns the underline size for the run.
src/layout/layout.rs:321
↓ 1 callers
Method
vertices
Returns the buffered vertices for the display list.
src/comp/batch/mod.rs:273
↓ 1 callers
Method
width
Returns the width of the atlas.
src/comp/image_cache/atlas.rs:25
↓ 1 callers
Function
write
(hash: usize, bytes: &[u8])
src/util/fxhash.rs:149
↓ 1 callers
Method
write
(&mut self, bytes: &[u8])
src/util/fxhash.rs:180
↓ 1 callers
Method
write_u32
(&mut self, i: u32)
src/util/fxhash.rs:195
↓ 1 callers
Method
write_u64
(&mut self, i: u64)
src/util/fxhash.rs:201
Method
abgr
Converts the color to an array of bytes in ABGR order.
src/comp/color.rs:215
Method
activate
(&self)
src/gfx/mod.rs:236
Method
add
(&mut self, x: u16, y: u16, width: u16, height: u16)
src/comp/image_cache/cache.rs:431
Method
add_file
Adds a font file to the library.
src/layout/font/builder.rs:64
Method
add_image
Adds an image to the compositor.
src/comp/mod.rs:60
Method
advance
( &self, detail: &[DetailedClusterData], glyphs: &[GlyphData], detail_glyphs:
src/layout/layout_data.rs:72
Method
advance_without_trailing_whitespace
Returns the total advance of the line excluding trailing whitespace.
src/layout/layout.rs:599
Method
allocate
()
src/comp/image_cache/mod.rs:38
Method
alpha_strikes
Returns an iterator over the alpha bitmap strikes for the font.
src/layout/font/mod.rs:98
Method
anchor_offset
Returns the current source offset for the anchor of the selection.
src/layout/nav.rs:125
Method
argb
Converts the color to an array of bytes in ARGB order.
src/comp/color.rs:210
Method
attributes
Returns the font attributes.
src/layout/font/index.rs:432
Method
bgr
Converts the color to an array of bytes in BGR order.
src/comp/color.rs:225
Method
builder
Creates builder for a font library.
src/layout/font/library.rs:14
Method
cache_key
(&self)
src/layout/font/index.rs:436
Method
charmap
Returns the character map for the font.
src/layout/font/mod.rs:88
Method
clear
(&mut self)
src/layout/layout_data.rs:202
Method
clear_evicted
(&mut self, images: &mut ImageCache)
src/comp/image_cache/glyph.rs:76
Method
clusters
Returns an iterator over the clusters in logical order.
src/layout/layout.rs:326
Method
color_palettes
Returns an iterator over the color palettes for the font.
src/layout/font/mod.rs:93
Method
color_strikes
Returns an iterator over the color bitmap strikes for the font.
src/layout/font/mod.rs:103
Method
default
()
src/layout/line_breaker.rs:14
Method
default
()
src/layout/span_style.rs:116
Method
default
()
src/layout/font/library.rs:28
← previous
next →
201–300 of 417, ranked by callers