Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_grid_decoration.h
Go to the documentation of this file.
1/*
2 * This file is part of Krita
3 *
4 * SPDX-FileCopyrightText: 2006 Cyrille Berger <cberger@cberger.net>
5 * SPDX-FileCopyrightText: 2014 Sven Langkamp <sven.langkamp@gmail.com>
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10#ifndef KIS_GRID_DECORATION_H
11#define KIS_GRID_DECORATION_H
12
13#include <QScopedPointer>
15
16class KisGridConfig;
17
18
20{
21 Q_OBJECT
22public:
24 ~KisGridDecoration() override;
25
26 void setGridConfig(const KisGridConfig &config);
27
28protected:
29 void drawDecoration(QPainter& gc, const QRectF& updateArea, const KisCoordinatesConverter* converter, KisCanvas2* canvas) override;
30
31private:
32 struct Private;
33 const QScopedPointer<Private> m_d;
34};
35
36#endif // KIS_GRID_DECORATION_H
KisGridDecoration(KisView *parent)
const QScopedPointer< Private > m_d
void drawDecoration(QPainter &gc, const QRectF &updateArea, const KisCoordinatesConverter *converter, KisCanvas2 *canvas) override
void setGridConfig(const KisGridConfig &config)