Gooey GUI Library
Loading...
Searching...
No Matches
gooey_canvas.h
Go to the documentation of this file.
1
11#ifndef GOOEY_CANVAS_H
12#define GOOEY_CANVAS_H
13
14#include "common/gooey_common.h"
15
29GooeyCanvas *GooeyCanvas_Create(int x, int y, int width,
30 int height);
44void GooeyCanvas_DrawRectangle(GooeyCanvas *canvas, int x, int y, int width, int height, unsigned long color_hex, bool is_filled);
45
56void GooeyCanvas_DrawLine(GooeyCanvas *canvas, int x1, int y1, int x2, int y2, unsigned long color_hex);
57
71void GooeyCanvas_DrawArc(GooeyCanvas *canvas, int x_center, int y_center, int width, int height, int angle1, int angle2);
72
81void GooeyCanvas_SetForeground(GooeyCanvas *canvas, unsigned long color_hex);
82
83
84#endif // GOOEY_CANVAS_H
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 the foreground color of the user-defined canvas.
GooeyCanvas * GooeyCanvas_Create(int x, int y, int width, int height)
Adds a canvas to the specified 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_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.