pub struct ResizeEdge { /* private fields */ }Expand description
Which edge is being used to resize a window.
Implementations§
Source§impl ResizeEdge
impl ResizeEdge
Sourcepub fn empty() -> ResizeEdge
pub fn empty() -> ResizeEdge
Returns an empty set of flags.
Sourcepub fn all() -> ResizeEdge
pub fn all() -> ResizeEdge
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<ResizeEdge>
pub fn from_bits(bits: u32) -> Option<ResizeEdge>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> ResizeEdge
pub fn from_bits_truncate(bits: u32) -> ResizeEdge
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: ResizeEdge) -> bool
pub fn intersects(&self, other: ResizeEdge) -> bool
Returns true if there are flags common to both self and other.
Sourcepub fn contains(&self, other: ResizeEdge) -> bool
pub fn contains(&self, other: ResizeEdge) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: ResizeEdge)
pub fn insert(&mut self, other: ResizeEdge)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: ResizeEdge)
pub fn remove(&mut self, other: ResizeEdge)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: ResizeEdge)
pub fn toggle(&mut self, other: ResizeEdge)
Toggles the specified flags in-place.
Trait Implementations§
Source§impl BitAnd for ResizeEdge
impl BitAnd for ResizeEdge
Source§fn bitand(self, other: ResizeEdge) -> ResizeEdge
fn bitand(self, other: ResizeEdge) -> ResizeEdge
Returns the intersection between the two sets of flags.
Source§type Output = ResizeEdge
type Output = ResizeEdge
& operator.Source§impl BitAndAssign for ResizeEdge
impl BitAndAssign for ResizeEdge
Source§fn bitand_assign(&mut self, other: ResizeEdge)
fn bitand_assign(&mut self, other: ResizeEdge)
Disables all flags disabled in the set.
Source§impl BitOr for ResizeEdge
impl BitOr for ResizeEdge
Source§fn bitor(self, other: ResizeEdge) -> ResizeEdge
fn bitor(self, other: ResizeEdge) -> ResizeEdge
Returns the union of the two sets of flags.
Source§type Output = ResizeEdge
type Output = ResizeEdge
| operator.Source§impl BitOrAssign for ResizeEdge
impl BitOrAssign for ResizeEdge
Source§fn bitor_assign(&mut self, other: ResizeEdge)
fn bitor_assign(&mut self, other: ResizeEdge)
Adds the set of flags.
Source§impl BitXor for ResizeEdge
impl BitXor for ResizeEdge
Source§fn bitxor(self, other: ResizeEdge) -> ResizeEdge
fn bitxor(self, other: ResizeEdge) -> ResizeEdge
Returns the left flags, but with all the right flags toggled.
Source§type Output = ResizeEdge
type Output = ResizeEdge
^ operator.Source§impl BitXorAssign for ResizeEdge
impl BitXorAssign for ResizeEdge
Source§fn bitxor_assign(&mut self, other: ResizeEdge)
fn bitxor_assign(&mut self, other: ResizeEdge)
Toggles the set of flags.
Source§impl Clone for ResizeEdge
impl Clone for ResizeEdge
Source§fn clone(&self) -> ResizeEdge
fn clone(&self) -> ResizeEdge
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResizeEdge
impl Debug for ResizeEdge
Source§impl FromIterator<ResizeEdge> for ResizeEdge
impl FromIterator<ResizeEdge> for ResizeEdge
Source§fn from_iter<T: IntoIterator<Item = ResizeEdge>>(iterator: T) -> ResizeEdge
fn from_iter<T: IntoIterator<Item = ResizeEdge>>(iterator: T) -> ResizeEdge
Source§impl Hash for ResizeEdge
impl Hash for ResizeEdge
Source§impl Not for ResizeEdge
impl Not for ResizeEdge
Source§fn not(self) -> ResizeEdge
fn not(self) -> ResizeEdge
Returns the complement of this set of flags.
Source§type Output = ResizeEdge
type Output = ResizeEdge
! operator.Source§impl Ord for ResizeEdge
impl Ord for ResizeEdge
Source§fn cmp(&self, other: &ResizeEdge) -> Ordering
fn cmp(&self, other: &ResizeEdge) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ResizeEdge
impl PartialEq for ResizeEdge
Source§impl PartialOrd for ResizeEdge
impl PartialOrd for ResizeEdge
Source§impl Sub for ResizeEdge
impl Sub for ResizeEdge
Source§fn sub(self, other: ResizeEdge) -> ResizeEdge
fn sub(self, other: ResizeEdge) -> ResizeEdge
Returns the set difference of the two sets of flags.
Source§type Output = ResizeEdge
type Output = ResizeEdge
- operator.Source§impl SubAssign for ResizeEdge
impl SubAssign for ResizeEdge
Source§fn sub_assign(&mut self, other: ResizeEdge)
fn sub_assign(&mut self, other: ResizeEdge)
Disables all flags enabled in the set.