Struct spreadsheet_ods::style::TextStyle[][src]

pub struct TextStyle { /* fields omitted */ }

Text style. This is not used for cell-formatting. Use CellStyle instead.

Implementations

impl TextStyle[src]

pub fn empty() -> Self[src]

pub fn new<S: Into<String>, T: Into<String>>(name: S) -> Self[src]

pub fn style_ref(&self) -> TextStyleRef[src]

pub fn origin(&self) -> StyleOrigin[src]

pub fn set_origin(&mut self, origin: StyleOrigin)[src]

pub fn styleuse(&self) -> StyleUse[src]

pub fn set_styleuse(&mut self, styleuse: StyleUse)[src]

pub fn name(&self) -> &str[src]

pub fn set_name<S: Into<String>>(&mut self, name: S)[src]

pub fn display_name(&self) -> Option<&String>[src]

pub fn set_display_name<S: Into<String>>(&mut self, name: S)[src]

pub fn parent_style(&self) -> Option<&String>[src]

pub fn set_parent_style(&mut self, name: &TextStyleRef)[src]

pub fn attrmap(&self) -> &AttrMap2[src]

pub fn attrmap_mut(&mut self) -> &mut AttrMap2[src]

pub fn textstyle(&self) -> &AttrMap2[src]

pub fn textstyle_mut(&mut self) -> &mut AttrMap2[src]

pub fn set_color(&mut self, color: Rgb<u8>)[src]

Text color

pub fn set_font_name<S: Into<String>>(&mut self, name: S)[src]

Text font.

pub fn set_font_attr(&mut self, size: Length, bold: bool, italic: bool)[src]

Combined font attributes.

pub fn set_font_size(&mut self, size: Length)[src]

Font size.

pub fn set_font_size_percent(&mut self, size: f64)[src]

Font size as a percentage.

pub fn set_font_italic(&mut self)[src]

Set to italic.

pub fn set_font_style(&mut self, style: FontStyle)[src]

Set font style.

pub fn set_font_bold(&mut self)[src]

Set to bold.

pub fn set_font_weight(&mut self, weight: FontWeight)[src]

Sets the font weight.

pub fn set_letter_spacing(&mut self, spacing: Length)[src]

Sets the letter spacing.

pub fn set_letter_spacing_normal(&mut self)[src]

Sets the letter spacing to normal.

pub fn set_text_shadow(
    &mut self,
    x_offset: Length,
    y_offset: Length,
    blur: Option<Length>,
    color: Rgb<u8>
)
[src]

Text shadow.

pub fn set_text_position(&mut self, pos: TextPosition)[src]

Text positioning.

pub fn set_text_transform(&mut self, trans: TextTransform)[src]

Transforms on the text.

pub fn set_font_relief(&mut self, relief: TextRelief)[src]

Font style relief.

pub fn set_font_line_through_color(&mut self, color: Rgb<u8>)[src]

Color

pub fn set_font_line_through_style(&mut self, lstyle: LineStyle)[src]

Line through

pub fn set_font_line_through_mode(&mut self, lmode: LineMode)[src]

Line through

pub fn set_font_line_through_type(&mut self, ltype: LineType)[src]

Line through

pub fn set_font_line_through_text<S: Into<String>>(&mut self, text: S)[src]

Line through

pub fn set_font_line_through_text_style(&mut self, style_ref: TextStyleRef)[src]

References a text-style.

pub fn set_font_line_through_width(&mut self, lwidth: LineWidth)[src]

Line through

pub fn set_font_text_outline(&mut self, outline: bool)[src]

Outline

pub fn set_font_underline_color(&mut self, color: Rgb<u8>)[src]

Underlining

pub fn set_font_underline_style(&mut self, lstyle: LineStyle)[src]

Underlining

pub fn set_font_underline_type(&mut self, ltype: LineType)[src]

Underlining

pub fn set_font_underline_mode(&mut self, lmode: LineMode)[src]

Underlining

pub fn set_font_underline_width(&mut self, lwidth: LineWidth)[src]

Underlining

pub fn set_font_overline_color(&mut self, color: Rgb<u8>)[src]

Overlining

pub fn set_font_overline_style(&mut self, lstyle: LineStyle)[src]

Overlining

pub fn set_font_overline_type(&mut self, ltype: LineType)[src]

Overlining

pub fn set_font_overline_mode(&mut self, lmode: LineMode)[src]

Overlining

pub fn set_font_overline_width(&mut self, lwidth: LineWidth)[src]

Overlining

Trait Implementations

impl Clone for TextStyle[src]

impl Debug for TextStyle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.