GUIStaticTextBox - hampussandberg/HexConnect GitHub Wiki
Index
Info
TODO
Struct
/*
* @name GUIStaticTextBox
* @brief - Used to display a simple static text in a box, i.e. something
* that doesn't need to updated that often and is more aimed
* towards informational text
* - The position and dimensions can be set using the object
* - Background and text color can be set independently
* - A font should be set for the text
* - Text can be aligned vertically to left, center or right using
* textAlignment
* - The text string will automatically switch rows when needed,
* this is done by looking for space characters and cutting the
* string there
* - If there is a word in the text string that is longer than text
* box an error will be generated
* - If the text string is longer than what will fit in the whole
* text box, the end will be cut off
*/
typedef struct
{
/* Basic information about the object */
GUIObject object;
/* Colors */
guiColor backgroundColor;
guiColor textColor;
/* Pointer to the text and a font. Vertical text alignment */
char* text;
FONT* font;
GUITextAlignment textAlignment;
} GUIStaticTextBox;
Example Init
TODO