Gooey GUI Library
Loading...
Searching...
No Matches
gooey_canvas.h
Go to the documentation of this file.
1#ifndef GOOEY_CANVAS_H
2#define GOOEY_CANVAS_H
3
4#include "core/gooey_backend_internal.h"
5#include "core/gooey_common.h"
6
7
18GooeyCanvas *GooeyCanvas_Add(GooeyWindow *win, int x, int y, int width,
19 int height);
20
32void GooeyCanvas_DrawRectangle(GooeyCanvas *canvas, int x, int y, int width, int height, unsigned long color_hex, bool is_filled);
33
44void GooeyCanvas_DrawLine(GooeyCanvas *canvas, int x1, int y1, int x2, int y2, unsigned long color_hex);
45
57void GooeyCanvas_DrawArc(GooeyCanvas *canvas, int x_center, int y_center, int width, int height, int angle1, int angle2);
58
65void GooeyCanvas_SetForeground(GooeyCanvas *canvas, unsigned long color_hex);
66
67void GooeyCanvas_Draw(GooeyWindow* window);
68
69
70#endif
void GooeyCanvas_DrawArc(GooeyCanvas *canvas, int x_center, int y_center, int width, int height, int angle1, int angle2)
Draws an arc onto the user-defined canvas.
void GooeyCanvas_SetForeground(GooeyCanvas *canvas, unsigned long color_hex)
Sets foreground of the user-defined canvas.
GooeyCanvas * GooeyCanvas_Add(GooeyWindow *win, int x, int y, int width, int height)
Adds a canvas to the window.
void GooeyCanvas_DrawLine(GooeyCanvas *canvas, int x1, int y1, int x2, int y2, unsigned long color_hex)
Draws a line onto the user-defined canvas.
void GooeyCanvas_Draw(GooeyWindow *window)
void GooeyCanvas_DrawRectangle(GooeyCanvas *canvas, int x, int y, int width, int height, unsigned long color_hex, bool is_filled)
Draws a rectangle onto the user-defined canvas.