pub struct Sdl2Core {
pub canvas: Canvas<Window>,
pub event_pump: EventPump,
pub mouse: MouseState,
pub texture_creator: Rc<TextureCreator<WindowContext>>,
pub font: Option<TtfFont>,
pub width: i32,
pub height: i32,
}Fields§
§canvas: Canvas<Window>§event_pump: EventPump§mouse: MouseState§texture_creator: Rc<TextureCreator<WindowContext>>§font: Option<TtfFont>§width: i32§height: i32Implementations§
Auto Trait Implementations§
impl Freeze for Sdl2Core
impl RefUnwindSafe for Sdl2Core
impl !Send for Sdl2Core
impl !Sync for Sdl2Core
impl Unpin for Sdl2Core
impl UnsafeUnpin for Sdl2Core
impl UnwindSafe for Sdl2Core
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