Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
SinglePixelBuffer.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <phosphorwayland_export.h>
7
8#include <QColor>
9#include <QObject>
10
11#include <memory>
12
13QT_BEGIN_NAMESPACE
14class QWindow;
15QT_END_NAMESPACE
16
17namespace PhosphorWayland {
18
19class PHOSPHORWAYLAND_EXPORT SinglePixelBuffer : public QObject
20{
21 Q_OBJECT
22 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
23
24public:
25 explicit SinglePixelBuffer(const QColor& color, QObject* parent = nullptr);
27
28 QColor color() const;
29 void setColor(const QColor& color);
30
31 bool attachTo(QWindow* window);
32
33 static bool isSupported();
34
35Q_SIGNALS:
37
38private:
39 class Private;
40 std::unique_ptr<Private> d;
41};
42
43} // namespace PhosphorWayland
Definition SinglePixelBuffer.h:20
SinglePixelBuffer(const QColor &color, QObject *parent=nullptr)
void setColor(const QColor &color)
bool attachTo(QWindow *window)
Definition CompositorLost.h:11