Skip to main content

ShapePatch

Struct ShapePatch 

Source
pub struct ShapePatch {
    pub placeholder: Option<Placeholder>,
    pub offset: Option<(i64, i64)>,
    pub extent: Option<(i64, i64)>,
    pub inherited: Option<InheritedTransform>,
    pub materializes: bool,
    pub fill: Option<ShapeFill>,
    pub outline: Option<ShapeOutline>,
    pub adjust_values: Option<BTreeMap<String, f64>>,
    pub table_structure: Option<TableStructure>,
    pub texts: Vec<TextWrite>,
    pub children: Vec<ShapeWrite>,
}

Fields§

§placeholder: Option<Placeholder>§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.

§materializes: bool

The source spells out no transform of its own, so inherited also sets the rotation and flips of an a:xfrm it already has.

§fill: Option<ShapeFill>§outline: Option<ShapeOutline>

A default outline clears the stroke.

§adjust_values: Option<BTreeMap<String, f64>>§table_structure: Option<TableStructure>§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

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.