Gooey GUI Library
|
Image handling functions for the Gooey GUI library. More...
#include "common/gooey_common.h"
Go to the source code of this file.
Functions | |
GooeyImage * | GooeyImage_Create (const char *image_path, int x, int y, int width, int height, void(*callback)(void)) |
Adds an image to a Gooey window. | |
void | GooeyImage_SetImage (GooeyImage *image, const char *image_path) |
Image handling functions for the Gooey GUI library.
This file contains functions for adding and drawing images in a Gooey window.
GooeyImage * GooeyImage_Create | ( | const char * | image_path, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
void(*)(void) | callback | ||
) |
Adds an image to a Gooey window.
This function loads an image from the specified path and adds it to the given window at the specified position and dimensions. A callback function can be provided to handle interactions with the image.
image_path | The file path of the image to load. |
x | The x-coordinate of the image's position. |
y | The y-coordinate of the image's position. |
width | The width of the image. |
height | The height of the image. |
callback | A callback function to handle interactions with the image (e.g., clicks). |
void GooeyImage_SetImage | ( | GooeyImage * | image, |
const char * | image_path | ||
) |