pub struct WText { /* private fields */ }
Expand description

This 2D Widget represents text overlay.

Implementations

Constructs a WText.

Parameters
  • text: Text content of the widget.
  • pos: Position of the text.
  • font_size: Font size.
  • color: Color of the text.
C++ default parameters
  • font_size: 20
  • color: Color::white()

Trait Implementations

Wrap the specified raw pointer Read more

Return an the underlying raw pointer while consuming this wrapper. Read more

Return the underlying raw pointer. Read more

Return the underlying mutable raw pointer Read more

Executes the destructor for this type. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Sets the text content of the widget. Read more

Returns the current text content of the widget.

Sets the color of the widget. Read more

Sets rendering property of the widget. Read more

Returns rendering property of the widget. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.