13#ifndef NSBACI_UI_DRAWINGWIDGET_H
14#define NSBACI_UI_DRAWINGWIDGET_H
109 void setColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255);
119 void drawCircle(int32_t centerX, int32_t centerY, int32_t radius,
120 bool filled =
false);
125 void drawRectangle(int32_t x, int32_t y, int32_t width, int32_t height,
126 bool filled =
false);
131 void drawTriangle(int32_t x1, int32_t y1, int32_t x2, int32_t y2,
132 int32_t x3, int32_t y3,
bool filled =
false);
137 void drawLine(int32_t x1, int32_t y1, int32_t x2, int32_t y2);
142 void drawEllipse(int32_t centerX, int32_t centerY, int32_t radiusX,
143 int32_t radiusY,
bool filled =
false);
153 void drawText(int32_t x, int32_t y,
const QString& text,
154 int32_t fontSize = 12);
199 QColor currentColor_{Qt::black};
200 QColor backgroundColor_{Qt::white};
Type definitions for drawing-related operations.
std::variant< Circle, Rectangle, Triangle, Line, Ellipse, Pixel, DrawText > Shape
Variant type for all drawable shapes.
Definition drawingTypes.h:203
User interface namespace for nsbaci.
Definition drawingWidget.cpp:18
RGB color representation with values from 0-255.
Definition drawingTypes.h:31
Represents a single drawing command to be executed.
Definition drawingTypes.h:240
Complete drawable object with shape, color, and visibility.
Definition drawingTypes.h:209
2D size representation.
Definition drawingTypes.h:93