Struct wayland_client::protocol::wl_shell_surface::Resize [−][src]
pub struct Resize { /* fields omitted */ }
edge values for resizing
These values are used to indicate which edge of a surface is being dragged in a resize operation. The server may use this information to adapt its behavior, e.g. choose an appropriate cursor image.
Implementations
impl Resize
[src][−]
pub const None: Resize
[src][−][−]
no edge
pub const Top: Resize
[src][−][−]
top edge
pub const Bottom: Resize
[src][−][−]
bottom edge
pub const Left: Resize
[src][−][−]
left edge
pub const TopLeft: Resize
[src][−][−]
top and left edges
pub const BottomLeft: Resize
[src][−][−]
bottom and left edges
pub const Right: Resize
[src][−][−]
right edge
pub const TopRight: Resize
[src][−][−]
top and right edges
pub const BottomRight: Resize
[src][−][−]
bottom and right edges
pub const fn empty() -> Resize
[src][−]
Returns an empty set of flags
pub const fn all() -> Resize
[src][−]
Returns the set containing all flags.
pub const fn bits(&self) -> u32
[src][−]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<Resize>
[src][−]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> Resize
[src][−]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> Resize
[src][−]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src][−]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src][−]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: Resize) -> bool
[src][−]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: Resize) -> bool
[src][−]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: Resize)
[src][−]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: Resize)
[src][−]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: Resize)
[src][−]
Toggles the specified flags in-place.
pub fn set(&mut self, other: Resize, value: bool)
[src][−]
Inserts or removes the specified flags depending on the passed value.
impl Resize
[src][−]
Trait Implementations
impl Binary for Resize
[src][+]
impl BitAnd<Resize> for Resize
[src][+]
impl BitAndAssign<Resize> for Resize
[src][+]
impl BitOr<Resize> for Resize
[src][+]
impl BitOrAssign<Resize> for Resize
[src][+]
impl BitXor<Resize> for Resize
[src][+]
impl BitXorAssign<Resize> for Resize
[src][+]
impl Clone for Resize
[src][+]
impl Copy for Resize
[src]
impl Debug for Resize
[src][+]
impl Eq for Resize
[src]
impl Extend<Resize> for Resize
[src][+]
impl FromIterator<Resize> for Resize
[src][+]
impl Hash for Resize
[src][+]
impl LowerHex for Resize
[src][+]
impl Not for Resize
[src][+]
impl Octal for Resize
[src][+]
impl Ord for Resize
[src][+]
impl PartialEq<Resize> for Resize
[src][+]
impl PartialOrd<Resize> for Resize
[src][+]
impl StructuralEq for Resize
[src]
impl StructuralPartialEq for Resize
[src]
impl Sub<Resize> for Resize
[src][+]
impl SubAssign<Resize> for Resize
[src][+]
impl UpperHex for Resize
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for Resize
impl Send for Resize
impl Sync for Resize
impl Unpin for Resize
impl UnwindSafe for Resize
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,