pub struct Rectangle {Show 22 fields
pub fill_color: Option<i32>,
pub fill_rule: Option<ShapeFillRuleType>,
pub stroke_color: Option<i32>,
pub stroke_width: Option<f32>,
pub stroke_width_unit: UnitsLength,
pub stroke_dash_array: Option<String>,
pub text: Option<String>,
pub font_family: Option<FontFamilyType>,
pub font_size: Option<i32>,
pub font_size_unit: UnitsLength,
pub font_style: Option<ShapeFontStyleType>,
pub locked: Option<bool>,
pub id: String,
pub the_z: Option<i32>,
pub the_t: Option<i32>,
pub the_c: Option<i32>,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub transform: Option<AffineTransform>,
pub annotation_ref: Vec<AnnotationRef>,
}Fields§
§fill_color: Option<i32>§fill_rule: Option<ShapeFillRuleType>§stroke_color: Option<i32>§stroke_width: Option<f32>§stroke_width_unit: UnitsLength§stroke_dash_array: Option<String>§text: Option<String>§font_family: Option<FontFamilyType>§font_size: Option<i32>§font_size_unit: UnitsLength§font_style: Option<ShapeFontStyleType>§locked: Option<bool>§id: String§the_z: Option<i32>§the_t: Option<i32>§the_c: Option<i32>§x: f32§y: f32§width: f32§height: f32§transform: Option<AffineTransform>§annotation_ref: Vec<AnnotationRef>Implementations§
Source§impl Rectangle
impl Rectangle
pub fn default_stroke_width_unit() -> UnitsLength
pub fn default_font_size_unit() -> UnitsLength
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rectangle
impl<'de> Deserialize<'de> for Rectangle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
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