[][src]Struct wand::core::Application

pub struct Application {
    pub context: CanvasRenderingContext2d,
    pub input: Input,
    pub counter: FpsCounter,
    // some fields omitted
}

Fields

context: CanvasRenderingContext2dinput: Inputcounter: 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]

pub fn new_section_with_container(
    &self,
    name: &str,
    width: f32,
    height: f32,
    container: Container
) -> SectionRef
[src]

pub fn get_state(&self) -> State[src]

pub fn get_fps(&self) -> u32[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,