Gooey GUI Library
|
Header file for the GooeyLabel module. More...
#include "common/gooey_common.h"
Go to the source code of this file.
Functions | |
GooeyLabel * | GooeyLabel_Create (const char *text, float font_size, int x, int y) |
Creates a Label. | |
void | GooeyLabel_SetText (GooeyLabel *label, const char *text) |
Sets the text of an existing label. | |
void | GooeyLabel_SetColor (GooeyLabel *label, unsigned long color) |
Sets the text color of a label. | |
Header file for the GooeyLabel module.
Provides functions for creating, modifying, and rendering text labels within a GooeyWindow.
GooeyLabel * GooeyLabel_Create | ( | const char * | text, |
float | font_size, | ||
int | x, | ||
int | y | ||
) |
Creates a Label.
Creates a new GooeyLabel with the given text, font size, and position.
text | The text to display on the label. |
font_size | The font size of the label's text. |
x | The x-coordinate of the label's position. |
y | The y-coordinate of the label's position. |
void GooeyLabel_SetColor | ( | GooeyLabel * | label, |
unsigned long | color | ||
) |
Sets the text color of a label.
Changes the text color of a label to the specified color.
label | A pointer to the label whose color is to be changed. |
color | A string representing the color (e.g., "red", "#FF0000"). |
void GooeyLabel_SetText | ( | GooeyLabel * | label, |
const char * | text | ||
) |
Sets the text of an existing label.
Updates the text displayed by a given GooeyLabel.
label | The label to update. |
text | The new text to display on the label. |