[][src]Struct three::Text

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]

Change text.

Change font.

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

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

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

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

Change font size (scale). Defaults to 16.

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

Trait Implementations

impl Object for Text
[src]

The internal data for the object. Read more

Converts into the base type.

Invisible objects are not rendered by cameras.

Sets the name of the object.

Set both position, orientation and scale.

Set position.

Set orientation.

Set scale.

Set weights.

Rotates object in the specific direction of target.

impl DowncastObject for Text
[src]

impl PartialEq<Text> for Text
[src]

impl Clone for Text
[src]

Performs copy-assignment from source. Read more

impl Eq for Text
[src]

impl AsRef<Base> for Text
[src]

impl Debug for Text
[src]

impl Hash for Text
[src]

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

Auto Trait Implementations

impl !Send for Text

impl !Sync for Text

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

Sets value as a parameter of self.

impl<T> Erased for T