Xlib input text-case handling

This commit is contained in:
Jack Andersen
2015-12-22 20:10:46 -10:00
parent fd01dbb17a
commit 1ed592e0a1
2 changed files with 15 additions and 29 deletions

View File

@@ -100,31 +100,7 @@ enum class EModifierKey
Shift = 1<<3,
Command = 1<<4
};
inline EModifierKey operator|(EModifierKey a, EModifierKey b)
{
using T = std::underlying_type_t<EModifierKey>;
return EModifierKey(static_cast<T>(a) | static_cast<T>(b));
}
inline EModifierKey operator&(EModifierKey a, EModifierKey b)
{
using T = std::underlying_type_t<EModifierKey>;
return EModifierKey(static_cast<T>(a) & static_cast<T>(b));
}
inline EModifierKey& operator|=(EModifierKey& a, const EModifierKey& b)
{
using T = std::underlying_type_t<EModifierKey>;
a = EModifierKey(static_cast<T>(a) | static_cast<T>(b));
return a;
}
inline EModifierKey operator~(const EModifierKey& key)
{
using T = std::underlying_type_t<EModifierKey>;
return EModifierKey(~static_cast<T>(key));
}
ENABLE_BITWISE_ENUM(EModifierKey)
class IWindowCallback
{