Struct nanovg_sys::NVGimageFlags [−]
pub struct NVGimageFlags { /* fields omitted */ }
Methods
impl NVGimageFlags
impl NVGimageFlags
pub const NVG_IMAGE_GENERATE_MIPMAPS: NVGimageFlags
NVG_IMAGE_GENERATE_MIPMAPS: NVGimageFlags = NVGimageFlags{bits: 1 << 0,}
pub const NVG_IMAGE_REPEATX: NVGimageFlags
NVG_IMAGE_REPEATX: NVGimageFlags = NVGimageFlags{bits: 1 << 1,}
pub const NVG_IMAGE_REPEATY: NVGimageFlags
NVG_IMAGE_REPEATY: NVGimageFlags = NVGimageFlags{bits: 1 << 2,}
pub const NVG_IMAGE_FLIPY: NVGimageFlags
NVG_IMAGE_FLIPY: NVGimageFlags = NVGimageFlags{bits: 1 << 3,}
pub const NVG_IMAGE_PREMULTIPLIED: NVGimageFlags
NVG_IMAGE_PREMULTIPLIED: NVGimageFlags = NVGimageFlags{bits: 1 << 4,}
pub const NVG_IMAGE_NEAREST: NVGimageFlags
NVG_IMAGE_NEAREST: NVGimageFlags = NVGimageFlags{bits: 1 << 5,}
pub fn empty() -> NVGimageFlags
pub fn empty() -> NVGimageFlags
Returns an empty set of flags.
pub fn all() -> NVGimageFlags
pub fn all() -> NVGimageFlags
Returns the set containing all flags.
pub fn bits(&self) -> c_int
pub fn bits(&self) -> c_int
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: c_int) -> Option<NVGimageFlags>
pub fn from_bits(bits: c_int) -> Option<NVGimageFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_int) -> NVGimageFlags
pub fn from_bits_truncate(bits: c_int) -> NVGimageFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: NVGimageFlags) -> bool
pub fn intersects(&self, other: NVGimageFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: NVGimageFlags) -> bool
pub fn contains(&self, other: NVGimageFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: NVGimageFlags)
pub fn insert(&mut self, other: NVGimageFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: NVGimageFlags)
pub fn remove(&mut self, other: NVGimageFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: NVGimageFlags)
pub fn toggle(&mut self, other: NVGimageFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: NVGimageFlags, value: bool)
pub fn set(&mut self, other: NVGimageFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for NVGimageFlags
impl Copy for NVGimageFlags
impl PartialEq for NVGimageFlags
impl PartialEq for NVGimageFlags
fn eq(&self, other: &NVGimageFlags) -> bool
fn eq(&self, other: &NVGimageFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NVGimageFlags) -> bool
fn ne(&self, other: &NVGimageFlags) -> bool
This method tests for !=
.
impl Eq for NVGimageFlags
impl Eq for NVGimageFlags
impl Clone for NVGimageFlags
impl Clone for NVGimageFlags
fn clone(&self) -> NVGimageFlags
fn clone(&self) -> NVGimageFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for NVGimageFlags
impl PartialOrd for NVGimageFlags
fn partial_cmp(&self, other: &NVGimageFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &NVGimageFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &NVGimageFlags) -> bool
fn lt(&self, other: &NVGimageFlags) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &NVGimageFlags) -> bool
fn le(&self, other: &NVGimageFlags) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &NVGimageFlags) -> bool
fn gt(&self, other: &NVGimageFlags) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &NVGimageFlags) -> bool
fn ge(&self, other: &NVGimageFlags) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for NVGimageFlags
impl Ord for NVGimageFlags
fn cmp(&self, other: &NVGimageFlags) -> Ordering
fn cmp(&self, other: &NVGimageFlags) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for NVGimageFlags
impl Hash for NVGimageFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for NVGimageFlags
impl Debug for NVGimageFlags
impl Binary for NVGimageFlags
impl Binary for NVGimageFlags
impl Octal for NVGimageFlags
impl Octal for NVGimageFlags
impl LowerHex for NVGimageFlags
impl LowerHex for NVGimageFlags
impl UpperHex for NVGimageFlags
impl UpperHex for NVGimageFlags
impl BitOr for NVGimageFlags
impl BitOr for NVGimageFlags
type Output = NVGimageFlags
The resulting type after applying the |
operator.
fn bitor(self, other: NVGimageFlags) -> NVGimageFlags
fn bitor(self, other: NVGimageFlags) -> NVGimageFlags
Returns the union of the two sets of flags.
impl BitOrAssign for NVGimageFlags
impl BitOrAssign for NVGimageFlags
fn bitor_assign(&mut self, other: NVGimageFlags)
fn bitor_assign(&mut self, other: NVGimageFlags)
Adds the set of flags.
impl BitXor for NVGimageFlags
impl BitXor for NVGimageFlags
type Output = NVGimageFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: NVGimageFlags) -> NVGimageFlags
fn bitxor(self, other: NVGimageFlags) -> NVGimageFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for NVGimageFlags
impl BitXorAssign for NVGimageFlags
fn bitxor_assign(&mut self, other: NVGimageFlags)
fn bitxor_assign(&mut self, other: NVGimageFlags)
Toggles the set of flags.
impl BitAnd for NVGimageFlags
impl BitAnd for NVGimageFlags
type Output = NVGimageFlags
The resulting type after applying the &
operator.
fn bitand(self, other: NVGimageFlags) -> NVGimageFlags
fn bitand(self, other: NVGimageFlags) -> NVGimageFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign for NVGimageFlags
impl BitAndAssign for NVGimageFlags
fn bitand_assign(&mut self, other: NVGimageFlags)
fn bitand_assign(&mut self, other: NVGimageFlags)
Disables all flags disabled in the set.
impl Sub for NVGimageFlags
impl Sub for NVGimageFlags
type Output = NVGimageFlags
The resulting type after applying the -
operator.
fn sub(self, other: NVGimageFlags) -> NVGimageFlags
fn sub(self, other: NVGimageFlags) -> NVGimageFlags
Returns the set difference of the two sets of flags.
impl SubAssign for NVGimageFlags
impl SubAssign for NVGimageFlags
fn sub_assign(&mut self, other: NVGimageFlags)
fn sub_assign(&mut self, other: NVGimageFlags)
Disables all flags enabled in the set.
impl Not for NVGimageFlags
impl Not for NVGimageFlags
type Output = NVGimageFlags
The resulting type after applying the !
operator.
fn not(self) -> NVGimageFlags
fn not(self) -> NVGimageFlags
Returns the complement of this set of flags.
impl Extend<NVGimageFlags> for NVGimageFlags
impl Extend<NVGimageFlags> for NVGimageFlags
fn extend<T: IntoIterator<Item = NVGimageFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = NVGimageFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<NVGimageFlags> for NVGimageFlags
impl FromIterator<NVGimageFlags> for NVGimageFlags
fn from_iter<T: IntoIterator<Item = NVGimageFlags>>(
iterator: T
) -> NVGimageFlags
fn from_iter<T: IntoIterator<Item = NVGimageFlags>>(
iterator: T
) -> NVGimageFlags
Creates a value from an iterator. Read more
Auto Trait Implementations
impl Send for NVGimageFlags
impl Send for NVGimageFlags
impl Sync for NVGimageFlags
impl Sync for NVGimageFlags