Struct wayland_client::protocol::wl_shell_surface::Transient [−]
pub struct Transient { /* fields omitted */ }details of transient behaviour
These flags specify details of the expected behaviour of transient surfaces. Used in the set_transient request.
Methods
impl Transient
impl Transientpub const Inactive: Transient
Inactive: Transient = Transient{bits: 1,}
do not set keyboard focus
pub fn empty() -> Transient
pub fn empty() -> TransientReturns an empty set of flags.
pub fn all() -> Transient
pub fn all() -> TransientReturns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<Transient>
pub fn from_bits(bits: u32) -> Option<Transient>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> Transient
pub fn from_bits_truncate(bits: u32) -> TransientConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: Transient) -> bool
pub fn intersects(&self, other: Transient) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: Transient) -> bool
pub fn contains(&self, other: Transient) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: Transient)
pub fn insert(&mut self, other: Transient)Inserts the specified flags in-place.
pub fn remove(&mut self, other: Transient)
pub fn remove(&mut self, other: Transient)Removes the specified flags in-place.
pub fn toggle(&mut self, other: Transient)
pub fn toggle(&mut self, other: Transient)Toggles the specified flags in-place.
pub fn set(&mut self, other: Transient, value: bool)
pub fn set(&mut self, other: Transient, value: bool)Inserts or removes the specified flags depending on the passed value.
impl Transient[src]
impl TransientTrait Implementations
impl Copy for Transient
impl Copy for Transientimpl PartialEq for Transient
impl PartialEq for Transientfn eq(&self, other: &Transient) -> bool
fn eq(&self, other: &Transient) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Transient) -> bool
fn ne(&self, other: &Transient) -> boolThis method tests for !=.
impl Eq for Transient
impl Eq for Transientimpl Clone for Transient
impl Clone for Transientfn clone(&self) -> Transient
fn clone(&self) -> TransientReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for Transient
impl PartialOrd for Transientfn partial_cmp(&self, other: &Transient) -> Option<Ordering>
fn partial_cmp(&self, other: &Transient) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Transient) -> bool
fn lt(&self, other: &Transient) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Transient) -> bool
fn le(&self, other: &Transient) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Transient) -> bool
fn gt(&self, other: &Transient) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Transient) -> bool
fn ge(&self, other: &Transient) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Transient
impl Ord for Transientfn cmp(&self, other: &Transient) -> Ordering
fn cmp(&self, other: &Transient) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Transient
impl Hash for Transientfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Transient
impl Debug for Transientimpl Binary for Transient
impl Binary for Transientimpl Octal for Transient
impl Octal for Transientimpl LowerHex for Transient
impl LowerHex for Transientimpl UpperHex for Transient
impl UpperHex for Transientimpl BitOr for Transient
impl BitOr for Transienttype Output = Transient
The resulting type after applying the | operator.
fn bitor(self, other: Transient) -> Transient
fn bitor(self, other: Transient) -> TransientReturns the union of the two sets of flags.
impl BitOrAssign for Transient
impl BitOrAssign for Transientfn bitor_assign(&mut self, other: Transient)
fn bitor_assign(&mut self, other: Transient)Adds the set of flags.
impl BitXor for Transient
impl BitXor for Transienttype Output = Transient
The resulting type after applying the ^ operator.
fn bitxor(self, other: Transient) -> Transient
fn bitxor(self, other: Transient) -> TransientReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for Transient
impl BitXorAssign for Transientfn bitxor_assign(&mut self, other: Transient)
fn bitxor_assign(&mut self, other: Transient)Toggles the set of flags.
impl BitAnd for Transient
impl BitAnd for Transienttype Output = Transient
The resulting type after applying the & operator.
fn bitand(self, other: Transient) -> Transient
fn bitand(self, other: Transient) -> TransientReturns the intersection between the two sets of flags.
impl BitAndAssign for Transient
impl BitAndAssign for Transientfn bitand_assign(&mut self, other: Transient)
fn bitand_assign(&mut self, other: Transient)Disables all flags disabled in the set.
impl Sub for Transient
impl Sub for Transienttype Output = Transient
The resulting type after applying the - operator.
fn sub(self, other: Transient) -> Transient
fn sub(self, other: Transient) -> TransientReturns the set difference of the two sets of flags.
impl SubAssign for Transient
impl SubAssign for Transientfn sub_assign(&mut self, other: Transient)
fn sub_assign(&mut self, other: Transient)Disables all flags enabled in the set.
impl Not for Transient
impl Not for Transienttype Output = Transient
The resulting type after applying the ! operator.
fn not(self) -> Transient
fn not(self) -> TransientReturns the complement of this set of flags.
impl Extend<Transient> for Transient
impl Extend<Transient> for Transientfn extend<T: IntoIterator<Item = Transient>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Transient>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<Transient> for Transient
impl FromIterator<Transient> for Transientfn from_iter<T: IntoIterator<Item = Transient>>(iterator: T) -> Transient
fn from_iter<T: IntoIterator<Item = Transient>>(iterator: T) -> TransientCreates a value from an iterator. Read more