pub struct ShapeFormat {
pub no_line: bool,
pub font_size: Option<f32>,
pub bold: bool,
pub italic: bool,
pub font: Option<String>,
pub text_color: Option<Color>,
pub text_outline: Option<(Color, f32)>,
pub align: Option<ShapeTextAlign>,
pub anchor: Option<ShapeTextAnchor>,
pub rtl: bool,
}Expand description
How a shape’s outline and text look. The text properties apply to the whole text (the first paragraph’s and first run’s properties when a file has several).
Fields§
§no_line: boolNo outline (a:ln/a:noFill), whatever Shape::line says.
font_size: Option<f32>Text size in points (a:rPr sz / 100); None is the default size.
bold: bool§italic: bool§font: Option<String>Typeface (a:latin typeface); None is the default font.
text_color: Option<Color>Text fill colour; None is the default (black in text boxes).
text_outline: Option<(Color, f32)>Text outline (a:rPr/a:ln): colour and width in points.
align: Option<ShapeTextAlign>None: the shape’s default (left for text boxes, centred for other shapes).
anchor: Option<ShapeTextAnchor>None: the shape’s default (top for text boxes, middle for other shapes).
rtl: boolParagraphs run right to left (a:pPr rtl).
Trait Implementations§
Source§impl Clone for ShapeFormat
impl Clone for ShapeFormat
Source§fn clone(&self) -> ShapeFormat
fn clone(&self) -> ShapeFormat
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 ShapeFormat
impl Debug for ShapeFormat
Source§impl Default for ShapeFormat
impl Default for ShapeFormat
Source§fn default() -> ShapeFormat
fn default() -> ShapeFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShapeFormatwhere
ShapeFormat: Default,
impl<'de> Deserialize<'de> for ShapeFormatwhere
ShapeFormat: Default,
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
Source§impl PartialEq for ShapeFormat
impl PartialEq for ShapeFormat
Source§impl Serialize for ShapeFormat
impl Serialize for ShapeFormat
impl StructuralPartialEq for ShapeFormat
Auto Trait Implementations§
impl Freeze for ShapeFormat
impl RefUnwindSafe for ShapeFormat
impl Send for ShapeFormat
impl Sync for ShapeFormat
impl Unpin for ShapeFormat
impl UnsafeUnpin for ShapeFormat
impl UnwindSafe for ShapeFormat
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