Struct rute::auto::rute_enums::WidgetAttribute
source · pub struct WidgetAttribute { /* private fields */ }
Implementations
sourceimpl WidgetAttribute
impl WidgetAttribute
pub const WaDisabled: Self = _
pub const WaUnderMouse: Self = _
pub const WaMouseTracking: Self = _
pub const WaContentsPropagated: Self = _
pub const WaOpaquePaintEvent: Self = _
pub const WaNoBackground: Self = _
pub const WaStaticContents: Self = _
pub const WaLaidOut: Self = _
pub const WaPaintOnScreen: Self = _
pub const WaNoSystemBackground: Self = _
pub const WaUpdatesDisabled: Self = _
pub const WaMapped: Self = _
pub const WaMacNoClickThrough: Self = _
pub const WaInputMethodEnabled: Self = _
pub const WaWStateVisible: Self = _
pub const WaWStateHidden: Self = _
pub const WaForceDisabled: Self = _
pub const WaKeyCompression: Self = _
pub const WaPendingMoveEvent: Self = _
pub const WaPendingResizeEvent: Self = _
pub const WaSetPalette: Self = _
pub const WaSetFont: Self = _
pub const WaSetCursor: Self = _
pub const WaNoChildEventsFromChildren: Self = _
pub const WaWindowModified: Self = _
pub const WaResized: Self = _
pub const WaMoved: Self = _
pub const WaPendingUpdate: Self = _
pub const WaInvalidSize: Self = _
pub const WaMacBrushedMetal: Self = _
pub const WaMacMetalStyle: Self = _
pub const WaCustomWhatsThis: Self = _
pub const WaLayoutOnEntireRect: Self = _
pub const WaOutsideWsRange: Self = _
pub const WaGrabbedShortcut: Self = _
pub const WaTransparentForMouseEvents: Self = _
pub const WaPaintUnclipped: Self = _
pub const WaSetWindowIcon: Self = _
pub const WaNoMouseReplay: Self = _
pub const WaDeleteOnClose: Self = _
pub const WaRightToLeft: Self = _
pub const WaSetLayoutDirection: Self = _
pub const WaNoChildEventsForParent: Self = _
pub const WaForceUpdatesDisabled: Self = _
pub const WaWStateCreated: Self = _
pub const WaWStateCompressKeys: Self = _
pub const WaWStateInPaintEvent: Self = _
pub const WaWStateReparented: Self = _
pub const WaWStateConfigPending: Self = _
pub const WaWStatePolished: Self = _
pub const WaWStateDnd: Self = _
pub const WaWStateOwnSizePolicy: Self = _
pub const WaWStateExplicitShowHide: Self = _
pub const WaShowModal: Self = _
pub const WaMouseNoMask: Self = _
pub const WaGroupLeader: Self = _
pub const WaNoMousePropagation: Self = _
pub const WaHover: Self = _
pub const WaInputMethodTransparent: Self = _
pub const WaQuitOnClose: Self = _
pub const WaKeyboardFocusChange: Self = _
pub const WaAcceptDrops: Self = _
pub const WaDropSiteRegistered: Self = _
pub const WaForceAcceptDrops: Self = _
pub const WaWindowPropagation: Self = _
pub const WaNoX11EventCompression: Self = _
pub const WaTintedBackground: Self = _
pub const WaX11OpenGlOverlay: Self = _
pub const WaAlwaysShowToolTips: Self = _
pub const WaMacOpaqueSizeGrip: Self = _
pub const WaSetStyle: Self = _
pub const WaSetLocale: Self = _
pub const WaMacShowFocusRect: Self = _
pub const WaMacNormalSize: Self = _
pub const WaMacSmallSize: Self = _
pub const WaMacMiniSize: Self = _
pub const WaLayoutUsesWidgetRect: Self = _
pub const WaStyledBackground: Self = _
pub const WaMsWindowsUseDirect3D: Self = _
pub const WaCanHostQMdiSubWindowTitleBar: Self = _
pub const WaMacAlwaysShowToolWindow: Self = _
pub const WaStyleSheet: Self = _
pub const WaShowWithoutActivating: Self = _
pub const WaX11BypassTransientForHint: Self = _
pub const WaNativeWindow: Self = _
pub const WaDontCreateNativeAncestors: Self = _
pub const WaMacVariableSize: Self = _
pub const WaDontShowOnScreen: Self = _
pub const WaX11NetWmWindowTypeDesktop: Self = _
pub const WaX11NetWmWindowTypeDock: Self = _
pub const WaX11NetWmWindowTypeToolBar: Self = _
pub const WaX11NetWmWindowTypeMenu: Self = _
pub const WaX11NetWmWindowTypeUtility: Self = _
pub const WaX11NetWmWindowTypeSplash: Self = _
pub const WaX11NetWmWindowTypeDialog: Self = _
pub const WaX11NetWmWindowTypeDropDownMenu: Self = _
pub const WaX11NetWmWindowTypePopupMenu: Self = _
pub const WaX11NetWmWindowTypeToolTip: Self = _
pub const WaX11NetWmWindowTypeNotification: Self = _
pub const WaX11NetWmWindowTypeCombo: Self = _
pub const WaX11NetWmWindowTypeDnd: Self = _
pub const WaMacFrameworkScaled: Self = _
pub const WaSetWindowModality: Self = _
pub const WaWStateWindowOpacitySet: Self = _
pub const WaTranslucentBackground: Self = _
pub const WaAcceptTouchEvents: Self = _
pub const WaWStateAcceptedTouchBeginEvent: Self = _
pub const WaTouchPadAcceptSingleTouchEvents: Self = _
pub const WaX11DoNotAcceptFocus: Self = _
pub const WaMacNoShadow: Self = _
pub const WaAlwaysStackOnTop: Self = _
pub const WaTabletTracking: Self = _
pub const WaContentsMarginsRespectsSafeArea: Self = _
pub const WaAttributeCount: Self = _
sourcepub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits(bits: u32) -> Option<Self>
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) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> Self
pub const unsafe fn from_bits_unchecked(bits: u32) -> Self
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Safety
The caller of the bitflags!
macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked()
has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection between the flags in self
and
other
.
Specifically, the returned set contains only the flags which are
present in both self
and other
.
This is equivalent to using the &
operator (e.g.
ops::BitAnd
), as in flags & other
.
sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
Returns the union of between the flags in self
and other
.
Specifically, the returned set contains all flags which are
present in either self
or other
, including any which are
present in both (see Self::symmetric_difference
if that
is undesirable).
This is equivalent to using the |
operator (e.g.
ops::BitOr
), as in flags | other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference between the flags in self
and other
.
Specifically, the returned set contains all flags present in
self
, except for the ones present in other
.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other
(and this syntax is also supported).
This is equivalent to using the -
operator (e.g.
ops::Sub
), as in flags - other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference between the flags
in self
and other
.
Specifically, the returned set contains the flags present which
are present in self
or other
, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self
and other
.
This is equivalent to using the ^
operator (e.g.
ops::BitXor
), as in flags ^ other
.
sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self
, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all()
and self
(e.g. Self::all() - self
)
This is equivalent to using the !
operator (e.g.
ops::Not
), as in !flags
.
Trait Implementations
sourceimpl Binary for WidgetAttribute
impl Binary for WidgetAttribute
sourceimpl BitAnd<WidgetAttribute> for WidgetAttribute
impl BitAnd<WidgetAttribute> for WidgetAttribute
type Output = WidgetAttribute
type Output = WidgetAttribute
&
operator.sourceimpl BitAndAssign<WidgetAttribute> for WidgetAttribute
impl BitAndAssign<WidgetAttribute> for WidgetAttribute
sourcefn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Disables all flags disabled in the set.
sourceimpl BitOr<WidgetAttribute> for WidgetAttribute
impl BitOr<WidgetAttribute> for WidgetAttribute
sourcefn bitor(self, other: WidgetAttribute) -> Self
fn bitor(self, other: WidgetAttribute) -> Self
Returns the union of the two sets of flags.
type Output = WidgetAttribute
type Output = WidgetAttribute
|
operator.sourceimpl BitOrAssign<WidgetAttribute> for WidgetAttribute
impl BitOrAssign<WidgetAttribute> for WidgetAttribute
sourcefn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Adds the set of flags.
sourceimpl BitXor<WidgetAttribute> for WidgetAttribute
impl BitXor<WidgetAttribute> for WidgetAttribute
sourcefn bitxor(self, other: Self) -> Self
fn bitxor(self, other: Self) -> Self
Returns the left flags, but with all the right flags toggled.
type Output = WidgetAttribute
type Output = WidgetAttribute
^
operator.sourceimpl BitXorAssign<WidgetAttribute> for WidgetAttribute
impl BitXorAssign<WidgetAttribute> for WidgetAttribute
sourcefn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Toggles the set of flags.
sourceimpl Clone for WidgetAttribute
impl Clone for WidgetAttribute
sourcefn clone(&self) -> WidgetAttribute
fn clone(&self) -> WidgetAttribute
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for WidgetAttribute
impl Debug for WidgetAttribute
sourceimpl Extend<WidgetAttribute> for WidgetAttribute
impl Extend<WidgetAttribute> for WidgetAttribute
sourcefn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&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<WidgetAttribute> for WidgetAttribute
impl FromIterator<WidgetAttribute> for WidgetAttribute
sourcefn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
sourceimpl Hash for WidgetAttribute
impl Hash for WidgetAttribute
sourceimpl LowerHex for WidgetAttribute
impl LowerHex for WidgetAttribute
sourceimpl Not for WidgetAttribute
impl Not for WidgetAttribute
type Output = WidgetAttribute
type Output = WidgetAttribute
!
operator.sourceimpl Octal for WidgetAttribute
impl Octal for WidgetAttribute
sourceimpl Ord for WidgetAttribute
impl Ord for WidgetAttribute
sourcefn cmp(&self, other: &WidgetAttribute) -> Ordering
fn cmp(&self, other: &WidgetAttribute) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
sourceimpl PartialEq<WidgetAttribute> for WidgetAttribute
impl PartialEq<WidgetAttribute> for WidgetAttribute
sourcefn eq(&self, other: &WidgetAttribute) -> bool
fn eq(&self, other: &WidgetAttribute) -> bool
sourceimpl PartialOrd<WidgetAttribute> for WidgetAttribute
impl PartialOrd<WidgetAttribute> for WidgetAttribute
sourcefn partial_cmp(&self, other: &WidgetAttribute) -> Option<Ordering>
fn partial_cmp(&self, other: &WidgetAttribute) -> 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 Sub<WidgetAttribute> for WidgetAttribute
impl Sub<WidgetAttribute> for WidgetAttribute
type Output = WidgetAttribute
type Output = WidgetAttribute
-
operator.sourceimpl SubAssign<WidgetAttribute> for WidgetAttribute
impl SubAssign<WidgetAttribute> for WidgetAttribute
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Disables all flags enabled in the set.