Text¶
-
class Text¶
Text. Created using
add_text()
.-
std::tuple<double, double, double> position()¶
-
void set_position(std::tuple<double, double, double> value)¶
Position of the text.
- Game Scenes:
Flight
-
std::tuple<double, double, double, double> rotation()¶
-
void set_rotation(std::tuple<double, double, double, double> value)¶
Rotation of the text as a quaternion.
- Game Scenes:
Flight
-
SpaceCenter::ReferenceFrame reference_frame()¶
-
void set_reference_frame(SpaceCenter::ReferenceFrame value)¶
Reference frame for the positions of the object.
- Game Scenes:
Flight
-
bool visible()¶
-
void set_visible(bool value)¶
Whether the object is visible.
- Game Scenes:
Flight
-
void remove()¶
Remove the object.
- Game Scenes:
Flight
-
std::string content()¶
-
void set_content(std::string value)¶
The text string
- Game Scenes:
Flight
-
std::string font()¶
-
void set_font(std::string value)¶
Name of the font
- Game Scenes:
Flight
-
static std::vector<std::string> available_fonts(Client &connection)¶
A list of all available fonts.
- Game Scenes:
Flight
-
int32_t size()¶
-
void set_size(int32_t value)¶
Font size.
- Game Scenes:
Flight
-
float character_size()¶
-
void set_character_size(float value)¶
Character size.
- Game Scenes:
Flight
-
std::tuple<double, double, double> color()¶
-
void set_color(std::tuple<double, double, double> value)¶
Set the color
- Game Scenes:
Flight
-
std::string material()¶
-
void set_material(std::string value)¶
Material used to render the object. Creates the material from a shader with the given name.
- Game Scenes:
Flight
-
UI::TextAlignment alignment()¶
-
void set_alignment(UI::TextAlignment value)¶
Alignment.
- Game Scenes:
Flight
-
float line_spacing()¶
-
void set_line_spacing(float value)¶
Line spacing.
- Game Scenes:
Flight
-
UI::TextAnchor anchor()¶
-
void set_anchor(UI::TextAnchor value)¶
Anchor.
- Game Scenes:
Flight
-
std::tuple<double, double, double> position()¶