Struct gtk::CellRendererState
source · [−]pub struct CellRendererState { /* private fields */ }Implementations
sourceimpl CellRendererState
impl CellRendererState
pub const SELECTED: CellRendererState = _
pub const PRELIT: CellRendererState = _
pub const INSENSITIVE: CellRendererState = _
pub const SORTED: CellRendererState = _
pub const FOCUSED: CellRendererState = _
pub const EXPANDABLE: CellRendererState = _
pub const EXPANDED: CellRendererState = _
sourcepub const fn empty() -> CellRendererState
pub const fn empty() -> CellRendererState
Returns an empty set of flags
sourcepub const fn all() -> CellRendererState
pub const fn all() -> CellRendererState
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<CellRendererState>
pub fn from_bits(bits: u32) -> Option<CellRendererState>
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) -> CellRendererState
pub const fn from_bits_truncate(bits: u32) -> CellRendererState
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> CellRendererState
pub const unsafe fn from_bits_unchecked(bits: u32) -> CellRendererState
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: CellRendererState) -> bool
pub const fn intersects(&self, other: CellRendererState) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: CellRendererState) -> bool
pub const fn contains(&self, other: CellRendererState) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: CellRendererState)
pub fn insert(&mut self, other: CellRendererState)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: CellRendererState)
pub fn remove(&mut self, other: CellRendererState)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: CellRendererState)
pub fn toggle(&mut self, other: CellRendererState)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: CellRendererState, value: bool)
pub fn set(&mut self, other: CellRendererState, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for CellRendererState
impl Binary for CellRendererState
sourceimpl BitAnd<CellRendererState> for CellRendererState
impl BitAnd<CellRendererState> for CellRendererState
sourcefn bitand(self, other: CellRendererState) -> CellRendererState
fn bitand(self, other: CellRendererState) -> CellRendererState
Returns the intersection between the two sets of flags.
type Output = CellRendererState
type Output = CellRendererState
& operator.sourceimpl BitAndAssign<CellRendererState> for CellRendererState
impl BitAndAssign<CellRendererState> for CellRendererState
sourcefn bitand_assign(&mut self, other: CellRendererState)
fn bitand_assign(&mut self, other: CellRendererState)
Disables all flags disabled in the set.
sourceimpl BitOr<CellRendererState> for CellRendererState
impl BitOr<CellRendererState> for CellRendererState
sourcefn bitor(self, other: CellRendererState) -> CellRendererState
fn bitor(self, other: CellRendererState) -> CellRendererState
Returns the union of the two sets of flags.
type Output = CellRendererState
type Output = CellRendererState
| operator.sourceimpl BitOrAssign<CellRendererState> for CellRendererState
impl BitOrAssign<CellRendererState> for CellRendererState
sourcefn bitor_assign(&mut self, other: CellRendererState)
fn bitor_assign(&mut self, other: CellRendererState)
Adds the set of flags.
sourceimpl BitXor<CellRendererState> for CellRendererState
impl BitXor<CellRendererState> for CellRendererState
sourcefn bitxor(self, other: CellRendererState) -> CellRendererState
fn bitxor(self, other: CellRendererState) -> CellRendererState
Returns the left flags, but with all the right flags toggled.
type Output = CellRendererState
type Output = CellRendererState
^ operator.sourceimpl BitXorAssign<CellRendererState> for CellRendererState
impl BitXorAssign<CellRendererState> for CellRendererState
sourcefn bitxor_assign(&mut self, other: CellRendererState)
fn bitxor_assign(&mut self, other: CellRendererState)
Toggles the set of flags.
sourceimpl Clone for CellRendererState
impl Clone for CellRendererState
sourcefn clone(&self) -> CellRendererState
fn clone(&self) -> CellRendererState
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for CellRendererState
impl Debug for CellRendererState
sourceimpl Extend<CellRendererState> for CellRendererState
impl Extend<CellRendererState> for CellRendererState
sourcefn extend<T: IntoIterator<Item = CellRendererState>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = CellRendererState>>(&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<CellRendererState> for CellRendererState
impl FromIterator<CellRendererState> for CellRendererState
sourcefn from_iter<T: IntoIterator<Item = CellRendererState>>(
iterator: T
) -> CellRendererState
fn from_iter<T: IntoIterator<Item = CellRendererState>>(
iterator: T
) -> CellRendererState
sourceimpl<'a> FromValue<'a> for CellRendererState
impl<'a> FromValue<'a> for CellRendererState
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for CellRendererState
impl<'a> FromValueOptional<'a> for CellRendererState
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for CellRendererState
impl Hash for CellRendererState
sourceimpl LowerHex for CellRendererState
impl LowerHex for CellRendererState
sourceimpl Not for CellRendererState
impl Not for CellRendererState
sourcefn not(self) -> CellRendererState
fn not(self) -> CellRendererState
Returns the complement of this set of flags.
type Output = CellRendererState
type Output = CellRendererState
! operator.sourceimpl Octal for CellRendererState
impl Octal for CellRendererState
sourceimpl Ord for CellRendererState
impl Ord for CellRendererState
sourcefn cmp(&self, other: &CellRendererState) -> Ordering
fn cmp(&self, other: &CellRendererState) -> 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<CellRendererState> for CellRendererState
impl PartialEq<CellRendererState> for CellRendererState
sourcefn eq(&self, other: &CellRendererState) -> bool
fn eq(&self, other: &CellRendererState) -> bool
sourceimpl PartialOrd<CellRendererState> for CellRendererState
impl PartialOrd<CellRendererState> for CellRendererState
sourcefn partial_cmp(&self, other: &CellRendererState) -> Option<Ordering>
fn partial_cmp(&self, other: &CellRendererState) -> 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 CellRendererState
impl StaticType for CellRendererState
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<CellRendererState> for CellRendererState
impl Sub<CellRendererState> for CellRendererState
sourcefn sub(self, other: CellRendererState) -> CellRendererState
fn sub(self, other: CellRendererState) -> CellRendererState
Returns the set difference of the two sets of flags.
type Output = CellRendererState
type Output = CellRendererState
- operator.sourceimpl SubAssign<CellRendererState> for CellRendererState
impl SubAssign<CellRendererState> for CellRendererState
sourcefn sub_assign(&mut self, other: CellRendererState)
fn sub_assign(&mut self, other: CellRendererState)
Disables all flags enabled in the set.
sourceimpl UpperHex for CellRendererState
impl UpperHex for CellRendererState
impl Copy for CellRendererState
impl Eq for CellRendererState
impl StructuralEq for CellRendererState
impl StructuralPartialEq for CellRendererState
Auto Trait Implementations
impl RefUnwindSafe for CellRendererState
impl Send for CellRendererState
impl Sync for CellRendererState
impl Unpin for CellRendererState
impl UnwindSafe for CellRendererState
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.