[][src]Struct wand::scene::Scene

pub struct Scene {
    pub path: String,
    pub x: f64,
    pub y: f64,
    pub h: f64,
    pub w: f64,
    // some fields omitted
}

Fields

path: Stringx: f64y: f64h: f64w: f64

Methods

impl Scene[src]

pub fn default(state: State) -> Self[src]

pub fn new(
    state: State,
    path: &str,
    margin_x: f32,
    margin_y: f32,
    margin_min_x: f32,
    margin_max_x: f32,
    margin_min_y: f32,
    margin_max_y: f32,
    container: Container
) -> Self
[src]

pub fn draw(&self, ctx: &CanvasRenderingContext2d)[src]

Deprecated

pub fn render_tick(&self, ctx: &CanvasRenderingContext2d)[src]

pub fn tick(&mut self)[src]

pub fn on_resize(&mut self, meta: &CanvasMeta)[src]

pub fn dispatch_event(&mut self, ev: &mut Event)[src]

pub fn on_mouse_move(&mut self, x: f64, y: f64)[src]

pub fn register_section(&mut self, section: &SectionRef)[src]

pub fn add_section(&mut self, section: &SectionRef)[src]

pub fn register_span<T: 'static + SpanTrait>(&mut self, span: T)[src]

pub fn add_span<T: 'static + SpanTrait>(&mut self, span: T)[src]

Trait Implementations

Auto Trait Implementations

impl !Send for Scene

impl !Sync for Scene

impl Unpin for Scene

impl !UnwindSafe for Scene

impl !RefUnwindSafe for Scene

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>,