DtkGui
DTK Gui module
载入中...
搜索中...
未找到
treelandappearanceclientextension.h
1// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef TREELANDAPPEARANCECLIENTEXTENSION_H
6#define TREELANDAPPEARANCECLIENTEXTENSION_H
7
8#include "dtreelandplatforminterface.h"
9#include "qwayland-treeland-appearance-unstable-v1.h"
10
11#include <dtkgui_global.h>
12
13#include <QtWaylandClient/QWaylandClientExtension>
14#include <QWaylandClientExtensionTemplate>
15
16DGUI_BEGIN_NAMESPACE
17
18class DTreelandPlatformInterfacePrivate;
19
20class TreelandAppearance : public QWaylandClientExtensionTemplate<TreelandAppearance>,
21 public QtWayland::treeland_appearance_v1
22{
23 Q_OBJECT
24public:
26 ~TreelandAppearance() override;
27
28protected:
29 void treeland_appearance_v1_cursor_theme(const QString &name) override;
30 void treeland_appearance_v1_cursor_size(uint32_t width, uint32_t height) override;
31 void treeland_appearance_v1_font(const QString &font_name) override;
32 void treeland_appearance_v1_monospace_font(const QString &font_name) override;
33 void treeland_appearance_v1_font_size(uint32_t size) override;
34 void treeland_appearance_v1_icon_theme(const QString &theme_name) override;
35 void treeland_appearance_v1_accent_color(uint32_t r, uint32_t g, uint32_t b) override;
36 void treeland_appearance_v1_window_opacity(wl_fixed_t opacity) override;
37 void treeland_appearance_v1_color_scheme(uint32_t scheme) override;
38 void treeland_appearance_v1_titlebar_height(uint32_t height) override;
39 void treeland_appearance_v1_corner_radius(uint32_t radius) override;
40
41private:
42 DTreelandPlatformInterface *m_interface;
43};
44
45DGUI_END_NAMESPACE
46
47#endif // TREELANDAPPEARANCECLIENTEXTENSION_H
Definition dtreelandplatforminterface.h:20
Definition treelandappearanceclientextension.h:22