From 275aa5cc552fc67a26d7fd993f4d877705208b09 Mon Sep 17 00:00:00 2001 From: SemvdH Date: Tue, 24 Aug 2021 23:43:35 +0200 Subject: [PATCH] added drawing files for Retro Windows visual style #4 --- src/toolbox/drawing.c | 1 + src/toolbox/drawing.h | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/toolbox/drawing.c create mode 100644 src/toolbox/drawing.h diff --git a/src/toolbox/drawing.c b/src/toolbox/drawing.c new file mode 100644 index 0000000..cd9d4f8 --- /dev/null +++ b/src/toolbox/drawing.c @@ -0,0 +1 @@ +#include "drawing.h" \ No newline at end of file diff --git a/src/toolbox/drawing.h b/src/toolbox/drawing.h new file mode 100644 index 0000000..2d09b3b --- /dev/null +++ b/src/toolbox/drawing.h @@ -0,0 +1,30 @@ +#ifndef DRAWING_H +#define DRAWING_H + +#include + +/** + * @brief draws a line with a specified width + * + * @param x0 the start x coordinate of the line + * @param y0 the start y coordinate of the line + * @param x1 the end x coordinate of the line + * @param y1 the end y coordinate of the line + * @param thiccness the width of the line + * @param color the color of the line + */ +void drawing_draw_line_thiccness(float x0, float y0, float x1, float y1, int thiccness, unsigned int color); + +/** + * @brief draws an open rectangle + * + * @param x the top left x position of the rectangle + * @param y the top left y position of the rectangle + * @param width the width of the rectangle + * @param heigth the heigth of the rectangle + * @param thiccness the width of the lines of the rectangle + * @param color the color of the rectangle + */ +void drawing_draw_rectangle_open(float x, float y, float width, float heigth, int thiccness, unsigned int color); + +#endif // !DRAWING_H