Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_guides_decoration.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_GUIDES_DECORATION_H
8#define __KIS_GUIDES_DECORATION_H
9
10#include <QScopedPointer>
12
13class KisGuidesConfig;
14
15static const QString GUIDES_DECORATION_ID = "guides-decoration";
16
17class KRITAUI_EXPORT KisGuidesDecoration : public KisCanvasDecoration
18{
19 Q_OBJECT
20public:
22 ~KisGuidesDecoration() override;
23
24
25 void setGuidesConfig(const KisGuidesConfig &value);
26 const KisGuidesConfig& guidesConfig() const;
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_GUIDES_DECORATION_H */
float value(const T *src, size_t ch)
virtual void drawDecoration(QPainter &gc, const QRectF &updateArea, const KisCoordinatesConverter *converter, KisCanvas2 *canvas)=0
const QScopedPointer< Private > m_d
static const QString GUIDES_DECORATION_ID