1 | /* |
2 | SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org> |
3 | |
4 | SPDX-License-Identifier: MIT |
5 | */ |
6 | |
7 | #ifndef KSYNTAXHIGHLIGHTING_TEXTSTYLEDATA_P_H |
8 | #define KSYNTAXHIGHLIGHTING_TEXTSTYLEDATA_P_H |
9 | |
10 | #include <QColor> |
11 | |
12 | namespace KSyntaxHighlighting |
13 | { |
14 | class TextStyleData |
15 | { |
16 | public: |
17 | // Constructor initializing all data. |
18 | TextStyleData() noexcept |
19 | : bold(false) |
20 | , italic(false) |
21 | , underline(false) |
22 | , strikeThrough(false) |
23 | , hasBold(false) |
24 | , hasItalic(false) |
25 | , hasUnderline(false) |
26 | , hasStrikeThrough(false) |
27 | { |
28 | } |
29 | |
30 | QRgb textColor = 0x0; |
31 | QRgb backgroundColor = 0x0; |
32 | QRgb selectedTextColor = 0x0; |
33 | QRgb selectedBackgroundColor = 0x0; |
34 | bool bold : 1; |
35 | bool italic : 1; |
36 | bool underline : 1; |
37 | bool strikeThrough : 1; |
38 | |
39 | bool hasBold : 1; |
40 | bool hasItalic : 1; |
41 | bool hasUnderline : 1; |
42 | bool hasStrikeThrough : 1; |
43 | }; |
44 | |
45 | } |
46 | |
47 | #endif |
48 | |