Lugdunum  0.1.0
Style.inl
Go to the documentation of this file.
1 inline Style operator|(const Style& lhs, const Style& rhs) {
2  return static_cast<Style>(static_cast<uint16_t>(lhs) | static_cast<uint16_t>(rhs));
3 }
4 
5 inline Style& operator|=(Style& lhs, const Style& rhs) {
6  return (lhs = static_cast<Style>(static_cast<uint16_t>(lhs) | static_cast<uint16_t>(rhs)));
7 }
8 
9 inline Style operator&(const Style& lhs, const Style& rhs) {
10  return static_cast<Style>(static_cast<uint16_t>(lhs) & static_cast<uint16_t>(rhs));
11 }
12 
13 inline Style& operator&=(Style& lhs, const Style& rhs) {
14  return (lhs = static_cast<Style>(static_cast<uint16_t>(lhs) & static_cast<uint16_t>(rhs)));
15 }
16 
17 inline Style operator^(const Style& lhs, const Style& rhs) {
18  return static_cast<Style>(static_cast<uint16_t>(lhs) ^ static_cast<uint16_t>(rhs));
19 }
20 
21 inline Style& operator^=(Style& lhs, const Style& rhs) {
22  return (lhs = static_cast<Style>(static_cast<uint16_t>(lhs) ^ static_cast<uint16_t>(rhs)));
23 }
Style operator &(const Style &lhs, const Style &rhs)
Definition: Style.inl:9
Style operator^(const Style &lhs, const Style &rhs)
Definition: Style.inl:17
Style operator|(const Style &lhs, const Style &rhs)
Definition: Style.inl:1
Style & operator &=(Style &lhs, const Style &rhs)
Definition: Style.inl:13
Style & operator|=(Style &lhs, const Style &rhs)
Definition: Style.inl:5
Style & operator^=(Style &lhs, const Style &rhs)
Definition: Style.inl:21