Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeRubberSelectStrategy_p.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
3
SPDX-FileCopyrightText: 2006, 2009 Thomas Zander <zander@kde.org>
4
5
SPDX-License-Identifier: LGPL-2.0-or-later
6
*/
7
#ifndef KoShapeRubberSelectStrategyPrivate_H
8
#define KoShapeRubberSelectStrategyPrivate_H
9
10
#include "
KoInteractionStrategy_p.h
"
11
#include "
KoSnapGuide.h
"
12
13
class
KoShapeRubberSelectStrategyPrivate
:
public
KoInteractionStrategyPrivate
14
{
15
public
:
16
explicit
KoShapeRubberSelectStrategyPrivate
(
KoToolBase
*owner)
17
:
KoInteractionStrategyPrivate
(owner),
18
snapGuide
(new
KoSnapGuide
(owner->canvas()))
19
{
20
}
21
22
~KoShapeRubberSelectStrategyPrivate
()
23
{
24
delete
snapGuide
;
25
}
26
32
QRectF
selectedRect
()
const
{
33
return
selectRect
.normalized();
34
}
35
36
QRectF
selectRect
;
37
QPointF
lastPos
;
38
KoSnapGuide
*
snapGuide
;
39
};
40
41
#endif
KoInteractionStrategy_p.h
KoSnapGuide.h
KoInteractionStrategyPrivate
Definition
KoInteractionStrategy_p.h:13
KoShapeRubberSelectStrategyPrivate
Definition
KoShapeRubberSelectStrategy_p.h:14
KoShapeRubberSelectStrategyPrivate::~KoShapeRubberSelectStrategyPrivate
~KoShapeRubberSelectStrategyPrivate()
Definition
KoShapeRubberSelectStrategy_p.h:22
KoShapeRubberSelectStrategyPrivate::lastPos
QPointF lastPos
Definition
KoShapeRubberSelectStrategy_p.h:37
KoShapeRubberSelectStrategyPrivate::selectedRect
QRectF selectedRect() const
Definition
KoShapeRubberSelectStrategy_p.h:32
KoShapeRubberSelectStrategyPrivate::selectRect
QRectF selectRect
Definition
KoShapeRubberSelectStrategy_p.h:36
KoShapeRubberSelectStrategyPrivate::KoShapeRubberSelectStrategyPrivate
KoShapeRubberSelectStrategyPrivate(KoToolBase *owner)
Definition
KoShapeRubberSelectStrategy_p.h:16
KoShapeRubberSelectStrategyPrivate::snapGuide
KoSnapGuide * snapGuide
Definition
KoShapeRubberSelectStrategy_p.h:38
KoSnapGuide
Definition
KoSnapGuide.cpp:24
KoToolBase
Definition
KoToolBase.h:57
libs
flake
tools
KoShapeRubberSelectStrategy_p.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52