[−][src]Struct wand::scene::Scene
Fields
path: String
x: f64
y: f64
h: f64
w: 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]
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
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
impl DrawOutline for Scene
[src]
fn draw_outline(&self, ctx: &CanvasRenderingContext2d)
[src]
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]
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>,