Struct spreadsheet_ods::style::PageStyle[][src]

pub struct PageStyle { /* fields omitted */ }

Describes the style information for a page. For an example see MasterPage.

Implementations

impl PageStyle[src]

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

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

Style reference.

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

Style name

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

Style name

pub fn headerstyle(&self) -> &HeaderFooterStyle[src]

Attributes for header.

pub fn headerstyle_mut(&mut self) -> &mut HeaderFooterStyle[src]

Attributes for header.

pub fn footerstyle(&self) -> &HeaderFooterStyle[src]

Attributes for footer.

pub fn footerstyle_mut(&mut self) -> &mut HeaderFooterStyle[src]

Attributes for footer.

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

Access to all style attributes.

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

Access to all style attributes.

pub fn set_page_height(&mut self, height: Length)[src]

Page Height

pub fn set_page_width(&mut self, width: Length)[src]

Page Width

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

Background-color

pub fn set_border(&mut self, width: Length, border: Border, color: Rgb<u8>)[src]

Border style all four sides.

pub fn set_border_bottom(
    &mut self,
    width: Length,
    border: Border,
    color: Rgb<u8>
)
[src]

Border style.

pub fn set_border_top(&mut self, width: Length, border: Border, color: Rgb<u8>)[src]

Border style.

pub fn set_border_left(&mut self, width: Length, border: Border, color: Rgb<u8>)[src]

Border style.

pub fn set_border_right(
    &mut self,
    width: Length,
    border: Border,
    color: Rgb<u8>
)
[src]

Border style.

pub fn set_border_line_width(
    &mut self,
    inner: Length,
    spacing: Length,
    outer: Length
)
[src]

Widths for double borders.

pub fn set_border_line_width_bottom(
    &mut self,
    inner: Length,
    spacing: Length,
    outer: Length
)
[src]

Widths for double borders.

pub fn set_border_line_width_left(
    &mut self,
    inner: Length,
    spacing: Length,
    outer: Length
)
[src]

Widths for double borders.

pub fn set_border_line_width_right(
    &mut self,
    inner: Length,
    spacing: Length,
    outer: Length
)
[src]

Widths for double borders.

pub fn set_border_line_width_top(
    &mut self,
    inner: Length,
    spacing: Length,
    outer: Length
)
[src]

Widths for double borders.

pub fn set_margin(&mut self, margin: Length)[src]

Margin for all sides.

pub fn set_margin_bottom(&mut self, margin: Length)[src]

Margin

pub fn set_margin_left(&mut self, margin: Length)[src]

Margin

pub fn set_margin_right(&mut self, margin: Length)[src]

Margin

pub fn set_margin_top(&mut self, margin: Length)[src]

Margin

pub fn set_padding(&mut self, padding: Length)[src]

Padding for all sides.

pub fn set_padding_bottom(&mut self, padding: Length)[src]

Padding

pub fn set_padding_left(&mut self, padding: Length)[src]

Padding

pub fn set_padding_right(&mut self, padding: Length)[src]

Padding

pub fn set_padding_top(&mut self, padding: Length)[src]

Padding

pub fn set_dynamic_spacing(&mut self, dynamic: bool)[src]

Dynamic spacing

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

Shadow

pub fn set_height(&mut self, height: Length)[src]

Height.

Trait Implementations

impl Clone for PageStyle[src]

impl Debug for PageStyle[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.