Struct smithay_client_toolkit::reexports::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[src]
impl Transientimpl 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.
Trait Implementations
impl LowerHex for Transient
impl LowerHex for Transientimpl Sub<Transient> for Transient
impl Sub<Transient> 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 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 Debug for Transient
impl Debug for Transientfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. 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 SubAssign<Transient> for Transient
impl SubAssign<Transient> for Transientfn sub_assign(&mut self, other: Transient)
fn sub_assign(&mut self, other: Transient)Disables all flags enabled in the set.
impl BitAndAssign<Transient> for Transient
impl BitAndAssign<Transient> for Transientfn bitand_assign(&mut self, other: Transient)
fn bitand_assign(&mut self, other: Transient)Disables all flags disabled in the set.
impl BitXorAssign<Transient> for Transient
impl BitXorAssign<Transient> for Transientfn bitxor_assign(&mut self, other: Transient)
fn bitxor_assign(&mut self, other: Transient)Toggles the set of flags.
impl BitOrAssign<Transient> for Transient
impl BitOrAssign<Transient> for Transientfn bitor_assign(&mut self, other: Transient)
fn bitor_assign(&mut self, other: Transient)Adds the set of flags.
impl BitAnd<Transient> for Transient
impl BitAnd<Transient> 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 PartialOrd<Transient> for Transient
impl PartialOrd<Transient> 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 Extend<Transient> for Transient
impl Extend<Transient> for Transientfn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = Transient>,
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = Transient>, Extends a collection with the contents of an iterator. Read more
impl Hash for Transient
impl Hash for Transientfn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, 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 Binary for Transient
impl Binary for Transientimpl Octal for Transient
impl Octal for Transientimpl UpperHex for Transient
impl UpperHex for Transientimpl BitOr<Transient> for Transient
impl BitOr<Transient> 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 FromIterator<Transient> for Transient
impl FromIterator<Transient> for Transientfn from_iter<T>(iterator: T) -> Transient where
T: IntoIterator<Item = Transient>,
fn from_iter<T>(iterator: T) -> Transient where
T: IntoIterator<Item = Transient>, Creates a value from an iterator. Read more
impl BitXor<Transient> for Transient
impl BitXor<Transient> 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 Copy for Transient
impl Copy for Transientimpl Eq for Transient
impl Eq for Transientimpl PartialEq<Transient> for Transient
impl PartialEq<Transient> 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 Not for Transient
impl Not for Transient