pub struct ShapePatch {
pub offset: Option<(i64, i64)>,
pub extent: Option<(i64, i64)>,
pub inherited: Option<InheritedTransform>,
pub fill: Option<ShapeFill>,
pub outline: Option<ShapeOutline>,
pub adjust_values: Option<BTreeMap<String, f64>>,
pub texts: Vec<TextWrite>,
pub children: Vec<ShapeWrite>,
}Fields§
§offset: Option<(i64, i64)>The halves the edit changed. Transform pieces the source already spells out and the edit did not touch are left as they are.
extent: Option<(i64, i64)>§inherited: Option<InheritedTransform>Fills in transform pieces the source never spelled out.
fill: Option<ShapeFill>§outline: Option<ShapeOutline>A default outline clears the stroke.
adjust_values: Option<BTreeMap<String, f64>>§texts: Vec<TextWrite>§children: Vec<ShapeWrite>Non-empty only when a group’s child list must be rebuilt.
Trait Implementations§
Source§impl Default for ShapePatch
impl Default for ShapePatch
Source§fn default() -> ShapePatch
fn default() -> ShapePatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShapePatch
impl RefUnwindSafe for ShapePatch
impl Send for ShapePatch
impl Sync for ShapePatch
impl Unpin for ShapePatch
impl UnsafeUnpin for ShapePatch
impl UnwindSafe for ShapePatch
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