From 52a3ea05a17d28cbe3b0046cb17b34d0b011e63f Mon Sep 17 00:00:00 2001 From: TarasovEE Date: Tue, 5 Aug 2025 21:21:55 +0300 Subject: [PATCH] =?UTF-8?q?headersvg:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2?= =?UTF-8?q?=D0=BE=D1=87=D0=BD=D1=8B=D0=B9=20=D1=84=D0=B0=D0=B9=D0=BB=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20?= =?UTF-8?q?=D1=81=20SVG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svg.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 svg.h diff --git a/svg.h b/svg.h new file mode 100644 index 0000000..51e8514 --- /dev/null +++ b/svg.h @@ -0,0 +1,23 @@ +#ifndef SVG_H_INCLUDED +#define SVG_H_INCLUDED +#include +#include +#include + +// Функция заголовка. + +void svg_begin(double width, double height); + +// Функция окончания. + +void svg_end(); + +// Функция вывода строки. + +void svg_text(double left, double baseline, std::string text); + +// Функция вывода прямоугольника. + +void svg_rect(double x, double y, double width, double height, std::string stroke = "black", std::string fill = "green");//Цвета заданы по умолчанию. + +#endif // SVG_H_INCLUDED