#[repr(transparent)]pub struct SDL_RendererLogicalPresentation(pub c_uint);Expand description
How the logical size is mapped to the output.
Available Since: This enum is available since SDL 3.2.0.
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_RendererLogicalPresentation
impl SDL_RendererLogicalPresentation
Sourcepub const SDL_LOGICAL_PRESENTATION_DISABLED: SDL_RendererLogicalPresentation
pub const SDL_LOGICAL_PRESENTATION_DISABLED: SDL_RendererLogicalPresentation
< There is no logical size in effect
Sourcepub const SDL_LOGICAL_PRESENTATION_STRETCH: SDL_RendererLogicalPresentation
pub const SDL_LOGICAL_PRESENTATION_STRETCH: SDL_RendererLogicalPresentation
< The rendered content is stretched to the output resolution
Sourcepub const SDL_LOGICAL_PRESENTATION_LETTERBOX: SDL_RendererLogicalPresentation
pub const SDL_LOGICAL_PRESENTATION_LETTERBOX: SDL_RendererLogicalPresentation
< The rendered content is fit to the largest dimension and the other dimension is letterboxed with the clear color
Sourcepub const SDL_LOGICAL_PRESENTATION_OVERSCAN: SDL_RendererLogicalPresentation
pub const SDL_LOGICAL_PRESENTATION_OVERSCAN: SDL_RendererLogicalPresentation
< The rendered content is fit to the smallest dimension and the other dimension extends beyond the output bounds
Sourcepub const SDL_LOGICAL_PRESENTATION_INTEGER_SCALE: SDL_RendererLogicalPresentation
pub const SDL_LOGICAL_PRESENTATION_INTEGER_SCALE: SDL_RendererLogicalPresentation
< 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 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 ==.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 UnsafeUnpin 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