Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorZones::LayoutWorker Class Reference

#include <PhosphorZones/LayoutWorker.h>

Inheritance diagram for PhosphorZones::LayoutWorker:
[legend]

Public Slots

void computeGeometries (const PhosphorZones::LayoutSnapshot &snapshot, uint64_t generation)

Signals

void geometriesReady (const PhosphorZones::LayoutComputeResult &result)

Public Member Functions

 LayoutWorker (QObject *parent=nullptr)

Static Public Member Functions

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 the same one in place when a result arrives computed from inputs the layout no longer holds.

Constructor & Destructor Documentation

◆ LayoutWorker()

PhosphorZones::LayoutWorker::LayoutWorker ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ compute()

LayoutComputeResult PhosphorZones::LayoutWorker::compute ( const LayoutSnapshot & snapshot,
uint64_t generation )
static

The computation computeGeometries runs, as a pure function of the snapshot, so the GUI thread can run the same one in place when a result arrives computed from inputs the layout no longer holds.

◆ computeGeometries

void PhosphorZones::LayoutWorker::computeGeometries ( const PhosphorZones::LayoutSnapshot & snapshot,
uint64_t generation )
slot

◆ geometriesReady

void PhosphorZones::LayoutWorker::geometriesReady ( const PhosphorZones::LayoutComputeResult & result)
signal

The documentation for this class was generated from the following file: