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.

Note that this is relatively computationally expensive; if you want to draw text every frame you probably want to save it and only update it when the text changes.

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.

Returns the dimensions of the rendered text.

Get the filter mode for the the rendered text.

Set the filter mode for the the rendered text.

Returns a reference to the Image contained by the Text object.

Returns a mutable reference to the Image contained by the Text object.

Unwraps the Image contained by the Text object.

Trait Implementations

impl Clone for Text
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drawable for Text
[src]

Actually draws the object to the screen. Read more

Sets the blend mode to be used when drawing this drawable. This overrides the general graphics::set_blend_mode(). If None is set, defers to the blend mode set by graphics::set_blend_mode(). Read more

Gets the blend mode to be used when drawing this drawable.

Draws the drawable onto the rendering target. Read more

impl Debug for Text
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Text

impl Sync for Text