[−][src]Trait tetra::graphics::Drawable
Implemented for types that can be drawn.
graphics::draw
can be used to draw without importing this trait, which is sometimes
more convienent.
Required methods
fn draw<P>(&self, ctx: &mut Context, params: P) where
P: Into<DrawParams>,
P: Into<DrawParams>,
Draws self
to the screen (or a canvas, if one is enabled), using the specified parameters.
Any type that implements Into<DrawParams>
can be passed into this method. For example, since the majority
of the time, you only care about changing the position, a Vec2
can be passed to set the position and leave
everything else as the defaults.
Implementors
impl Drawable for Animation
[src]
fn draw<P>(&self, ctx: &mut Context, params: P) where
P: Into<DrawParams>,
[src]
P: Into<DrawParams>,
impl Drawable for ScreenScaler
[src]
fn draw<P>(&self, ctx: &mut Context, params: P) where
P: Into<DrawParams>,
[src]
P: Into<DrawParams>,
impl Drawable for Canvas
[src]
fn draw<P>(&self, ctx: &mut Context, params: P) where
P: Into<DrawParams>,
[src]
P: Into<DrawParams>,
impl Drawable for Text
[src]
fn draw<P>(&self, ctx: &mut Context, params: P) where
P: Into<DrawParams>,
[src]
P: Into<DrawParams>,
impl Drawable for Texture
[src]
fn draw<P>(&self, ctx: &mut Context, params: P) where
P: Into<DrawParams>,
[src]
P: Into<DrawParams>,
impl Drawable for NineSlice
[src]
fn draw<P>(&self, ctx: &mut Context, params: P) where
P: Into<DrawParams>,
[src]
P: Into<DrawParams>,