Struct css_style::background::Background[][src]

pub struct Background {
    pub color: Option<Color>,
    pub image: Option<Image>,
    pub repeat: Option<Repeat>,
    pub attachment: Option<Attachment>,
    pub position: Option<Position>,
    pub clip: Option<Clip>,
    pub origin: Option<Origin>,
    pub size: Option<Size>,
}
use css_style::{Style, Color, unit::em};

Style::default()
    .and_background(|conf| {
        conf.image("/bg/fullpage.png")
            .color(Color::White)
            .scroll()
    });

Fields

color: Option<Color>image: Option<Image>repeat: Option<Repeat>attachment: Option<Attachment>position: Option<Position>clip: Option<Clip>origin: Option<Origin>size: Option<Size>

Implementations

impl Background[src]

pub fn color(self, value: impl Into<Color>) -> Self[src]

pub fn image(self, value: impl Into<Image>) -> Self[src]

pub fn empty(self) -> Self[src]

pub fn repeat_x(self) -> Self[src]

pub fn repeat_y(self) -> Self[src]

pub fn repeat(self) -> Self[src]

pub fn repeat_with_space(self) -> Self[src]

pub fn repeat_round(self) -> Self[src]

pub fn no_repeat(self) -> Self[src]

pub fn initial_repeat(self) -> Self[src]

pub fn inherit_repeat(self) -> Self[src]

pub fn attachment(self, value: impl Into<Attachment>) -> Self[src]

pub fn scroll(self) -> Self[src]

pub fn fixed(self) -> Self[src]

pub fn local(self) -> Self[src]

pub fn initial_attachment(self) -> Self[src]

pub fn inherit_attachment(self) -> Self[src]

pub fn position(self, value: impl Into<Position>) -> Self[src]

pub fn center_top(self) -> Self[src]

pub fn center(self) -> Self[src]

pub fn center_bottom(self) -> Self[src]

pub fn left_top(self) -> Self[src]

pub fn left_center(self) -> Self[src]

pub fn left_bottom(self) -> Self[src]

pub fn right_top(self) -> Self[src]

pub fn right_center(self) -> Self[src]

pub fn right_bottom(self) -> Self[src]

pub fn clip(self, value: impl Into<Clip>) -> Self[src]

pub fn fill_under_border(self) -> Self[src]

pub fn fill_inside_border(self) -> Self[src]

pub fn fill_under_content(self) -> Self[src]

pub fn origin(self, value: impl Into<Origin>) -> Self[src]

pub fn image_fill_under_border(self) -> Self[src]

pub fn image_inside_border(self) -> Self[src]

pub fn image_under_content(self) -> Self[src]

pub fn size(self, value: impl Into<Size>) -> Self[src]

pub fn full(self) -> Self[src]

pub fn half(self) -> Self[src]

pub fn quarter(self) -> Self[src]

pub fn auto_size(self) -> Self[src]

pub fn cover(self) -> Self[src]

pub fn contain(self) -> Self[src]

Trait Implementations

impl Clone for Background[src]

impl Debug for Background[src]

impl Default for Background[src]

impl<T: Into<Color>> From<T> for Background[src]

impl PartialEq<Background> for Background[src]

impl StructuralPartialEq for Background[src]

impl StyleUpdater for Background[src]

Auto Trait Implementations

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

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, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[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.