Struct gdk::SeatCapabilities
source · [−]pub struct SeatCapabilities { /* private fields */ }Implementations
sourceimpl SeatCapabilities
impl SeatCapabilities
pub const NONE: SeatCapabilities = _
pub const POINTER: SeatCapabilities = _
pub const TOUCH: SeatCapabilities = _
pub const TABLET_STYLUS: SeatCapabilities = _
pub const KEYBOARD: SeatCapabilities = _
pub const ALL_POINTING: SeatCapabilities = _
pub const ALL: SeatCapabilities = _
sourcepub const fn empty() -> SeatCapabilities
pub const fn empty() -> SeatCapabilities
Returns an empty set of flags
sourcepub const fn all() -> SeatCapabilities
pub const fn all() -> SeatCapabilities
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<SeatCapabilities>
pub fn from_bits(bits: u32) -> Option<SeatCapabilities>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> SeatCapabilities
pub const fn from_bits_truncate(bits: u32) -> SeatCapabilities
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> SeatCapabilities
pub const unsafe fn from_bits_unchecked(bits: u32) -> SeatCapabilities
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: SeatCapabilities) -> bool
pub const fn intersects(&self, other: SeatCapabilities) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: SeatCapabilities) -> bool
pub const fn contains(&self, other: SeatCapabilities) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: SeatCapabilities)
pub fn insert(&mut self, other: SeatCapabilities)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: SeatCapabilities)
pub fn remove(&mut self, other: SeatCapabilities)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: SeatCapabilities)
pub fn toggle(&mut self, other: SeatCapabilities)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: SeatCapabilities, value: bool)
pub fn set(&mut self, other: SeatCapabilities, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for SeatCapabilities
impl Binary for SeatCapabilities
sourceimpl BitAnd<SeatCapabilities> for SeatCapabilities
impl BitAnd<SeatCapabilities> for SeatCapabilities
sourcefn bitand(self, other: SeatCapabilities) -> SeatCapabilities
fn bitand(self, other: SeatCapabilities) -> SeatCapabilities
Returns the intersection between the two sets of flags.
type Output = SeatCapabilities
type Output = SeatCapabilities
& operator.sourceimpl BitAndAssign<SeatCapabilities> for SeatCapabilities
impl BitAndAssign<SeatCapabilities> for SeatCapabilities
sourcefn bitand_assign(&mut self, other: SeatCapabilities)
fn bitand_assign(&mut self, other: SeatCapabilities)
Disables all flags disabled in the set.
sourceimpl BitOr<SeatCapabilities> for SeatCapabilities
impl BitOr<SeatCapabilities> for SeatCapabilities
sourcefn bitor(self, other: SeatCapabilities) -> SeatCapabilities
fn bitor(self, other: SeatCapabilities) -> SeatCapabilities
Returns the union of the two sets of flags.
type Output = SeatCapabilities
type Output = SeatCapabilities
| operator.sourceimpl BitOrAssign<SeatCapabilities> for SeatCapabilities
impl BitOrAssign<SeatCapabilities> for SeatCapabilities
sourcefn bitor_assign(&mut self, other: SeatCapabilities)
fn bitor_assign(&mut self, other: SeatCapabilities)
Adds the set of flags.
sourceimpl BitXor<SeatCapabilities> for SeatCapabilities
impl BitXor<SeatCapabilities> for SeatCapabilities
sourcefn bitxor(self, other: SeatCapabilities) -> SeatCapabilities
fn bitxor(self, other: SeatCapabilities) -> SeatCapabilities
Returns the left flags, but with all the right flags toggled.
type Output = SeatCapabilities
type Output = SeatCapabilities
^ operator.sourceimpl BitXorAssign<SeatCapabilities> for SeatCapabilities
impl BitXorAssign<SeatCapabilities> for SeatCapabilities
sourcefn bitxor_assign(&mut self, other: SeatCapabilities)
fn bitxor_assign(&mut self, other: SeatCapabilities)
Toggles the set of flags.
sourceimpl Clone for SeatCapabilities
impl Clone for SeatCapabilities
sourcefn clone(&self) -> SeatCapabilities
fn clone(&self) -> SeatCapabilities
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for SeatCapabilities
impl Debug for SeatCapabilities
sourceimpl Extend<SeatCapabilities> for SeatCapabilities
impl Extend<SeatCapabilities> for SeatCapabilities
sourcefn extend<T: IntoIterator<Item = SeatCapabilities>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = SeatCapabilities>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)sourceimpl FromIterator<SeatCapabilities> for SeatCapabilities
impl FromIterator<SeatCapabilities> for SeatCapabilities
sourcefn from_iter<T: IntoIterator<Item = SeatCapabilities>>(
iterator: T
) -> SeatCapabilities
fn from_iter<T: IntoIterator<Item = SeatCapabilities>>(
iterator: T
) -> SeatCapabilities
sourceimpl<'a> FromValue<'a> for SeatCapabilities
impl<'a> FromValue<'a> for SeatCapabilities
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for SeatCapabilities
impl<'a> FromValueOptional<'a> for SeatCapabilities
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for SeatCapabilities
impl Hash for SeatCapabilities
sourceimpl LowerHex for SeatCapabilities
impl LowerHex for SeatCapabilities
sourceimpl Not for SeatCapabilities
impl Not for SeatCapabilities
sourcefn not(self) -> SeatCapabilities
fn not(self) -> SeatCapabilities
Returns the complement of this set of flags.
type Output = SeatCapabilities
type Output = SeatCapabilities
! operator.sourceimpl Octal for SeatCapabilities
impl Octal for SeatCapabilities
sourceimpl Ord for SeatCapabilities
impl Ord for SeatCapabilities
sourcefn cmp(&self, other: &SeatCapabilities) -> Ordering
fn cmp(&self, other: &SeatCapabilities) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<SeatCapabilities> for SeatCapabilities
impl PartialEq<SeatCapabilities> for SeatCapabilities
sourcefn eq(&self, other: &SeatCapabilities) -> bool
fn eq(&self, other: &SeatCapabilities) -> bool
sourceimpl PartialOrd<SeatCapabilities> for SeatCapabilities
impl PartialOrd<SeatCapabilities> for SeatCapabilities
sourcefn partial_cmp(&self, other: &SeatCapabilities) -> Option<Ordering>
fn partial_cmp(&self, other: &SeatCapabilities) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for SeatCapabilities
impl StaticType for SeatCapabilities
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<SeatCapabilities> for SeatCapabilities
impl Sub<SeatCapabilities> for SeatCapabilities
sourcefn sub(self, other: SeatCapabilities) -> SeatCapabilities
fn sub(self, other: SeatCapabilities) -> SeatCapabilities
Returns the set difference of the two sets of flags.
type Output = SeatCapabilities
type Output = SeatCapabilities
- operator.sourceimpl SubAssign<SeatCapabilities> for SeatCapabilities
impl SubAssign<SeatCapabilities> for SeatCapabilities
sourcefn sub_assign(&mut self, other: SeatCapabilities)
fn sub_assign(&mut self, other: SeatCapabilities)
Disables all flags enabled in the set.
sourceimpl UpperHex for SeatCapabilities
impl UpperHex for SeatCapabilities
impl Copy for SeatCapabilities
impl Eq for SeatCapabilities
impl StructuralEq for SeatCapabilities
impl StructuralPartialEq for SeatCapabilities
Auto Trait Implementations
impl RefUnwindSafe for SeatCapabilities
impl Send for SeatCapabilities
impl Sync for SeatCapabilities
impl Unpin for SeatCapabilities
impl UnwindSafe for SeatCapabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.