Skip to content
Phosphor
/
API Reference
Search
PlasmaZones
Libraries
Guides
Brand
Palette
About
GitHub
Discord
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
6
#include <
PhosphorZones/LayoutComputeTypes.h
>
7
#include "phosphorzones_export.h"
8
#include <QObject>
9
10
namespace
PhosphorZones
{
11
12
class
PHOSPHORZONES_EXPORT
LayoutWorker
:
public
QObject
13
{
14
Q_OBJECT
15
16
public
:
17
explicit
LayoutWorker
(QObject* parent =
nullptr
);
18
22
static
LayoutComputeResult
compute
(
const
LayoutSnapshot
& snapshot, uint64_t generation);
23
24
public
Q_SLOTS:
25
void
computeGeometries
(
const
PhosphorZones::LayoutSnapshot
& snapshot, uint64_t generation);
26
27
Q_SIGNALS:
28
void
geometriesReady
(
const
PhosphorZones::LayoutComputeResult
& result);
29
};
30
31
}
// namespace PhosphorZones
LayoutComputeTypes.h
PhosphorZones::LayoutWorker::LayoutWorker
LayoutWorker(QObject *parent=nullptr)
PhosphorZones::LayoutWorker::compute
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...
PhosphorZones::LayoutWorker::computeGeometries
void computeGeometries(const PhosphorZones::LayoutSnapshot &snapshot, uint64_t generation)
PhosphorZones::LayoutWorker::geometriesReady
void geometriesReady(const PhosphorZones::LayoutComputeResult &result)
PhosphorZones
Definition
IWindowTrackingService.h:24
PhosphorZones::LayoutComputeResult
Definition
LayoutComputeTypes.h:53
PhosphorZones::LayoutSnapshot
Definition
LayoutComputeTypes.h:27
phosphor-zones
include
PhosphorZones
LayoutWorker.h
Generated by
1.15.0