#[repr(u32)]pub enum NvgImageFlag {
GenerateMipmaps = 1,
RepeatX = 2,
RepeatY = 4,
FlipY = 8,
Premultiplied = 16,
Nearest = 32,
}Variants§
GenerateMipmaps = 1
Generate mipmaps during creation of the image.
RepeatX = 2
Repeat image in X direction.
RepeatY = 4
Repeat image in Y direction.
FlipY = 8
Flips (inverses) image in Y direction when rendered.
Premultiplied = 16
Image data has premultiplied alpha.
Nearest = 32
Image interpolation is Nearest instead Linear
Trait Implementations§
Source§impl BitAnd for NvgImageFlag
impl BitAnd for NvgImageFlag
Source§impl BitFlag for NvgImageFlag
impl BitFlag for NvgImageFlag
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for NvgImageFlag
impl BitOr for NvgImageFlag
Source§impl BitXor for NvgImageFlag
impl BitXor for NvgImageFlag
Source§impl Clone for NvgImageFlag
impl Clone for NvgImageFlag
Source§fn clone(&self) -> NvgImageFlag
fn clone(&self) -> NvgImageFlag
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NvgImageFlag
impl Debug for NvgImageFlag
Source§impl Not for NvgImageFlag
impl Not for NvgImageFlag
Source§impl PartialEq for NvgImageFlag
impl PartialEq for NvgImageFlag
Source§impl RawBitFlags for NvgImageFlag
impl RawBitFlags for NvgImageFlag
Source§const EMPTY: Self::Numeric = {transmute(0x00000000): <dora::NvgImageFlag as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <dora::NvgImageFlag as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
Source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <dora::NvgImageFlag as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <dora::NvgImageFlag as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
Source§const ALL_BITS: Self::Numeric = {transmute(0x0000003f): <dora::NvgImageFlag as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x0000003f): <dora::NvgImageFlag as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
Source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<NvgImageFlag>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<NvgImageFlag>"
The name of the type for debug formatting purposes. Read more
impl Copy for NvgImageFlag
impl StructuralPartialEq for NvgImageFlag
Auto Trait Implementations§
impl Freeze for NvgImageFlag
impl RefUnwindSafe for NvgImageFlag
impl Send for NvgImageFlag
impl Sync for NvgImageFlag
impl Unpin for NvgImageFlag
impl UnwindSafe for NvgImageFlag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more