Allow Clone of layout structs
This commit is contained in:
parent
daa5a6615c
commit
04c96f39c5
1 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ use alloc::vec::Vec;
|
||||||
use crate::{CacheKey, Color};
|
use crate::{CacheKey, Color};
|
||||||
|
|
||||||
/// A laid out glyph
|
/// A laid out glyph
|
||||||
#[derive(Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct LayoutGlyph {
|
pub struct LayoutGlyph {
|
||||||
/// Start index of cluster in original line
|
/// Start index of cluster in original line
|
||||||
pub start: usize,
|
pub start: usize,
|
||||||
|
|
@ -52,7 +52,7 @@ pub struct LayoutGlyph {
|
||||||
pub metadata: usize,
|
pub metadata: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct PhysicalGlyph {
|
pub struct PhysicalGlyph {
|
||||||
/// Cache key, see [CacheKey]
|
/// Cache key, see [CacheKey]
|
||||||
pub cache_key: CacheKey,
|
pub cache_key: CacheKey,
|
||||||
|
|
@ -82,7 +82,7 @@ impl LayoutGlyph {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A line of laid out glyphs
|
/// A line of laid out glyphs
|
||||||
#[derive(Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct LayoutLine {
|
pub struct LayoutLine {
|
||||||
/// Width of the line
|
/// Width of the line
|
||||||
pub w: f32,
|
pub w: f32,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue