Struct pixel_engine::EngineWrapper
source · pub struct EngineWrapper(_);
Expand description
A Wrapper around an Engine
Implementations
Methods from Deref<Target = Engine>
sourcepub fn get_mouse_btn(&self, btn: MouseBtn) -> Input
pub fn get_mouse_btn(&self, btn: MouseBtn) -> Input
Get the status of a Mouse Button
sourcepub fn get_mouse_location(&self) -> (u32, u32)
pub fn get_mouse_location(&self) -> (u32, u32)
Get the mouse location (in pixel) on the screen Will be defaulted to (0,0) at the start of the program
sourcepub fn get_mouse_wheel(&self) -> MouseWheel
pub fn get_mouse_wheel(&self) -> MouseWheel
Get the scroll wheel direction (If Any) during the frame
sourcepub fn get_pressed(&self) -> HashSet<Keycodes>
pub fn get_pressed(&self) -> HashSet<Keycodes>
Get all Keys pressed during the last frame
sourcepub fn create_decal(&mut self, sprite: &Sprite) -> Decal
pub fn create_decal(&mut self, sprite: &Sprite) -> Decal
Create a GPU version of Sprite
sourcepub fn destroy_decal(&mut self, decal: Decal)
pub fn destroy_decal(&mut self, decal: Decal)
Tell the GPU to destroy everything related to that [Decal
]
Trait Implementations
sourceimpl Debug for EngineWrapper
impl Debug for EngineWrapper
sourceimpl Deref for EngineWrapper
impl Deref for EngineWrapper
Auto Trait Implementations
impl !RefUnwindSafe for EngineWrapper
impl !Send for EngineWrapper
impl !Sync for EngineWrapper
impl Unpin for EngineWrapper
impl !UnwindSafe for EngineWrapper
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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