Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
platformstyle.h
Go to the documentation of this file.
1// Copyright (c) 2015 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 */
14public:
16 static const PlatformStyle *instantiate(const QString &platformId);
17
18 const QString &getName() const { return name; }
19
20 bool getImagesOnButtons() const { return imagesOnButtons; }
21 bool getUseExtraSpacing() const { return useExtraSpacing; }
22
23 QColor TextColor() const { return textColor; }
24 QColor SingleColor() const { return singleColor; }
25
27 QImage SingleColorImage(const QString &filename) const;
28
30 QIcon SingleColorIcon(const QString &filename) const;
31
33 QIcon SingleColorIcon(const QIcon &icon) const;
34
36 QIcon TextColorIcon(const QIcon &icon) const;
37
38private:
40 bool useExtraSpacing);
41
48 /* ... more to come later */
49};
50
51#endif // BITCOIN_QT_PLATFORMSTYLE_H
const QString & getName() const
QIcon SingleColorIcon(const QString &filename) const
Colorize an icon (given filename) with the icon color.
bool getUseExtraSpacing() const
QColor SingleColor() const
bool getImagesOnButtons() const
static const PlatformStyle * instantiate(const QString &platformId)
Get style associated with provided platform name, or 0 if not known.
QColor TextColor() const
QImage SingleColorImage(const QString &filename) const
Colorize an image (given filename) with the icon color.
QIcon TextColorIcon(const QIcon &icon) const
Colorize an icon (given object) with the text color.
const char * platformId
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85