Struct fltk::enums::Damage [−][src]
pub struct Damage { /* fields omitted */ }
Damage masks
Implementations
impl Damage
[src]
impl Damage
[src]pub const None: Damage
[src]
No damage
pub const Child: Damage
[src]
A child needs to be redrawn.
pub const Expose: Damage
[src]
The window was exposed.
pub const Scroll: Damage
[src]
The Fl_Scroll widget was scrolled.
pub const Overlay: Damage
[src]
The overlay planes need to be redrawn.
pub const User1: Damage
[src]
First user-defined damage bit.
pub const User2: Damage
[src]
Second user-defined damage bit.
pub const All: Damage
[src]
Everything needs to be redrawn.
pub const fn empty() -> Damage
[src]
Returns an empty set of flags
pub const fn all() -> Damage
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u8
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u8) -> Option<Damage>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u8) -> Damage
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u8) -> Damage
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: Damage) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: Damage) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: Damage)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: Damage)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: Damage)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: Damage, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAndAssign<Damage> for Damage
[src]
impl BitAndAssign<Damage> for Damage
[src]fn bitand_assign(&mut self, other: Damage)
[src]
Disables all flags disabled in the set.
impl BitOrAssign<Damage> for Damage
[src]
impl BitOrAssign<Damage> for Damage
[src]fn bitor_assign(&mut self, other: Damage)
[src]
Adds the set of flags.
impl BitXorAssign<Damage> for Damage
[src]
impl BitXorAssign<Damage> for Damage
[src]fn bitxor_assign(&mut self, other: Damage)
[src]
Toggles the set of flags.
impl Extend<Damage> for Damage
[src]
impl Extend<Damage> for Damage
[src]fn extend<T: IntoIterator<Item = Damage>>(&mut self, iterator: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<Damage> for Damage
[src]
impl FromIterator<Damage> for Damage
[src]fn from_iter<T: IntoIterator<Item = Damage>>(iterator: T) -> Damage
[src]
impl PartialOrd<Damage> for Damage
[src]
impl PartialOrd<Damage> for Damage
[src]impl StructuralEq for Damage
[src]
impl StructuralEq for Damage
[src]impl StructuralPartialEq for Damage
[src]
impl StructuralPartialEq for Damage
[src]Auto Trait Implementations
impl RefUnwindSafe for Damage
impl RefUnwindSafe for Damage
impl UnwindSafe for Damage
impl UnwindSafe for Damage