pub struct CT_PresetGeometry2D {
pub preset: String,
/* private fields */
}Fields§
§preset: StringImplementations§
Source§impl CT_PresetGeometry2D
impl CT_PresetGeometry2D
Sourcepub fn new(preset: &str) -> Result<Self, GeometryError>
pub fn new(preset: &str) -> Result<Self, GeometryError>
Creates preset geometry with a canonical empty adjustment list.
Sourcepub fn from_xml(xml: &[u8]) -> Result<Self, GeometryError>
pub fn from_xml(xml: &[u8]) -> Result<Self, GeometryError>
Parses one complete a:prstGeom element with any namespace prefix.
pub fn adjust_values(&self) -> &[Guide]
Sourcepub fn set_adjust_value(
&mut self,
name: &str,
value: f64,
) -> Result<(), GeometryError>
pub fn set_adjust_value( &mut self, name: &str, value: f64, ) -> Result<(), GeometryError>
Inserts or replaces one named val adjustment guide.
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,
size: (f64, f64),
) -> Result<Option<EvaluatedCustomGeometry>, GeometryError>
pub fn evaluate( &self, size: (f64, f64), ) -> Result<Option<EvaluatedCustomGeometry>, GeometryError>
Evaluates a known preset in the shape’s coordinate space.
Trait Implementations§
Source§impl Clone for CT_PresetGeometry2D
impl Clone for CT_PresetGeometry2D
Source§fn clone(&self) -> CT_PresetGeometry2D
fn clone(&self) -> CT_PresetGeometry2D
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_PresetGeometry2D
impl Debug for CT_PresetGeometry2D
Source§impl PartialEq for CT_PresetGeometry2D
impl PartialEq for CT_PresetGeometry2D
impl StructuralPartialEq for CT_PresetGeometry2D
Auto Trait Implementations§
impl Freeze for CT_PresetGeometry2D
impl RefUnwindSafe for CT_PresetGeometry2D
impl Send for CT_PresetGeometry2D
impl Sync for CT_PresetGeometry2D
impl Unpin for CT_PresetGeometry2D
impl UnsafeUnpin for CT_PresetGeometry2D
impl UnwindSafe for CT_PresetGeometry2D
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