Skip to content

GUILabel

Hampus Sandberg edited this page Apr 12, 2015 · 1 revision

Index


Info

TODO

Struct

/*
 * @name	GUILabel
 * @brief	- 	A rectangle which can display two rows of text with different
 * 				color for each row.
 * 			-	Texts, colors, fonts in labels can be changed
 */
typedef struct
{
	/* Basic information about the object */
	GUIObject object;

	/* Colors */
	guiColor backgroundColor;
	guiColor textColor[2];

	/* Two rows of text can be displayed and it must have at least one row */
	char* text[2];
	FONT* font;

	/* Internal stuff - Do not touch! */
	uint32_t numOfChar[2];
	uint32_t textWidth[2];
	uint32_t textHeight[2];
} GUILabel;

Example Init

TODO

Clone this wiki locally