pub struct CT_CustomGeometry2D {
pub text_rectangle: Option<CT_GeomRect>,
/* private fields */
}Fields§
§text_rectangle: Option<CT_GeomRect>Implementations§
Source§impl CT_CustomGeometry2D
impl CT_CustomGeometry2D
Sourcepub fn from_xml(xml: &[u8]) -> Result<Self, GeometryError>
pub fn from_xml(xml: &[u8]) -> Result<Self, GeometryError>
Parses one complete a:custGeom element with any namespace prefix.
Sourcepub fn from_element(
reader: &mut Reader<&[u8]>,
start: &BytesStart<'_>,
) -> Result<Self, GeometryError>
pub fn from_element( reader: &mut Reader<&[u8]>, start: &BytesStart<'_>, ) -> Result<Self, GeometryError>
Parses an a:custGeom after the caller consumed its start event.
pub fn adjust_values(&self) -> &[Guide]
pub fn guides(&self) -> &[Guide]
pub fn paths(&self) -> &[CT_Path2D]
Sourcepub fn to_xml(&self) -> Result<Vec<u8>, GeometryError>
pub fn to_xml(&self) -> Result<Vec<u8>, GeometryError>
Writes with the canonical a: prefix and DrawingML schema order.
Sourcepub fn evaluate(
&self,
overrides: &BTreeMap<String, f64>,
) -> Result<EvaluatedCustomGeometry, GeometryError>
pub fn evaluate( &self, overrides: &BTreeMap<String, f64>, ) -> Result<EvaluatedCustomGeometry, GeometryError>
Evaluates all paths and the text rectangle in each path’s coordinate space.
Sourcepub fn evaluate_with_size(
&self,
overrides: &BTreeMap<String, f64>,
size: (f64, f64),
) -> Result<EvaluatedCustomGeometry, GeometryError>
pub fn evaluate_with_size( &self, overrides: &BTreeMap<String, f64>, size: (f64, f64), ) -> Result<EvaluatedCustomGeometry, GeometryError>
Evaluates paths with the containing shape size on omitted coordinate axes.
Trait Implementations§
Source§impl Clone for CT_CustomGeometry2D
impl Clone for CT_CustomGeometry2D
Source§fn clone(&self) -> CT_CustomGeometry2D
fn clone(&self) -> CT_CustomGeometry2D
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CT_CustomGeometry2D
impl Debug for CT_CustomGeometry2D
Source§impl PartialEq for CT_CustomGeometry2D
impl PartialEq for CT_CustomGeometry2D
impl StructuralPartialEq for CT_CustomGeometry2D
Auto Trait Implementations§
impl Freeze for CT_CustomGeometry2D
impl RefUnwindSafe for CT_CustomGeometry2D
impl Send for CT_CustomGeometry2D
impl Sync for CT_CustomGeometry2D
impl Unpin for CT_CustomGeometry2D
impl UnsafeUnpin for CT_CustomGeometry2D
impl UnwindSafe for CT_CustomGeometry2D
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