File indexing completed on 2026-08-09 08:17:43

0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 // SPDX-FileCopyrightText: 2018 Kevin Ottens <ervin@kde.org>
0003 
0004 /*
0005  * Adapted by Louis Schul <schul9louis@gmail.com>
0006  * in 2023 for Klevernotes
0007  */
0008 
0009 #pragma once
0010 
0011 #include <QObject>
0012 
0013 class QPainter;
0014 class Stroke;
0015 
0016 class StrokePainter : public QObject
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit StrokePainter(QObject *parent = nullptr);
0022 
0023     void render(const Stroke &stroke, QPainter *painter);
0024 
0025     int lowestX;
0026     int highestX;
0027     int lowestY;
0028     int highestY;
0029 };