pub struct Geometry {
pub segments: Vec<f32>,
pub bounds: [f32; 4],
pub groups: Vec<Option<[f32; 4]>>,
pub images: Vec<GlyphImage>,
pub units: usize,
}Expand description
Flattened geometry ready for upload: per segment two float4s, (x0, y0, x1, y1) and (weight, color group, 0, 0), in output pixels.
Fields§
§segments: Vec<f32>§bounds: [f32; 4]Bounds in output pixels (min x, min y, max x, max y).
groups: Vec<Option<[f32; 4]>>Colors of the segment groups, composited in order (each over the ones before): linear straight-alpha, or None for the node’s own color. Empty means one group in the node’s color.
images: Vec<GlyphImage>Color glyphs (emoji) drawn from their bitmaps over the groups.
units: usizeA text’s glyph units laid out: what its reveal counts (0 for
paths).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Geometry
impl Freeze for Geometry
impl Move for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more