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

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< AppRulefromJsonArray (const QJsonArray &array)
 

Public Attributes

QString pattern
 
int zoneNumber = 0
 
QString targetScreen
 

Detailed Description

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.

Member Function Documentation

◆ fromJson()

static AppRule PhosphorZones::AppRule::fromJson ( const QJsonObject &  obj)
static

◆ fromJsonArray()

static QVector< AppRule > PhosphorZones::AppRule::fromJsonArray ( const QJsonArray &  array)
static

◆ operator==()

bool PhosphorZones::AppRule::operator== ( const AppRule other) const
default

◆ toJson()

QJsonObject PhosphorZones::AppRule::toJson ( ) const

Member Data Documentation

◆ pattern

QString PhosphorZones::AppRule::pattern

◆ targetScreen

QString PhosphorZones::AppRule::targetScreen

◆ zoneNumber

int PhosphorZones::AppRule::zoneNumber = 0

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