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
Defaultno preference, apply default policy
Centercenter the surface on the output
Zoomscale the surface, preserving aspect ratio, to the largest size that will fit on the output
ZoomCropscale the surface, preserving aspect ratio, to fully fill the output cropping if needed
Stretchscale the surface to the size of the output ignoring aspect ratio
Methods
impl PresentMethod[src]
Trait Implementations
impl Copy for PresentMethod[src]
impl Clone for PresentMethod[src]
fn clone(&self) -> PresentMethod[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for PresentMethod[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more