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
Method
default
()
src/layout/font/family.rs:39
Method
default
()
src/layout/font/index.rs:38
Method
default
()
src/layout/font/context.rs:271
Method
default
()
src/layout/font/builder.rs:28
Method
default
()
src/util/fxhash.rs:173
Method
default_level
(types: &[BidiClass])
src/layout/bidi.rs:152
Method
default_level_until_pdi
(types: &[BidiClass])
src/layout/bidi.rs:174
Method
deref
(&self)
src/layout/font/shared_data.rs:101
Method
draw_image
Draws an image with the specified rectangle, depth and color.
src/comp/mod.rs:83
Method
drop
(&mut self)
src/gfx/mod.rs:85
Method
drop
(&mut self)
src/util/string.rs:64
Method
dump
(&self, layout: &Paragraph)
src/layout/nav.rs:341
Method
dump_clusters
(&self)
src/layout/layout.rs:14
Method
dump_lines
(&self)
src/comp/image_cache/atlas.rs:282
Method
eq
(&self, other: &Self)
src/layout/font/mod.rs:123
Method
eq
(&self, other: &Self)
src/layout/font/family.rs:48
Method
eq
(&self, other: &Self)
src/comp/image_cache/glyph.rs:215
Method
eq
(&self, other: &Self)
src/util/string.rs:91
Method
erase
Returns the range of text that should be erased based on the current selection. This operation implements the action of the `delete` key.
src/layout/nav.rs:153
Method
erase2
(&mut self, offset: usize)
src/doc/mod.rs:94
Method
families
Returns an iterator over the font families represented by the names.
src/layout/font/family.rs:29
Method
family
Returns the family entry.
src/layout/font/index.rs:419
Method
family_list
(families: impl Into<FamilyList>)
src/layout/span_style.rs:45
Method
family_name
Returns the family name.
src/layout/font/index.rs:427
Method
features
(features: impl Into<Cow<'a, [Setting<u16>]>>)
src/layout/span_style.rs:49
Method
finish
(&self)
src/util/fxhash.rs:218
Method
fmt
(&self, f: &mut fmt::Formatter)
src/util/string.rs:123
Method
font_by_id
Returns a font entry for the specified identifier.
src/layout/font/index.rs:338
Method
fonts
Returns an iterator over the fonts in the family.
src/layout/font/index.rs:374
Method
from
(value: Direction)
src/layout/span_style.rs:122
Method
from
(f: &'a Font)
src/layout/font/mod.rs:131
Method
from
(name: &'a str)
src/layout/font/types.rs:76
Method
from
(s: &str)
src/layout/font/family.rs:56
Method
from
(v: (FontId, Attributes, Attributes))
src/layout/font/context.rs:578
Method
from
(c: Color)
src/comp/color.rs:257
Method
from
(v: [f32; 4])
src/comp/batch/mod.rs:35
Method
from_file
Creates shared data from the specified path.
src/layout/font/shared_data.rs:55
Method
from_focus
(focus: Node)
src/layout/nav.rs:348
Method
from_name
Creates a new color from a CSS name.
src/comp/color.rs:26
Method
from_offset
Creates a new selection with a focus nearest to the character with the specified byte offset.
src/layout/nav.rs:90
Method
from_point
Creates a new selection with the focus at the specified point.
src/layout/nav.rs:34
Method
from_point_direct
(layout: &Paragraph, mut x: f32, y: f32)
src/layout/nav.rs:534
Method
from_visual_cluster
(layout: &Paragraph, mut index: u32, mut after: bool)
src/layout/nav.rs:572
Method
get
(&self)
src/layout/font/fallback.rs:29
Method
get
(&self)
src/layout/font/index_data.rs:222
Method
get_image
(&mut self, image: ImageId)
src/comp/image_cache/glyph.rs:109
Method
glyph_metrics
Returns glyph metrics for the font and the specified normalized variation coordinates.
src/layout/font/mod.rs:83
Method
glyphs
( &self, detail: &[DetailedClusterData], glyphs: &'a [GlyphData], )
src/layout/layout_data.rs:57
Method
hash
(&self, state: &mut H)
src/comp/image_cache/glyph.rs:223
Method
hash
(&self, hasher: &mut H)
src/util/string.rs:117
Method
height
Returns the height of the atlas.
src/comp/image_cache/atlas.rs:30
Method
height
(&self)
src/gfx/mod.rs:127
Method
index
Returns the index of the font in the source.
src/layout/font/index.rs:409
Method
instances
Returns an iterator over the named instances for the font.
src/layout/font/mod.rs:61
Method
is_continuation
Returns true if the cluster is a continuation of a ligature.
src/layout/layout.rs:471
Method
is_last_continuation
(&self)
src/layout/layout_data.rs:49
Method
is_ligature
(&self)
src/layout/layout_data.rs:41
Method
is_newline
(&self)
src/layout/layout_data.rs:53
Method
level
Returns the bidi level of the run.
src/layout/layout.rs:284
Method
library
Returns the underlying font library.
src/layout/font/context.rs:45
Method
line_from_point
Creates a new selection bounding the line at the specified point.
src/layout/nav.rs:81
Function
main
()
build.rs:6
Function
main
()
src/main.rs:21
Method
name
Returns the name of the family.
src/layout/font/index.rs:369
Method
new
(layout: &'a mut LayoutData, lines: &'a mut LineLayoutData)
src/layout/line_breaker.rs:28
Method
new
Creates a new layout state.
src/layout/builder_data.rs:126
Method
new
Creates a new resolver.
src/layout/bidi.rs:30
Method
new
Creates a new empty paragraph.
src/layout/layout.rs:20
Method
new
Creates a new layout context with the specified font library.
src/layout/builder.rs:25
Method
new
(index: StaticIndex)
src/layout/font/library.rs:18
Method
new
Creates shared data from the specified bytes.
src/layout/font/shared_data.rs:48
Method
new
Creates a new font descriptor from a CSS style list of family names.
src/layout/font/family.rs:15
Method
new
(library: FontLibrary)
src/layout/font/context.rs:30
Method
new
()
src/layout/font/fallback.rs:9
Method
new
()
src/layout/font/builder.rs:175
Method
new
Creates a new compositor.
src/comp/mod.rs:32
Method
new
Creates a new color from RGBA components.
src/comp/color.rs:21
Method
new
Creates a new rectangle.
src/comp/batch/mod.rs:24
Method
new
()
src/comp/image_cache/glyph.rs:27
Method
new
(generation: u8, index: u32, alpha: bool)
src/comp/image_cache/mod.rs:49
Method
new
Creates a new atlas with the specified dimensions.
src/comp/image_cache/atlas.rs:13
Method
new
Creates a new image cache.
src/comp/image_cache/cache.rs:18
Method
new
()
src/gfx/device.rs:14
Method
new
(kind: BufferKind)
src/gfx/mod.rs:35
Method
new
()
src/util/atomic.rs:6
Method
new
(s: &str)
src/util/string.rs:18
Method
next
(&mut self)
src/layout/layout.rs:355
Method
next
(&self)
src/util/atomic.rs:10
Method
offset
Returns the byte offset of the cluster in the source text.
src/layout/layout.rs:486
Method
parse
Parses a generic font family from CSS style names.
src/layout/font/types.rs:52
Method
parse
Creates a new color from a CSS style color definition.
src/comp/color.rs:175
Method
partial_cmp
(&self, other: &Self)
src/layout/nav.rs:727
Method
prune
(&mut self, epoch: Epoch, target_size: usize)
src/layout/font/context.rs:444
Method
quantize
Skia quantizes subpixel offsets into 1/4 increments. Given the absolute position, return the quantized increment
src/comp/image_cache/glyph.rs:335
Method
query
Returns a font entry that matches the specified family and attributes.
src/layout/font/index.rs:293
Method
query
Returns the font that most closely matches the specified attributes.
src/layout/font/index_data.rs:40
Method
range
Returns the source range for the currently selected text. Note that the ordering of this range is dependent on the direction in which the text was sel
src/layout/nav.rs:133
Method
range
Returns the byte range of the cluster in the source text.
src/layout/layout.rs:491
Method
remove_image
Removes the image from the compositor.
src/comp/mod.rs:70
Function
reorder
Computes an ordering for a sequence of bidi runs based on levels.
src/layout/bidi.rs:648
← previous
next →
301–400 of 417, ranked by callers