Struct three::Text [] [src]

pub struct Text { /* fields omitted */ }

UI (on-screen) text. To use, create the new one using Factory::ui_text and add it to the scene using Scene::add.

Methods

impl Text
[src]

[src]

Change text.

[src]

Change font.

[src]

Change text position. Coordinates in pixels from top-left. Defaults to (0, 0).

[src]

Change maximum bounds size, in pixels from top-left. Defaults to unbound.

[src]

Change text color. Defaults to white (0xFFFFFF).

[src]

Change text opacity. From 0.0 to 1.0. Defaults to 1.0.

[src]

Change font size (scale). Defaults to 16.

[src]

Change text layout. Defaults to Layout::SingleLine(Align::Left).

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 Debug for Text
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Text
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Text
[src]

impl Hash for Text
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl AsRef<Base> for Text
[src]

[src]

Performs the conversion.

impl Object for Text
[src]

[src]

Converts into the base type.

[src]

Invisible objects are not rendered by cameras.

[src]

Set both position, orientation and scale.

[src]

Set position.

[src]

Set orientation.

[src]

Set scale.

[src]

Set weights.

[src]

Rotates object in the specific direction of target.