Trait lux::font::TextDraw
[−]
[src]
pub trait TextDraw: TextLoad + Canvas {
fn text<'a, S: 'a + AsRef<str>>(&'a mut self, text: S, x: Float, y: Float) -> ContainedText<'a, Self, S> { ... }
}Any struct that implements TextDraw can draw text to it.
The only known implementation of TextDraw is Frame.
Provided Methods
fn text<'a, S: 'a + AsRef<str>>(&'a mut self, text: S, x: Float, y: Float) -> ContainedText<'a, Self, S>
Starts drawing some text at a position.
Text size and text font can be configured on the returned ContainedText
object and finally drawn to the canvas with .draw().