pub enum ClipEntry {
Path {
path: BezPath,
rule: ClipRule,
},
Text {
runs: Vec<TextClipRun>,
},
}Expand description
One clipping contribution.
Variants§
Path
A path, with the rule that decides its interior.
Fields
Text
One batch of text objects shown in a clipping render mode, between a
BT and the ET that closed it.
The objects, not their outlines, because turning a run into glyph outlines needs the placement arithmetic — advances, kerning, word and character spacing, the substituted-font width solve — that lives in the renderer beside the code that draws the same run normally. The oracle holds text objects here for the same reason and lays each one out at clip time; deriving them twice, once for painting and once for clipping, is how the two would drift apart.
Fields
§
runs: Vec<TextClipRun>The runs, in the order they were shown.
Trait Implementations§
impl StructuralPartialEq for ClipEntry
Auto Trait Implementations§
impl !RefUnwindSafe for ClipEntry
impl !UnwindSafe for ClipEntry
impl Freeze for ClipEntry
impl Send for ClipEntry
impl Sync for ClipEntry
impl Unpin for ClipEntry
impl UnsafeUnpin for ClipEntry
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