10namespace hi::inline v1 {
12enum class callback_flags {
34[[nodiscard]]
constexpr callback_flags
operator|(callback_flags
const &lhs, callback_flags
const &rhs)
noexcept
36 hi_axiom((to_underlying(lhs) & 0xff) == 0 or (to_underlying(rhs) & 0xff) == 0);
37 return static_cast<callback_flags
>(to_underlying(lhs) | to_underlying(rhs));
40[[nodiscard]]
constexpr bool is_once(callback_flags
const &rhs)
noexcept
42 return to_bool(to_underlying(rhs) & to_underlying(callback_flags::once));
45[[nodiscard]]
constexpr bool is_synchronous(callback_flags
const& rhs)
noexcept
47 return to_bool((to_underlying(rhs) & 0xff) == to_underlying(callback_flags::synchronous));
50[[nodiscard]]
constexpr bool is_local(callback_flags
const& rhs)
noexcept
52 return to_bool((to_underlying(rhs) & 0xff) == to_underlying(callback_flags::local));
55[[nodiscard]]
constexpr bool is_main(callback_flags
const& rhs)
noexcept
57 return to_bool((to_underlying(rhs) & 0xff) == to_underlying(callback_flags::main));
60[[nodiscard]]
constexpr bool is_timer(callback_flags
const& rhs)
noexcept
62 return to_bool((to_underlying(rhs) & 0xff) == to_underlying(callback_flags::timer));
constexpr alignment operator|(horizontal_alignment lhs, vertical_alignment rhs) noexcept
Combine vertical and horizontal alignment.
Definition alignment.hpp:200