Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
LayoutWorker.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
7#include "phosphorzones_export.h"
8#include <QObject>
9
10namespace PhosphorZones {
11
12class PHOSPHORZONES_EXPORT LayoutWorker : public QObject
13{
14 Q_OBJECT
15
16public:
17 explicit LayoutWorker(QObject* parent = nullptr);
18
22 static LayoutComputeResult compute(const LayoutSnapshot& snapshot, uint64_t generation);
23
24public Q_SLOTS:
25 void computeGeometries(const PhosphorZones::LayoutSnapshot& snapshot, uint64_t generation);
26
27Q_SIGNALS:
29};
30
31} // namespace PhosphorZones
LayoutWorker(QObject *parent=nullptr)
static LayoutComputeResult compute(const LayoutSnapshot &snapshot, uint64_t generation)
The computation computeGeometries runs, as a pure function of the snapshot, so the GUI thread can run...
void computeGeometries(const PhosphorZones::LayoutSnapshot &snapshot, uint64_t generation)
void geometriesReady(const PhosphorZones::LayoutComputeResult &result)
Definition IWindowTrackingService.h:24
Definition LayoutComputeTypes.h:53
Definition LayoutComputeTypes.h:27