blob: 1b3fce14219897c3c12f6d1a50ed4722da483d93 (
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 "MonitorRule.hpp"
namespace Config {
class CMonitorRuleParser {
public:
CMonitorRuleParser(const std::string& name);
const std::string& name();
CMonitorRule& rule();
std::optional<std::string> getError();
bool parseMode(const std::string& value);
bool parsePosition(const std::string& value, bool isFirst = false);
bool parseScale(const std::string& value);
bool parseTransform(const std::string& value);
bool parseBitdepth(const std::string& value);
bool parseCM(const std::string& value);
bool parseSDRBrightness(const std::string& value);
bool parseSDRSaturation(const std::string& value);
bool parseVRR(const std::string& value);
bool parseICC(const std::string& value);
void setDisabled();
void setMirror(const std::string& value);
bool setReserved(const Desktop::CReservedArea& value);
private:
CMonitorRule m_rule;
std::string m_error = "";
};
};
|