[−][src]Struct wand::core::Application
Fields
context: CanvasRenderingContext2d
input: Input
counter: FpsCounter
Methods
impl Application
[src]
pub fn new_with_canvas_id(canvas_id: &str) -> Self
[src]
pub fn register(&mut self, scene: Scene)
[src]
pub fn render_tick(&self)
[src]
pub fn tick(&mut self)
[src]
pub fn draw(&self)
[src]
Deprecated
pub fn on_resize(&mut self)
[src]
pub fn on_mouse_move(&mut self, x: f64, y: f64)
[src]
pub fn on_keydown(&self, key: &str)
[src]
pub fn on_keyup(&self, key: &str)
[src]
pub fn new_section(
&self,
name: &str,
width: f32,
height: f32,
padding: f32
) -> SectionRef
[src]
&self,
name: &str,
width: f32,
height: f32,
padding: f32
) -> SectionRef
pub fn new_section_with_container(
&self,
name: &str,
width: f32,
height: f32,
container: Container
) -> SectionRef
[src]
&self,
name: &str,
width: f32,
height: f32,
container: Container
) -> SectionRef
pub fn get_state(&self) -> State
[src]
pub fn get_fps(&self) -> u32
[src]
Auto Trait Implementations
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
impl !RefUnwindSafe for Application
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,