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
17
struct
KRITAFLAKE_EXPORT
KoInsets
18
{
19
public
:
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
56
KRITAFLAKE_EXPORT QDebug
operator<<
(QDebug,
const
KoInsets
&);
57
#endif
58
59
#endif
operator<<
KRITAFLAKE_EXPORT QDebug operator<<(QDebug, const KoInsets &)
Definition
KoInsets.cpp:10
KoInsets
Definition
KoInsets.h:18
KoInsets::clear
void clear()
clears the insets so all sides are set to zero
Definition
KoInsets.h:42
KoInsets::bottom
qreal bottom
Bottom inset.
Definition
KoInsets.h:50
KoInsets::right
qreal right
Right inset.
Definition
KoInsets.h:52
KoInsets::KoInsets
KoInsets()
Definition
KoInsets.h:38
KoInsets::KoInsets
KoInsets(qreal top, qreal left, qreal bottom, qreal right)
Definition
KoInsets.h:27
KoInsets::top
qreal top
Top inset.
Definition
KoInsets.h:49
KoInsets::left
qreal left
Left inset.
Definition
KoInsets.h:51
libs
flake
KoInsets.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52