Struct sdl2::render::RendererFlags[src]
pub struct RendererFlags { // some fields omitted }
Methods
impl RendererFlags
fn empty() -> RendererFlags
Returns an empty set of flags.
fn all() -> RendererFlags
Returns the set containing all flags.
fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
unsafe fn from_bits(bits: u32) -> RendererFlags
Convert from underlying bit representation. Unsafe because the bits are not guaranteed to represent valid flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: RendererFlags) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: RendererFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: RendererFlags)
Inserts the specified flags in-place.
fn remove(&mut self, other: RendererFlags)
Removes the specified flags in-place.
Trait Implementations
impl BitOr<RendererFlags, RendererFlags> for RendererFlags
fn bitor(&self, other: &RendererFlags) -> RendererFlags
Returns the union of the two sets of flags.
impl BitAnd<RendererFlags, RendererFlags> for RendererFlags
fn bitand(&self, other: &RendererFlags) -> RendererFlags
Returns the intersection between the two sets of flags.
impl Sub<RendererFlags, RendererFlags> for RendererFlags
fn sub(&self, other: &RendererFlags) -> RendererFlags
Returns the set difference of the two sets of flags.
impl Not<RendererFlags> for RendererFlags
fn not(&self) -> RendererFlags
Returns the complement of this set of flags.