mirror of
https://github.com/hyprwm/Hyprland
synced 2026-01-03 00:50:08 +01:00
Reworks the window rule syntax completely --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
24 lines
No EOL
707 B
C++
24 lines
No EOL
707 B
C++
#pragma once
|
|
|
|
#include "Rule.hpp"
|
|
|
|
namespace Desktop::Rule {
|
|
class CRuleEngine {
|
|
public:
|
|
CRuleEngine() = default;
|
|
~CRuleEngine() = default;
|
|
|
|
void registerRule(SP<IRule>&& rule);
|
|
void unregisterRule(const std::string& name);
|
|
void unregisterRule(const SP<IRule>& rule);
|
|
void updateAllRules();
|
|
void cleanExecRules();
|
|
void clearAllRules();
|
|
const std::vector<SP<IRule>>& rules();
|
|
|
|
private:
|
|
std::vector<SP<IRule>> m_rules;
|
|
};
|
|
|
|
SP<CRuleEngine> ruleEngine();
|
|
} |