Struct rute::auto::style::PixelMetric
source · pub struct PixelMetric { /* private fields */ }
Implementations
sourceimpl PixelMetric
impl PixelMetric
pub const PmButtonMargin: Self = _
pub const PmButtonDefaultIndicator: Self = _
pub const PmMenuButtonIndicator: Self = _
pub const PmButtonShiftHorizontal: Self = _
pub const PmButtonShiftVertical: Self = _
pub const PmDefaultFrameWidth: Self = _
pub const PmSpinBoxFrameWidth: Self = _
pub const PmComboBoxFrameWidth: Self = _
pub const PmMaximumDragDistance: Self = _
pub const PmScrollBarExtent: Self = _
pub const PmScrollBarSliderMin: Self = _
pub const PmSliderThickness: Self = _
pub const PmSliderControlThickness: Self = _
pub const PmSliderLength: Self = _
pub const PmSliderTickmarkOffset: Self = _
pub const PmSliderSpaceAvailable: Self = _
pub const PmDockWidgetSeparatorExtent: Self = _
pub const PmDockWidgetHandleExtent: Self = _
pub const PmDockWidgetFrameWidth: Self = _
pub const PmTabBarTabOverlap: Self = _
pub const PmTabBarTabHSpace: Self = _
pub const PmTabBarTabVSpace: Self = _
pub const PmTabBarBaseHeight: Self = _
pub const PmTabBarBaseOverlap: Self = _
pub const PmProgressBarChunkWidth: Self = _
pub const PmSplitterWidth: Self = _
pub const PmTitleBarHeight: Self = _
pub const PmMenuScrollerHeight: Self = _
pub const PmMenuHMargin: Self = _
pub const PmMenuVMargin: Self = _
pub const PmMenuPanelWidth: Self = _
pub const PmMenuTearoffHeight: Self = _
pub const PmMenuDesktopFrameWidth: Self = _
pub const PmMenuBarPanelWidth: Self = _
pub const PmMenuBarItemSpacing: Self = _
pub const PmMenuBarVMargin: Self = _
pub const PmMenuBarHMargin: Self = _
pub const PmIndicatorWidth: Self = _
pub const PmIndicatorHeight: Self = _
pub const PmExclusiveIndicatorWidth: Self = _
pub const PmExclusiveIndicatorHeight: Self = _
pub const PmDialogButtonsSeparator: Self = _
pub const PmDialogButtonsButtonWidth: Self = _
pub const PmDialogButtonsButtonHeight: Self = _
pub const PmMdiSubWindowFrameWidth: Self = _
pub const PmMdiFrameWidth: Self = _
pub const PmMdiSubWindowMinimizedWidth: Self = _
pub const PmMdiMinimizedWidth: Self = _
pub const PmHeaderMargin: Self = _
pub const PmHeaderMarkSize: Self = _
pub const PmHeaderGripMargin: Self = _
pub const PmTabBarTabShiftHorizontal: Self = _
pub const PmTabBarTabShiftVertical: Self = _
pub const PmTabBarScrollButtonWidth: Self = _
pub const PmToolBarFrameWidth: Self = _
pub const PmToolBarHandleExtent: Self = _
pub const PmToolBarItemSpacing: Self = _
pub const PmToolBarItemMargin: Self = _
pub const PmToolBarSeparatorExtent: Self = _
pub const PmToolBarExtensionExtent: Self = _
pub const PmSpinBoxSliderHeight: Self = _
pub const PmDefaultTopLevelMargin: Self = _
pub const PmDefaultChildMargin: Self = _
pub const PmDefaultLayoutSpacing: Self = _
pub const PmToolBarIconSize: Self = _
pub const PmListViewIconSize: Self = _
pub const PmIconViewIconSize: Self = _
pub const PmSmallIconSize: Self = _
pub const PmLargeIconSize: Self = _
pub const PmFocusFrameVMargin: Self = _
pub const PmFocusFrameHMargin: Self = _
pub const PmToolTipLabelFrameWidth: Self = _
pub const PmCheckBoxLabelSpacing: Self = _
pub const PmTabBarIconSize: Self = _
pub const PmSizeGripSize: Self = _
pub const PmDockWidgetTitleMargin: Self = _
pub const PmMessageBoxIconSize: Self = _
pub const PmButtonIconSize: Self = _
pub const PmDockWidgetTitleBarButtonMargin: Self = _
pub const PmRadioButtonLabelSpacing: Self = _
pub const PmLayoutLeftMargin: Self = _
pub const PmLayoutTopMargin: Self = _
pub const PmLayoutRightMargin: Self = _
pub const PmLayoutBottomMargin: Self = _
pub const PmLayoutHorizontalSpacing: Self = _
pub const PmLayoutVerticalSpacing: Self = _
pub const PmTabBarScrollButtonOverlap: Self = _
pub const PmTextCursorWidth: Self = _
pub const PmTabCloseIndicatorWidth: Self = _
pub const PmTabCloseIndicatorHeight: Self = _
pub const PmScrollViewScrollBarSpacing: Self = _
pub const PmScrollViewScrollBarOverlap: Self = _
pub const PmSubMenuOverlap: Self = _
pub const PmTreeViewIndentation: Self = _
pub const PmHeaderDefaultSectionSizeHorizontal: Self = _
pub const PmHeaderDefaultSectionSizeVertical: Self = _
pub const PmTitleBarButtonIconSize: Self = _
pub const PmTitleBarButtonSize: Self = _
pub const PmCustomBase: 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 PixelMetric
impl Binary for PixelMetric
sourceimpl BitAnd<PixelMetric> for PixelMetric
impl BitAnd<PixelMetric> for PixelMetric
type Output = PixelMetric
type Output = PixelMetric
&
operator.sourceimpl BitAndAssign<PixelMetric> for PixelMetric
impl BitAndAssign<PixelMetric> for PixelMetric
sourcefn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Disables all flags disabled in the set.
sourceimpl BitOr<PixelMetric> for PixelMetric
impl BitOr<PixelMetric> for PixelMetric
sourcefn bitor(self, other: PixelMetric) -> Self
fn bitor(self, other: PixelMetric) -> Self
Returns the union of the two sets of flags.
type Output = PixelMetric
type Output = PixelMetric
|
operator.sourceimpl BitOrAssign<PixelMetric> for PixelMetric
impl BitOrAssign<PixelMetric> for PixelMetric
sourcefn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Adds the set of flags.
sourceimpl BitXor<PixelMetric> for PixelMetric
impl BitXor<PixelMetric> for PixelMetric
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 = PixelMetric
type Output = PixelMetric
^
operator.sourceimpl BitXorAssign<PixelMetric> for PixelMetric
impl BitXorAssign<PixelMetric> for PixelMetric
sourcefn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Toggles the set of flags.
sourceimpl Clone for PixelMetric
impl Clone for PixelMetric
sourcefn clone(&self) -> PixelMetric
fn clone(&self) -> PixelMetric
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for PixelMetric
impl Debug for PixelMetric
sourceimpl Extend<PixelMetric> for PixelMetric
impl Extend<PixelMetric> for PixelMetric
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<PixelMetric> for PixelMetric
impl FromIterator<PixelMetric> for PixelMetric
sourcefn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
sourceimpl Hash for PixelMetric
impl Hash for PixelMetric
sourceimpl LowerHex for PixelMetric
impl LowerHex for PixelMetric
sourceimpl Not for PixelMetric
impl Not for PixelMetric
type Output = PixelMetric
type Output = PixelMetric
!
operator.sourceimpl Octal for PixelMetric
impl Octal for PixelMetric
sourceimpl Ord for PixelMetric
impl Ord for PixelMetric
sourcefn cmp(&self, other: &PixelMetric) -> Ordering
fn cmp(&self, other: &PixelMetric) -> 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<PixelMetric> for PixelMetric
impl PartialEq<PixelMetric> for PixelMetric
sourcefn eq(&self, other: &PixelMetric) -> bool
fn eq(&self, other: &PixelMetric) -> bool
sourceimpl PartialOrd<PixelMetric> for PixelMetric
impl PartialOrd<PixelMetric> for PixelMetric
sourcefn partial_cmp(&self, other: &PixelMetric) -> Option<Ordering>
fn partial_cmp(&self, other: &PixelMetric) -> 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<PixelMetric> for PixelMetric
impl Sub<PixelMetric> for PixelMetric
type Output = PixelMetric
type Output = PixelMetric
-
operator.sourceimpl SubAssign<PixelMetric> for PixelMetric
impl SubAssign<PixelMetric> for PixelMetric
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Disables all flags enabled in the set.