Enum wayland_protocols::unstable::fullscreen_shell::v1::server::zwp_fullscreen_shell_v1::PresentMethod [] [src]

#[repr(u32)]
pub enum PresentMethod { Default, Center, Zoom, ZoomCrop, Stretch, }

different method to set the surface fullscreen

Hints to indicate to the compositor how to deal with a conflict between the dimensions of the surface and the dimensions of the output. The compositor is free to ignore this parameter.

Variants

no preference, apply default policy

center the surface on the output

scale the surface, preserving aspect ratio, to the largest size that will fit on the output

scale the surface, preserving aspect ratio, to fully fill the output cropping if needed

scale the surface to the size of the output ignoring aspect ratio

Methods

impl PresentMethod
[src]

[src]

[src]

Trait Implementations

impl Copy for PresentMethod
[src]

impl Clone for PresentMethod
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PresentMethod
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for PresentMethod
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

Auto Trait Implementations

impl Send for PresentMethod

impl Sync for PresentMethod