7#include "../utility/utility.hpp"
8#include "../macros.hpp"
11hi_export_module(hikogui.GUI : keyboard_state);
13hi_export
namespace hi::inline
v1 {
15enum class keyboard_state : uint8_t {
22[[nodiscard]]
constexpr keyboard_state operator|(keyboard_state
const& lhs, keyboard_state
const& rhs)
noexcept
24 return static_cast<keyboard_state
>(std::to_underlying(lhs) | std::to_underlying(rhs));
27[[nodiscard]]
constexpr keyboard_state operator&(keyboard_state
const& lhs, keyboard_state
const& rhs)
noexcept
29 return static_cast<keyboard_state
>(std::to_underlying(lhs) & std::to_underlying(rhs));
32constexpr keyboard_state& operator|=(keyboard_state& lhs, keyboard_state
const& rhs)
noexcept
34 return lhs = lhs | rhs;
37bool operator>=(keyboard_state
const& lhs, keyboard_state
const& rhs) =
delete;
39[[nodiscard]]
constexpr bool to_bool(keyboard_state
const& rhs)
noexcept
41 return to_bool(std::to_underlying(rhs));
DOXYGEN BUG.
Definition algorithm_misc.hpp:20