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

Pre-parsed activation trigger (avoids QVariant unboxing in hot path) More...

#include <phosphor-compositor/include/PhosphorCompositor/TriggerParser.h>

Public Member Functions

bool operator== (const ParsedTrigger &other) const =default
 Value equality, so a consumer caching a parsed list can tell a real settings change from a re-publish of the same one.
 

Public Attributes

int modifier = 0
 
int mouseButton = 0
 

Detailed Description

Pre-parsed activation trigger (avoids QVariant unboxing in hot path)

Each trigger has a modifier (enum value) and optional mouseButton bitmask. Parsed once from the QVariantList received via D-Bus.

Member Function Documentation

◆ operator==()

bool PhosphorCompositor::ParsedTrigger::operator== ( const ParsedTrigger other) const
default

Value equality, so a consumer caching a parsed list can tell a real settings change from a re-publish of the same one.

Member Data Documentation

◆ modifier

int PhosphorCompositor::ParsedTrigger::modifier = 0

◆ mouseButton

int PhosphorCompositor::ParsedTrigger::mouseButton = 0

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