Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandxdgtopleveliconv1_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 David Reondo <kde@david-redondo.de>
2// Copyright (C) 2024 David Edmundson <davidedmundson@kde.org>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#pragma once
7
8#include "wayland-xdg-shell-client-protocol.h"
9#include <qwayland-xdg-toplevel-icon-v1.h>
10
11#include <QList>
12
14
15class QIcon;
16
17namespace QtWaylandClient {
18
19class QWaylandDisplay;
20
22{
23public:
24 QWaylandXdgToplevelIconManagerV1(QWaylandDisplay *display, wl_registry *registry, uint32_t id,
25 int version);
27 void setIcon(const QIcon &icon, ::xdg_toplevel *window);
28
29protected:
30 void xdg_toplevel_icon_manager_v1_icon_size(int32_t size) override;
32
33private:
34 QList<int> mPreferredSizes;
35 QWaylandDisplay *mDisplay;
36};
37
38} // namespace QtWaylandClient
39
40QT_END_NAMESPACE
void setIcon(const QIcon &icon, ::xdg_toplevel *window)
QWaylandXdgToplevelIconManagerV1(QWaylandDisplay *display, wl_registry *registry, uint32_t id, int version)
Combined button and popup list for selecting options.
static QtWayland::xdg_positioner::anchor anchorFromEdge(Qt::Edges edges)
static QtWayland::xdg_positioner::gravity gravityFromEdge(Qt::Edges edges)