App-to-zone auto-snap rule. More...
#include <phosphor-zones/include/PhosphorZones/Layout.h>
Public Member Functions | |
| bool | operator== (const AppRule &other) const =default |
| QJsonObject | toJson () const |
Static Public Member Functions | |
| static AppRule | fromJson (const QJsonObject &obj) |
| static QVector< AppRule > | fromJsonArray (const QJsonArray &array) |
Public Attributes | |
| QString | pattern |
| int | zoneNumber = 0 |
| QString | targetScreen |
App-to-zone auto-snap rule.
Maps a window class pattern to a zone number within a layout. Patterns are case-insensitive substring matches against the window class.
|
static |
|
static |
|
default |
| QJsonObject PhosphorZones::AppRule::toJson | ( | ) | const |
| QString PhosphorZones::AppRule::pattern |
| QString PhosphorZones::AppRule::targetScreen |
| int PhosphorZones::AppRule::zoneNumber = 0 |