Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeLayer.cpp
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#include "KoShapeLayer.h"
8
9#include <QRectF>
10
14#include <KoXmlWriter.h>
15#include <KoXmlNS.h>
16
22
28
29bool KoShapeLayer::hitTest(const QPointF &position) const
30{
31 Q_UNUSED(position);
32 return false;
33}
34
36{
38}
39
40void KoShapeLayer::paintComponent(QPainter &) const
41{
42}
QList< KoShape * > shapes() const
void paintComponent(QPainter &painter) const override
QRectF boundingRect() const override
Get the bounding box of the shape.
KoShapeLayer()
The default constructor.
bool hitTest(const QPointF &position) const override
Check if the shape is hit on position.
virtual QRectF boundingRect() const
Get the bounding box of the shape.
Definition KoShape.cpp:335
void setSelectable(bool selectable)
Definition KoShape.cpp:1009
QPointF position() const
Get the position of the shape in pt.
Definition KoShape.cpp:825