Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeLayer.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 SPDX-FileCopyrightText: 2006-2007 Jan Hambrecht <jaham@gmx.net>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef __KOSHAPELAYER_H__
8#define __KOSHAPELAYER_H__
9
10#include "KoShapeContainer.h"
11#include "kritaflake_export.h"
12
19class KRITAFLAKE_EXPORT KoShapeLayer : public KoShapeContainer
20{
21public:
28 explicit KoShapeLayer(KoShapeContainerModel *model);
29
33 void paintComponent(QPainter &painter) const override;
34 bool hitTest(const QPointF &position) const override;
35 QRectF boundingRect() const override;
36};
37
38#endif // __KOSHAPELAYER_H__
39
virtual void paintComponent(QPainter &painter) const =0
Paint the component Implement this method to allow the shape to paint itself, just like the KoShape::...
virtual QRectF boundingRect() const
Get the bounding box of the shape.
Definition KoShape.cpp:335
virtual bool hitTest(const QPointF &position) const
Check if the shape is hit on position.
Definition KoShape.cpp:308