Bitcoin Core
0.21.1
P2P Digital Currency
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
src
qt
platformstyle.h
Go to the documentation of this file.
1
// Copyright (c) 2015-2019 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_QT_PLATFORMSTYLE_H
6
#define BITCOIN_QT_PLATFORMSTYLE_H
7
8
#include <QIcon>
9
#include <QPixmap>
10
#include <QString>
11
12
/* Coin network-specific GUI style information */
13
class
PlatformStyle
14
{
15
public
:
17
static
const
PlatformStyle
*
instantiate
(
const
QString &
platformId
);
18
19
const
QString &
getName
()
const
{
return
name
; }
20
21
bool
getImagesOnButtons
()
const
{
return
imagesOnButtons
; }
22
bool
getUseExtraSpacing
()
const
{
return
useExtraSpacing
; }
23
24
QColor
TextColor
()
const
{
return
textColor
; }
25
QColor
SingleColor
()
const
{
return
singleColor
; }
26
28
QImage
SingleColorImage
(
const
QString& filename)
const
;
29
31
QIcon
SingleColorIcon
(
const
QString& filename)
const
;
32
34
QIcon
SingleColorIcon
(
const
QIcon& icon)
const
;
35
37
QIcon
TextColorIcon
(
const
QIcon& icon)
const
;
38
39
private
:
40
PlatformStyle
(
const
QString &
name
,
bool
imagesOnButtons
,
bool
colorizeIcons
,
bool
useExtraSpacing
);
41
42
QString
name
;
43
bool
imagesOnButtons
;
44
bool
colorizeIcons
;
45
bool
useExtraSpacing
;
46
QColor
singleColor
;
47
QColor
textColor
;
48
/* ... more to come later */
49
};
50
51
#endif // BITCOIN_QT_PLATFORMSTYLE_H
52
PlatformStyle::TextColor
QColor TextColor() const
Definition:
platformstyle.h:24
PlatformStyle::PlatformStyle
PlatformStyle(const QString &name, bool imagesOnButtons, bool colorizeIcons, bool useExtraSpacing)
Definition:
platformstyle.cpp:71
PlatformStyle::singleColor
QColor singleColor
Definition:
platformstyle.h:46
PlatformStyle::SingleColorIcon
QIcon SingleColorIcon(const QString &filename) const
Colorize an icon (given filename) with the icon color.
Definition:
platformstyle.cpp:103
PlatformStyle::name
QString name
Definition:
platformstyle.h:42
PlatformStyle::colorizeIcons
bool colorizeIcons
Definition:
platformstyle.h:44
PlatformStyle::TextColorIcon
QIcon TextColorIcon(const QIcon &icon) const
Colorize an icon (given object) with the text color.
Definition:
platformstyle.cpp:117
PlatformStyle::getName
const QString & getName() const
Definition:
platformstyle.h:19
PlatformStyle::SingleColor
QColor SingleColor() const
Definition:
platformstyle.h:25
PlatformStyle::textColor
QColor textColor
Definition:
platformstyle.h:47
PlatformStyle::instantiate
static const PlatformStyle * instantiate(const QString &platformId)
Get style associated with provided platform name, or 0 if not known.
Definition:
platformstyle.cpp:122
PlatformStyle::imagesOnButtons
bool imagesOnButtons
Definition:
platformstyle.h:43
PlatformStyle::useExtraSpacing
bool useExtraSpacing
Definition:
platformstyle.h:45
PlatformStyle::getImagesOnButtons
bool getImagesOnButtons() const
Definition:
platformstyle.h:21
PlatformStyle::getUseExtraSpacing
bool getUseExtraSpacing() const
Definition:
platformstyle.h:22
PlatformStyle::SingleColorImage
QImage SingleColorImage(const QString &filename) const
Colorize an image (given filename) with the icon color.
Definition:
platformstyle.cpp:96
PlatformStyle
Definition:
platformstyle.h:13
platformId
const char * platformId
Definition:
platformstyle.cpp:13
Generated on Fri Apr 30 2021 13:53:42 for Bitcoin Core by
1.8.8