#include "core/gooey_backend_internal.h"
#include "gooey_widgets_internal.h"
Go to the source code of this file.
|
GooeyLabel * | GooeyLabel_Add (GooeyWindow *win, const char *text, float font_size, int x, int y) |
| Adds a label to the window.
|
|
void | GooeyLabel_SetText (GooeyLabel *label, const char *text) |
| Sets the text of the label.
|
|
void | GooeyLabel_Draw (GooeyWindow *win) |
| Draws the label on the window.
|
|
void | GooeyLabel_SetColor (GooeyLabel *label, const char *color) |
| Sets the color of a label.
|
|
◆ GooeyLabel_Add()
GooeyLabel * GooeyLabel_Add |
( |
GooeyWindow * |
win, |
|
|
const char * |
text, |
|
|
float |
font_size, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
Adds a label to the window.
- Parameters
-
win | The window to add the label to. |
text | The text to display on the label. |
x | The x-coordinate of the label's position. |
y | The y-coordinate of the label's position. |
- Returns
- A new GooeyLabel object.
◆ GooeyLabel_Draw()
void GooeyLabel_Draw |
( |
GooeyWindow * |
win | ) |
|
Draws the label on the window.
- Parameters
-
win | The window to draw the label on. |
◆ GooeyLabel_SetColor()
void GooeyLabel_SetColor |
( |
GooeyLabel * |
label, |
|
|
const char * |
color |
|
) |
| |
Sets the color of a label.
Changes the text color of a label to the specified color string.
- Parameters
-
label | A pointer to the label whose color is to be set. |
color | A string representing the color (e.g., "red", "#FF0000"). |
◆ GooeyLabel_SetText()
void GooeyLabel_SetText |
( |
GooeyLabel * |
label, |
|
|
const char * |
text |
|
) |
| |
Sets the text of the label.
- Parameters
-
label | The label to set the text for. |
text | The new text to display on the label. |