Files
z-bar-qt/Plugins/ZShell/Internal/strokecanvasrenderer.hpp
T
zach c102d0e38f
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 11s
Python / lint-format (pull_request) Successful in 16s
Python / test (pull_request) Successful in 31s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m17s
drawing reworked into c++ plugin, moved input handler to Interactions.qml as a PointHandler
2026-06-18 13:48:58 +02:00

24 lines
401 B
C++

#pragma once
#include <QCanvasPainterItemRenderer>
#include "stroke.hpp"
namespace ZShell::internal {
class StrokeCanvasRenderer final : public QCanvasPainterItemRenderer {
public:
void synchronizeData(QCanvasPainterItem *item) override;
void paint(QCanvasPainter *painter) override;
private:
QColor m_penColor;
float m_penWidth = 4.f;
QVector<Stroke> m_strokes;
Stroke m_currentStroke;
};
};