#[repr(transparent)]pub struct SDL_RendererLogicalPresentation(pub c_int);Expand description
How the logical size is mapped to the output.
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
DISABLED | SDL_LOGICAL_PRESENTATION_DISABLED | There is no logical size in effect |
STRETCH | SDL_LOGICAL_PRESENTATION_STRETCH | The rendered content is stretched to the output resolution |
LETTERBOX | SDL_LOGICAL_PRESENTATION_LETTERBOX | The rendered content is fit to the largest dimension and the other dimension is letterboxed with the clear color |
OVERSCAN | SDL_LOGICAL_PRESENTATION_OVERSCAN | The rendered content is fit to the smallest dimension and the other dimension extends beyond the output bounds |
INTEGER_SCALE | SDL_LOGICAL_PRESENTATION_INTEGER_SCALE | The rendered content is scaled up by integer multiples to fit the output resolution |
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_RendererLogicalPresentation
impl SDL_RendererLogicalPresentation
Sourcepub const LETTERBOX: Self
pub const LETTERBOX: Self
The rendered content is fit to the largest dimension and the other dimension is letterboxed with the clear color
Sourcepub const OVERSCAN: Self
pub const OVERSCAN: Self
The rendered content is fit to the smallest dimension and the other dimension extends beyond the output bounds
Sourcepub const INTEGER_SCALE: Self
pub const INTEGER_SCALE: Self
The rendered content is scaled up by integer multiples to fit the output resolution
Trait Implementations§
Source§impl Clone for SDL_RendererLogicalPresentation
impl Clone for SDL_RendererLogicalPresentation
Source§fn clone(&self) -> SDL_RendererLogicalPresentation
fn clone(&self) -> SDL_RendererLogicalPresentation
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_RendererLogicalPresentation
Available on crate feature debug-impls only.
impl Debug for SDL_RendererLogicalPresentation
Available on crate feature
debug-impls only.Source§impl Default for SDL_RendererLogicalPresentation
impl Default for SDL_RendererLogicalPresentation
Source§fn default() -> SDL_RendererLogicalPresentation
fn default() -> SDL_RendererLogicalPresentation
Returns the “default value” for a type. Read more
Source§impl From<SDL_RendererLogicalPresentation> for c_int
impl From<SDL_RendererLogicalPresentation> for c_int
Source§fn from(value: SDL_RendererLogicalPresentation) -> Self
fn from(value: SDL_RendererLogicalPresentation) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_RendererLogicalPresentation
Available on crate feature metadata only.
impl GroupMetadata for SDL_RendererLogicalPresentation
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Ord for SDL_RendererLogicalPresentation
impl Ord for SDL_RendererLogicalPresentation
Source§fn cmp(&self, other: &SDL_RendererLogicalPresentation) -> Ordering
fn cmp(&self, other: &SDL_RendererLogicalPresentation) -> 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_RendererLogicalPresentation> for c_int
impl PartialEq<SDL_RendererLogicalPresentation> for c_int
Source§fn eq(&self, other: &SDL_RendererLogicalPresentation) -> bool
fn eq(&self, other: &SDL_RendererLogicalPresentation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq for SDL_RendererLogicalPresentation
impl PartialEq for SDL_RendererLogicalPresentation
Source§fn eq(&self, other: &SDL_RendererLogicalPresentation) -> bool
fn eq(&self, other: &SDL_RendererLogicalPresentation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SDL_RendererLogicalPresentation
impl PartialOrd for SDL_RendererLogicalPresentation
impl Copy for SDL_RendererLogicalPresentation
impl Eq for SDL_RendererLogicalPresentation
impl StructuralPartialEq for SDL_RendererLogicalPresentation
Auto Trait Implementations§
impl Freeze for SDL_RendererLogicalPresentation
impl RefUnwindSafe for SDL_RendererLogicalPresentation
impl Send for SDL_RendererLogicalPresentation
impl Sync for SDL_RendererLogicalPresentation
impl Unpin for SDL_RendererLogicalPresentation
impl UnwindSafe for SDL_RendererLogicalPresentation
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