Struct css_style::background::Background [−][src]
use css_style::{css, 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 left_top(self) -> Self[src]
pub fn center_top(self) -> Self[src]
pub fn right_top(self) -> Self[src]
pub fn left_center(self) -> Self[src]
pub fn center(self) -> Self[src]
pub fn right_center(self) -> Self[src]
pub fn left_bottom(self) -> Self[src]
pub fn center_bottom(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]
fn clone(&self) -> Background[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Background[src]
impl Default for Background[src]
fn default() -> Background[src]
impl<T: Into<Color>> From<T> for Background[src]
impl PartialEq<Background> for Background[src]
fn eq(&self, other: &Background) -> bool[src]
fn ne(&self, other: &Background) -> bool[src]
impl StructuralPartialEq for Background[src]
impl StyleUpdater for Background[src]
fn update_style(self, style: Style) -> Style[src]
Auto Trait Implementations
impl RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl UnwindSafe for Background
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]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>, [src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>, [src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U[src]
pub fn convert_unclamped_into(self) -> U[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,