space_ex v0.8.0 SpaceEx.UI.Text

A text label.

See SpaceEx.UI.Panel.add_text/3.

Link to this section Summary

Functions

Alignment

A list of all available fonts

Set the color

The text string

Name of the font

Line spacing

The rect transform for the text

Remove the UI object

Set the color

The text string

Name of the font

Whether the UI object is visible

Font size

Font style

Whether the UI object is visible

Link to this section Functions

Link to this function alignment(this)

Alignment.

Returns: a Elixir.SpaceEx.UI.TextAnchor value in atom form

Link to this function available_fonts(this)

A list of all available fonts.

Returns: [str, ...], where str is a string

Set the color

Returns: {double, double, double}, where double is a high precision decimal

The text string

Returns: a string

Name of the font

Returns: a string

Link to this function line_spacing(this)

Line spacing.

Returns: a low-precision decimal

Link to this function rect_transform(this)

The rect transform for the text.

Returns: a reference to a SpaceEx.UI.RectTransform object

Remove the UI object.

Returns: :ok

Link to this function set_alignment(this, value)

Alignment.

Returns: :ok

Link to this function set_color(this, value)

Set the color

Returns: :ok

Link to this function set_content(this, value)

The text string

Returns: :ok

Link to this function set_font(this, value)

Name of the font

Returns: :ok

Link to this function set_line_spacing(this, value)

Line spacing.

Returns: :ok

Link to this function set_size(this, value)

Font size.

Returns: :ok

Link to this function set_style(this, value)

Font style.

Returns: :ok

Link to this function set_visible(this, value)

Whether the UI object is visible.

Returns: :ok

Font size.

Returns: an integer

Font style.

Returns: a Elixir.SpaceEx.UI.FontStyle value in atom form

Whether the UI object is visible.

Returns: true or false