DtkGui
DTK Gui module
载入中...
搜索中...
未找到
dtreelandplatforminterface.h
1// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DTREELANDPLATFORMINTERFACE_H
6#define DTREELANDPLATFORMINTERFACE_H
7
8#include "private/dplatforminterface_p.h"
9
10#include <QHash>
11#include <QQueue>
12#include <DObject>
13
14DGUI_BEGIN_NAMESPACE
15
16class DTreelandPlatformInterfacePrivate;
17class TreelandAppearance;
18
19class DTreelandPlatformInterface : public QObject, public DPlatformInterface, public DCORE_NAMESPACE::DObject
20{
21 Q_OBJECT
22 friend TreelandAppearance;
23public:
24 explicit DTreelandPlatformInterface(DPlatformTheme *platformTheme);
26
27 QByteArray iconThemeName() const override;
28 QByteArray fontName() const override;
29 QByteArray monoFontName() const override;
30 qreal fontPointSize() const override;
31 QColor activeColor() const override;
32 QColor darkActiveColor() const override;
33 QByteArray themeName() const override;
34
35 int windowRadius() const override;
36 int windowRadius(int defaultValue = 12) const override;
37
38 void setWindowRadius(int windowRadius) override;
39
40 void setIconThemeName(const QByteArray &iconThemeName) override;
41 void setFontName(const QByteArray &fontName) override;
42 void setMonoFontName(const QByteArray &monoFontName) override;
43 void setFontPointSize(qreal fontPointSize) override;
44 void setActiveColor(const QColor activeColor) override;
45
46private:
47 QColor m_activeColor;
48 int m_titleHeight;
49 QByteArray m_fontName;
50 QByteArray m_monoFontName;
51 QByteArray m_iconThemeName;
52 QByteArray m_cursorThemeName;
53 qreal m_fontPointSize;
54 int m_windowRadius;
55 int m_scrollBarPolicy;
56 QByteArray m_themeName;
57 qreal m_blurOpacity;
58};
59
60DGUI_END_NAMESPACE
61#endif
Definition dplatforminterface_p.h:18
一个提供窗口主题的类.
Definition dplatformtheme.h:18
Definition dtreelandplatforminterface.h:20
Definition treelandappearanceclientextension.h:22