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

pub struct Text { /* fields omitted */ }

Drawable text created from a Font.

Methods

impl Text
[src]

[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.

[src]

Returns the width of the rendered text, in pixels.

[src]

Returns the height of the rendered text, in pixels.

[src]

Returns the string that the text represents.

[src]

Returns the dimensions of the rendered text.

[src]

Get the filter mode for the the rendered text.

[src]

Set the filter mode for the the rendered text.

[src]

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

[src]

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

[src]

Unwraps the Image contained by the Text object.

Trait Implementations

impl Clone for Text
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drawable for Text
[src]

[src]

Actually draws the object to the screen. Read more

[src]

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

[src]

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

[src]

Draws the drawable onto the rendering target. Read more

impl Debug for Text
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Text

impl Sync for Text