[−][src]Struct wand::span::WorldSpan
Fields
name: String
width: f32
height: f32
world: World
Methods
impl WorldSpan
[src]
pub fn new(
state: State,
ctx: CanvasRenderingContext2d,
name: &str,
text: &str,
width: f32,
height: f32
) -> Self
[src]
state: State,
ctx: CanvasRenderingContext2d,
name: &str,
text: &str,
width: f32,
height: f32
) -> Self
pub fn set_text(&mut self, text: &str)
[src]
Trait Implementations
impl SpanTrait for WorldSpan
[src]
fn get_name(&self) -> &str
[src]
fn dispatch_event(&mut self, _ev: &mut Event)
[src]
fn dispath(&mut self, data: Box<dyn Any>)
[src]
fn render_tick(&self, _ctx: &CanvasRenderingContext2d)
[src]
fn tick(&mut self)
[src]
fn on_resize(
&mut self,
left: f64,
top: f64,
right: f64,
bottom: f64
) -> (f64, f64, bool)
[src]
&mut self,
left: f64,
top: f64,
right: f64,
bottom: f64
) -> (f64, f64, bool)
fn draw(&self, _ctx: &CanvasRenderingContext2d)
[src]
fn get_order(&self) -> u8
[src]
Auto Trait Implementations
impl !Send for WorldSpan
impl !Sync for WorldSpan
impl Unpin for WorldSpan
impl !UnwindSafe for WorldSpan
impl !RefUnwindSafe for WorldSpan
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>,