space_ex v0.8.0 SpaceEx.Drawing.Text

Text.

Created using SpaceEx.Drawing.add_text/6.

Link to this section Summary

Functions

Alignment

Anchor

A list of all available fonts

Character size

Set the color

The text string

Name of the font

Line spacing

Material used to render the object

Position of the text

Reference frame for the positions of the object

Remove the object

Rotation of the text as a quaternion

Set the color

The text string

Name of the font

Material used to render the object

Position of the text

Reference frame for the positions of the object

Rotation of the text as a quaternion

Whether the object is visible

Font size

Font style

Whether the object is visible

Link to this section Functions

Link to this function alignment(this)

Alignment.

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

Anchor.

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

Link to this function available_fonts(conn)

A list of all available fonts.

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

Link to this function character_size(this)

Character size.

Returns: a low-precision decimal

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

Material used to render the object.

Creates the material from a shader with the given name.

Returns: a string

Position of the text.

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

Link to this function reference_frame(this)

Reference frame for the positions of the object.

Returns: a reference to a SpaceEx.SpaceCenter.ReferenceFrame object

Remove the object.

Returns: :ok

Rotation of the text as a quaternion.

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

Link to this function set_alignment(this, value)

Alignment.

Returns: :ok

Link to this function set_anchor(this, value)

Anchor.

Returns: :ok

Link to this function set_character_size(this, value)

Character size.

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_material(this, value)

Material used to render the object.

Creates the material from a shader with the given name.

Returns: :ok

Link to this function set_position(this, value)

Position of the text.

Returns: :ok

Link to this function set_reference_frame(this, value)

Reference frame for the positions of the object.

Returns: :ok

Link to this function set_rotation(this, value)

Rotation of the text as a quaternion.

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 object is visible.

Returns: :ok

Font size.

Returns: an integer

Font style.

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

Whether the object is visible.

Returns: true or false