pub struct GraphicProps {
pub width: f64,
pub height: f64,
pub fit: GraphicFit,
pub commands: Vec<PathCommand>,
pub fill: Option<Color>,
pub stroke: Option<GraphicStroke>,
pub alternative: Option<String>,
pub animation: Option<GraphicAnimation>,
pub transition: Option<GraphicTransition>,
}Expand description
One nonzero-winding path, contained by default or explicitly stretched. Geometry is clipped to that box. Multiple colors are separate semantic nodes.
Fields§
§width: f64§height: f64§fit: GraphicFit§commands: Vec<PathCommand>§fill: Option<Color>§stroke: Option<GraphicStroke>§alternative: Option<String>None explicitly decorates the graphic; text must not be announced twice.
animation: Option<GraphicAnimation>§transition: Option<GraphicTransition>Implementations§
Trait Implementations§
Source§impl Clone for GraphicProps
impl Clone for GraphicProps
Source§impl Debug for GraphicProps
impl Debug for GraphicProps
Source§impl Default for GraphicProps
impl Default for GraphicProps
Source§impl PartialEq for GraphicProps
impl PartialEq for GraphicProps
impl StructuralPartialEq for GraphicProps
Auto Trait Implementations§
impl Forget for GraphicProps
impl Freeze for GraphicProps
impl Move for GraphicProps
impl RefUnwindSafe for GraphicProps
impl Send for GraphicPropswhere
RawVecInner: Send,
impl Sync for GraphicPropswhere
RawVecInner: Sync,
impl Unpin for GraphicProps
impl UnsafeUnpin for GraphicPropswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathCommand>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for GraphicPropswhere
RawVecInner: UnwindSafe,
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