#[repr(transparent)]pub struct SDL_SurfaceFlags(pub Uint32);Expand description
The flags on an SDL_Surface.
These are generally considered read-only.
§Availability
This datatype is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
PREALLOCATED | SDL_SURFACE_PREALLOCATED | Surface uses preallocated pixel memory |
LOCK_NEEDED | SDL_SURFACE_LOCK_NEEDED | Surface needs to be locked to access pixels |
LOCKED | SDL_SURFACE_LOCKED | Surface is currently locked |
SIMD_ALIGNED | SDL_SURFACE_SIMD_ALIGNED | Surface uses pixel memory allocated with SDL_aligned_alloc() |
Tuple Fields§
§0: Uint32Implementations§
Source§impl SDL_SurfaceFlags
impl SDL_SurfaceFlags
Sourcepub const PREALLOCATED: Self
pub const PREALLOCATED: Self
Surface uses preallocated pixel memory
Sourcepub const LOCK_NEEDED: Self
pub const LOCK_NEEDED: Self
Surface needs to be locked to access pixels
Sourcepub const SIMD_ALIGNED: Self
pub const SIMD_ALIGNED: Self
Surface uses pixel memory allocated with SDL_aligned_alloc()
Trait Implementations§
Source§impl BitAnd for SDL_SurfaceFlags
impl BitAnd for SDL_SurfaceFlags
Source§impl BitAndAssign for SDL_SurfaceFlags
impl BitAndAssign for SDL_SurfaceFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for SDL_SurfaceFlags
impl BitOr for SDL_SurfaceFlags
Source§impl BitOrAssign for SDL_SurfaceFlags
impl BitOrAssign for SDL_SurfaceFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for SDL_SurfaceFlags
impl BitXor for SDL_SurfaceFlags
Source§impl BitXorAssign for SDL_SurfaceFlags
impl BitXorAssign for SDL_SurfaceFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for SDL_SurfaceFlags
impl Clone for SDL_SurfaceFlags
Source§fn clone(&self) -> SDL_SurfaceFlags
fn clone(&self) -> SDL_SurfaceFlags
Returns a duplicate 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 SDL_SurfaceFlags
Available on crate feature debug-impls only.
impl Debug for SDL_SurfaceFlags
Available on crate feature
debug-impls only.Source§impl Default for SDL_SurfaceFlags
impl Default for SDL_SurfaceFlags
Source§fn default() -> SDL_SurfaceFlags
fn default() -> SDL_SurfaceFlags
Returns the “default value” for a type. Read more
Source§impl From<SDL_SurfaceFlags> for Uint32
impl From<SDL_SurfaceFlags> for Uint32
Source§fn from(value: SDL_SurfaceFlags) -> Self
fn from(value: SDL_SurfaceFlags) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_SurfaceFlags
Available on crate feature metadata only.
impl GroupMetadata for SDL_SurfaceFlags
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_SurfaceFlags
impl Hash for SDL_SurfaceFlags
Source§impl Not for SDL_SurfaceFlags
impl Not for SDL_SurfaceFlags
Source§impl PartialEq<SDL_SurfaceFlags> for Uint32
impl PartialEq<SDL_SurfaceFlags> for Uint32
Source§impl PartialEq<u32> for SDL_SurfaceFlags
impl PartialEq<u32> for SDL_SurfaceFlags
Source§impl PartialEq for SDL_SurfaceFlags
impl PartialEq for SDL_SurfaceFlags
impl Copy for SDL_SurfaceFlags
impl Eq for SDL_SurfaceFlags
impl StructuralPartialEq for SDL_SurfaceFlags
Auto Trait Implementations§
impl Freeze for SDL_SurfaceFlags
impl RefUnwindSafe for SDL_SurfaceFlags
impl Send for SDL_SurfaceFlags
impl Sync for SDL_SurfaceFlags
impl Unpin for SDL_SurfaceFlags
impl UnwindSafe for SDL_SurfaceFlags
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