Krita Source Code Documentation
Loading...
Searching...
No Matches
KoInsets.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006, 2010 Thomas Zander <zander@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOINSETS_H
8#define KOINSETS_H
9
10#include "kritaflake_export.h"
11
12#include <QDebug>
13
17struct KRITAFLAKE_EXPORT KoInsets
18{
19public:
27 KoInsets(qreal top, qreal left, qreal bottom, qreal right)
28 : top(top)
29 , bottom(bottom)
30 , left(left)
31 , right(right)
32 {
33 }
38 KoInsets() : top(0.), bottom(0.), left(0.), right(0.) {
39 }
40
42 void clear() {
43 top = 0;
44 bottom = 0;
45 left = 0;
46 right = 0;
47 }
48
49 qreal top;
50 qreal bottom;
51 qreal left;
52 qreal right;
53};
54
55#ifndef QT_NO_DEBUG_STREAM
56KRITAFLAKE_EXPORT QDebug operator<<(QDebug, const KoInsets &);
57#endif
58
59#endif
KRITAFLAKE_EXPORT QDebug operator<<(QDebug, const KoInsets &)
Definition KoInsets.cpp:10
void clear()
clears the insets so all sides are set to zero
Definition KoInsets.h:42
qreal bottom
Bottom inset.
Definition KoInsets.h:50
qreal right
Right inset.
Definition KoInsets.h:52
KoInsets()
Definition KoInsets.h:38
KoInsets(qreal top, qreal left, qreal bottom, qreal right)
Definition KoInsets.h:27
qreal top
Top inset.
Definition KoInsets.h:49
qreal left
Left inset.
Definition KoInsets.h:51