pub struct SdlApi { /* private fields */ }Expand description
SDL2 implementation
Implementations§
Trait Implementations§
Source§impl Api for SdlApi
impl Api for SdlApi
Source§fn is_window_open(&self) -> bool
fn is_window_open(&self) -> bool
Return the window state
Source§fn window_size(&self) -> (u32, u32)
fn window_size(&self) -> (u32, u32)
Return the window size (width, height)
Source§impl Audio for SdlApi
impl Audio for SdlApi
Source§fn resume_beep(&mut self)
fn resume_beep(&mut self)
Resume the beep sound
Source§fn pause_beep(&mut self)
fn pause_beep(&mut self)
Pause the beep sound
Auto Trait Implementations§
impl Freeze for SdlApi
impl RefUnwindSafe for SdlApi
impl !Send for SdlApi
impl !Sync for SdlApi
impl Unpin for SdlApi
impl UnwindSafe for SdlApi
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