summaryrefslogtreecommitdiff
path: root/src/desktop/LayerRule.hpp
blob: 0463196e2ef37735b650495a21174b6709a38646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once

#include <string>
#include <cstdint>
#include "Rule.hpp"

class CLayerRule {
  public:
    CLayerRule(const std::string& rule, const std::string& targetNS);

    enum eRuleType : uint8_t {
        RULE_INVALID = 0,
        RULE_NOANIM,
        RULE_BLUR,
        RULE_BLURPOPUPS,
        RULE_DIMAROUND,
        RULE_ABOVELOCK,
        RULE_IGNOREALPHA,
        RULE_IGNOREZERO,
        RULE_XRAY,
        RULE_ANIMATION,
        RULE_ORDER,
        RULE_ZUMBA,
    };

    eRuleType           m_ruleType = RULE_INVALID;

    const std::string   m_targetNamespace;
    const std::string   m_rule;

    CRuleRegexContainer m_targetNamespaceRegex;
};