pub struct PresentMethod(pub u32);Expand description
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.
Tuple Fields§
§0: u32Implementations§
Source§impl PresentMethod
impl PresentMethod
Source§impl PresentMethod
impl PresentMethod
Sourcepub fn available_since(self) -> Option<u32>
pub fn available_since(self) -> Option<u32>
First protocol version enum variant is avilable in
None for unrecognized value.
Trait Implementations§
Source§impl Clone for PresentMethod
impl Clone for PresentMethod
impl Copy for PresentMethod
Source§impl Debug for PresentMethod
impl Debug for PresentMethod
impl Eq for PresentMethod
Source§impl From<PresentMethod> for u32
impl From<PresentMethod> for u32
Source§fn from(val: PresentMethod) -> u32
fn from(val: PresentMethod) -> u32
Converts to this type from the input type.
Source§impl Hash for PresentMethod
impl Hash for PresentMethod
Source§impl Ord for PresentMethod
impl Ord for PresentMethod
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PresentMethod
impl PartialEq for PresentMethod
Source§impl PartialOrd for PresentMethod
impl PartialOrd for PresentMethod
impl StructuralPartialEq for PresentMethod
Auto Trait Implementations§
impl Freeze for PresentMethod
impl RefUnwindSafe for PresentMethod
impl Send for PresentMethod
impl Sync for PresentMethod
impl Unpin for PresentMethod
impl UnsafeUnpin for PresentMethod
impl UnwindSafe for PresentMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more