pub struct XamlGeometry {
pub width: f32,
pub height: f32,
pub shapes: Vec<XamlShape>,
}Expand description
A glyph as XAML geometry: the shapes plus the viewport they are drawn in, which the backend
needs to scale them into whatever box the layout gives (a Viewbox, or a scale transform on
the geometry for the fixed icon slots).
Fields§
§width: f32§height: f32§shapes: Vec<XamlShape>Implementations§
Source§impl XamlGeometry
The line-oriented form staged under build/day/vectors/xaml/, parsed by day-xaml.
impl XamlGeometry
The line-oriented form staged under build/day/vectors/xaml/, parsed by day-xaml.
V <width> <height>
P <fill|-> <evenOdd 0|1> <stroke|-> <strokeWidth> <cap> <join> \t <path data>Tab-separated payload so the path data — which contains spaces and commas — needs no escaping, and one line per shape so a reader can stop at the first line it does not know.
Auto Trait Implementations§
impl Freeze for XamlGeometry
impl RefUnwindSafe for XamlGeometry
impl Send for XamlGeometry
impl Sync for XamlGeometry
impl Unpin for XamlGeometry
impl UnsafeUnpin for XamlGeometry
impl UnwindSafe for XamlGeometry
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