Struct style::properties::style_structs::Background [] [src]

pub struct Background {
    pub background_color: T,
    pub background_image: T,
    pub background_position_x: T,
    pub background_position_y: T,
    pub background_repeat: T,
    pub background_attachment: T,
    pub background_clip: T,
    pub background_origin: T,
    pub background_size: T,
}

The Background style struct.

Fields

The background-color computed value.

The background-image computed value.

The background-position-x computed value.

The background-position-y computed value.

The background-repeat computed value.

The background-attachment computed value.

The background-clip computed value.

The background-origin computed value.

The background-size computed value.

Methods

impl Background
[src]

[src]

Set background-color.

[src]

Set background-color from other struct.

[src]

Reset background-color from the initial struct.

[src]

Get the computed value for background-color.

[src]

Set background-image.

[src]

Set background-image from other struct.

[src]

Reset background-image from the initial struct.

[src]

Get the computed value for background-image.

[src]

Set background-position-x.

[src]

Set background-position-x from other struct.

[src]

Reset background-position-x from the initial struct.

[src]

Get the computed value for background-position-x.

[src]

Set background-position-y.

[src]

Set background-position-y from other struct.

[src]

Reset background-position-y from the initial struct.

[src]

Get the computed value for background-position-y.

[src]

Set background-repeat.

[src]

Set background-repeat from other struct.

[src]

Reset background-repeat from the initial struct.

[src]

Get the computed value for background-repeat.

[src]

Set background-attachment.

[src]

Set background-attachment from other struct.

[src]

Reset background-attachment from the initial struct.

[src]

Get the computed value for background-attachment.

[src]

Set background-clip.

[src]

Set background-clip from other struct.

[src]

Reset background-clip from the initial struct.

[src]

Get the computed value for background-clip.

[src]

Set background-origin.

[src]

Set background-origin from other struct.

[src]

Reset background-origin from the initial struct.

[src]

Get the computed value for background-origin.

[src]

Set background-size.

[src]

Set background-size from other struct.

[src]

Reset background-size from the initial struct.

[src]

Get the computed value for background-size.

Trait Implementations

impl Clone for Background
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Background
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for Background
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl PartialEq for Background
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.