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
19
class
KRITAFLAKE_EXPORT
KoShapeLayer
:
public
KoShapeContainer
20
{
21
public
:
23
KoShapeLayer
();
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
KoShapeContainer.h
KoShapeContainerModel
Definition
KoShapeContainerModel.h:28
KoShapeContainer
Definition
KoShapeContainer.h:56
KoShapeContainer::paintComponent
virtual void paintComponent(QPainter &painter) const =0
Paint the component Implement this method to allow the shape to paint itself, just like the KoShape::...
KoShapeLayer
Definition
KoShapeLayer.h:20
KoShape::boundingRect
virtual QRectF boundingRect() const
Get the bounding box of the shape.
Definition
KoShape.cpp:299
KoShape::hitTest
virtual bool hitTest(const QPointF &position) const
Check if the shape is hit on position.
Definition
KoShape.cpp:280
libs
flake
KoShapeLayer.h
Generated at
2026-01-15 02:30:07+01:00
from
Krita
branch
master
, commit
38b517ca06286bb65279453cbf9a2b4fbd1153d1