Struct rust_libretro_sys::retro_game_geometry
source · [−]#[repr(C)]pub struct retro_game_geometry {
pub base_width: c_uint,
pub base_height: c_uint,
pub max_width: c_uint,
pub max_height: c_uint,
pub aspect_ratio: f32,
}Fields
base_width: c_uintNominal video width of game.
base_height: c_uintNominal video height of game.
max_width: c_uintMaximum possible width of game.
max_height: c_uintMaximum possible height of game.
aspect_ratio: f32Nominal aspect ratio of game. If aspect_ratio is <= 0.0, an aspect ratio of base_width / base_height is assumed. A frontend could override this setting, if desired.
Trait Implementations
sourceimpl Clone for retro_game_geometry
impl Clone for retro_game_geometry
sourcefn clone(&self) -> retro_game_geometry
fn clone(&self) -> retro_game_geometry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for retro_game_geometry
impl Debug for retro_game_geometry
impl Copy for retro_game_geometry
Auto Trait Implementations
impl RefUnwindSafe for retro_game_geometry
impl Send for retro_game_geometry
impl Sync for retro_game_geometry
impl Unpin for retro_game_geometry
impl UnwindSafe for retro_game_geometry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
