Text

type krpc_UI_Text_t

A text label. See krpc_UI_Panel_AddText().

krpc_error_t krpc_UI_Text_RectTransform(krpc_connection_t connection, krpc_UI_RectTransform_t *result)

The rect transform for the text.

krpc_error_t krpc_UI_Text_Visible(krpc_connection_t connection, bool *result)
void krpc_UI_Text_set_Visible(bool value)

Whether the UI object is visible.

krpc_error_t krpc_UI_Text_Content(krpc_connection_t connection, char **result)
void krpc_UI_Text_set_Content(const char *value)

The text string

krpc_error_t krpc_UI_Text_Font(krpc_connection_t connection, char **result)
void krpc_UI_Text_set_Font(const char *value)

Name of the font

krpc_error_t krpc_UI_Text_AvailableFonts(krpc_connection_t connection, krpc_list_string_t *result)

A list of all available fonts.

krpc_error_t krpc_UI_Text_Size(krpc_connection_t connection, int32_t *result)
void krpc_UI_Text_set_Size(int32_t value)

Font size.

krpc_error_t krpc_UI_Text_Style(krpc_connection_t connection, krpc_UI_FontStyle_t *result)
void krpc_UI_Text_set_Style(krpc_UI_FontStyle_t value)

Font style.

krpc_error_t krpc_UI_Text_Color(krpc_connection_t connection, krpc_tuple_double_double_double_t *result)
void krpc_UI_Text_set_Color(const krpc_tuple_double_double_double_t *value)

Set the color

krpc_error_t krpc_UI_Text_Alignment(krpc_connection_t connection, krpc_UI_TextAnchor_t *result)
void krpc_UI_Text_set_Alignment(krpc_UI_TextAnchor_t value)

Alignment.

krpc_error_t krpc_UI_Text_LineSpacing(krpc_connection_t connection, float *result)
void krpc_UI_Text_set_LineSpacing(float value)

Line spacing.

krpc_error_t krpc_UI_Text_Remove(krpc_connection_t connection)

Remove the UI object.

type krpc_UI_FontStyle_t

Font style.

KRPC_UI_FONTSTYLE_NORMAL

Normal.

KRPC_UI_FONTSTYLE_BOLD

Bold.

KRPC_UI_FONTSTYLE_ITALIC

Italic.

KRPC_UI_FONTSTYLE_BOLDANDITALIC

Bold and italic.

type krpc_UI_TextAlignment_t

Text alignment.

KRPC_UI_TEXTALIGNMENT_LEFT

Left aligned.

KRPC_UI_TEXTALIGNMENT_RIGHT

Right aligned.

KRPC_UI_TEXTALIGNMENT_CENTER

Center aligned.

type krpc_UI_TextAnchor_t

Text alignment.

KRPC_UI_TEXTANCHOR_LOWERCENTER

Lower center.

KRPC_UI_TEXTANCHOR_LOWERLEFT

Lower left.

KRPC_UI_TEXTANCHOR_LOWERRIGHT

Lower right.

KRPC_UI_TEXTANCHOR_MIDDLECENTER

Middle center.

KRPC_UI_TEXTANCHOR_MIDDLELEFT

Middle left.

KRPC_UI_TEXTANCHOR_MIDDLERIGHT

Middle right.

KRPC_UI_TEXTANCHOR_UPPERCENTER

Upper center.

KRPC_UI_TEXTANCHOR_UPPERLEFT

Upper left.

KRPC_UI_TEXTANCHOR_UPPERRIGHT

Upper right.