[][src]Struct wand::container::Container

pub struct Container {
    pub left: f64,
    pub right: f64,
    pub top: f64,
    pub bottom: f64,
    // some fields omitted
}

Fields

left: f64right: f64top: f64bottom: f64

Methods

impl Container[src]

pub fn new(
    padding_x: f32,
    padding_y: f32,
    padding_min_x: f32,
    padding_max_x: f32,
    padding_min_y: f32,
    padding_max_y: f32,
    scroll: Scrollable
) -> Self
[src]

pub fn on_resize(&mut self, x: f64, y: f64, w: f64, h: f64)[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 register(&mut self, item: Content)[src]

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

Trait Implementations

Auto Trait Implementations

impl !Send for Container

impl !Sync for Container

impl Unpin for Container

impl !UnwindSafe for Container

impl !RefUnwindSafe for Container

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