#[repr(transparent)]pub struct SDL_ScaleMode(pub c_int);Expand description
The scaling mode.
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
INVALID | SDL_SCALEMODE_INVALID | |
NEAREST | SDL_SCALEMODE_NEAREST | nearest pixel sampling |
LINEAR | SDL_SCALEMODE_LINEAR | linear filtering |
PIXELART | SDL_SCALEMODE_PIXELART | nearest pixel sampling with improved scaling for pixel art, available since SDL 3.4.0 |
Tuple Fields§
§0: c_intImplementations§
Trait Implementations§
Source§impl Clone for SDL_ScaleMode
impl Clone for SDL_ScaleMode
Source§fn clone(&self) -> SDL_ScaleMode
fn clone(&self) -> SDL_ScaleMode
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_ScaleMode
Available on crate feature debug-impls only.
impl Debug for SDL_ScaleMode
Available on crate feature
debug-impls only.Source§impl Default for SDL_ScaleMode
impl Default for SDL_ScaleMode
Source§fn default() -> SDL_ScaleMode
fn default() -> SDL_ScaleMode
Returns the “default value” for a type. Read more
Source§impl From<SDL_ScaleMode> for c_int
impl From<SDL_ScaleMode> for c_int
Source§fn from(value: SDL_ScaleMode) -> Self
fn from(value: SDL_ScaleMode) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_ScaleMode
Available on crate feature metadata only.
impl GroupMetadata for SDL_ScaleMode
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_ScaleMode
impl Hash for SDL_ScaleMode
Source§impl Ord for SDL_ScaleMode
impl Ord for SDL_ScaleMode
Source§fn cmp(&self, other: &SDL_ScaleMode) -> Ordering
fn cmp(&self, other: &SDL_ScaleMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_ScaleMode> for c_int
impl PartialEq<SDL_ScaleMode> for c_int
Source§impl PartialEq<i32> for SDL_ScaleMode
impl PartialEq<i32> for SDL_ScaleMode
Source§impl PartialEq for SDL_ScaleMode
impl PartialEq for SDL_ScaleMode
Source§impl PartialOrd for SDL_ScaleMode
impl PartialOrd for SDL_ScaleMode
impl Copy for SDL_ScaleMode
impl Eq for SDL_ScaleMode
impl StructuralPartialEq for SDL_ScaleMode
Auto Trait Implementations§
impl Freeze for SDL_ScaleMode
impl RefUnwindSafe for SDL_ScaleMode
impl Send for SDL_ScaleMode
impl Sync for SDL_ScaleMode
impl Unpin for SDL_ScaleMode
impl UnwindSafe for SDL_ScaleMode
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