Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
RuleAction.h File Reference
#include <QLatin1StringView>
#include <QHash>
#include <QJsonObject>
#include <QString>
#include <QStringList>
#include <functional>
#include <optional>
#include "phosphorrules_export.h"
#include "ActionParams.h"
#include "ActionSlots.h"
#include "ActionTypes.h"

Go to the source code of this file.

Classes

struct  PhosphorRules::RuleAction
 One action carried by a Rule. More...
struct  PhosphorRules::ParamSchema
 Structural schema for one action param. More...
struct  PhosphorRules::ActionDescriptor
 Static metadata describing one registered action type. More...
class  PhosphorRules::ActionRegistry
 Process-wide registry of action descriptors. More...

Namespaces

namespace  PhosphorRules
namespace  PhosphorRules::Tag

Enumerations

enum class  PhosphorRules::ActionDomain : int { PhosphorRules::Context = 0 , PhosphorRules::Window = 1 }
 Which evaluation pass an action contributes to. More...

Functions

PHOSPHORRULES_EXPORT bool PhosphorRules::ruleHasLiveEffectAction (const QList< RuleAction > &actions, const std::function< bool(const QString &event)> &eventIsLive)
 True when actions carry at least one Tag::Effect action that can actually take effect, delegating the event verdict to eventIsLive.

Variables

constexpr QLatin1StringView PhosphorRules::Tag::Effect {"effect"}
 Actions consumed by the KWin effect's rule set (shader manager + border appearance + window stacking layer).
constexpr QLatin1StringView PhosphorRules::Tag::EffectVerdict {"effectVerdict"}
 Effect-consumed one-shot verdicts that are NOT appearance overrides and must not be cancelled by ExcludeAnimations.
constexpr QLatin1StringView PhosphorRules::Tag::Border {"border"}
constexpr QLatin1StringView PhosphorRules::Tag::Animation {"animation"}
constexpr QLatin1StringView PhosphorRules::Tag::LayoutEngine {"layoutEngine"}
constexpr QLatin1StringView PhosphorRules::Tag::Gap {"gap"}
constexpr QLatin1StringView PhosphorRules::Tag::Overlay {"overlay"}
 Context-domain overlay-property overrides (overlay shader / style).