Struct style_traits::viewport::ViewportConstraints [] [src]

pub struct ViewportConstraints {
    pub size: TypedSize2D<f32, CSSPixel>,
    pub initial_zoom: PinchZoomFactor,
    pub min_zoom: Option<PinchZoomFactor>,
    pub max_zoom: Option<PinchZoomFactor>,
    pub user_zoom: UserZoom,
    pub orientation: Orientation,
}

A set of viewport descriptors:

https://drafts.csswg.org/css-device-adapt/#viewport-desc

Fields

Width and height: * https://drafts.csswg.org/css-device-adapt/#width-desc * https://drafts.csswg.org/css-device-adapt/#height-desc

https://drafts.csswg.org/css-device-adapt/#zoom-desc

https://drafts.csswg.org/css-device-adapt/#min-max-width-desc

https://drafts.csswg.org/css-device-adapt/#min-max-width-desc

https://drafts.csswg.org/css-device-adapt/#user-zoom-desc

https://drafts.csswg.org/css-device-adapt/#orientation-desc

Trait Implementations

impl Clone for ViewportConstraints
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ViewportConstraints
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ViewportConstraints
[src]

[src]

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

[src]

This method tests for !=.

impl MallocSizeOf for ViewportConstraints
[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 ToCss for ViewportConstraints
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more