Struct ggez::graphics::Text [] [src]

pub struct Text { /* fields omitted */ }

Drawable text created from a Font.

Methods

impl Text
[src]

Renders a new Text from the given Font

Returns the width of the rendered text, in pixels.

Returns the height of the rendered text, in pixels.

Returns the string that the text represents.

Set the color mod of the image. Each pixel of the image is multiplied by this color when drawn.

Set the alpha mod of the image. Each pixel's alpha will be multiplied by this value when drawn.

Trait Implementations

impl Drawable for Text
[src]

Actually draws the object to the screen. This is the most general version of the operation, which is all that is required for implementing this trait. (It also maps nicely onto SDL2's Renderer::copy_ex(), we might want to wrap the types up a bit more nicely someday.) Read more

Draws the drawable onto the rendering target.

impl Debug for Text
[src]

Formats the value using the given formatter.