opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
toggleable_panel_flags.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <utility>
5
6namespace osc
7{
8 // flags for the panel (affects things like when it is initialized, whether the user
9 // will be presented with the option to toggle it, etc.)
11 None = 0u,
12 IsEnabledByDefault = 1u<<0u,
13 IsSpawnable = 1u<<1u, // ignores IsEnabledByDefault
14
16 };
17
22
24 {
25 return std::to_underlying(lhs) & std::to_underlying(rhs);
26 }
27}
Definition custom_decoration_generator.h:5
constexpr bool operator&(ToggleablePanelFlags lhs, ToggleablePanelFlags rhs)
Definition toggleable_panel_flags.h:23
constexpr auto to_underlying(const Flags< TEnum > &e) noexcept
Definition flags.h:116
ToggleablePanelFlags
Definition toggleable_panel_flags.h:10
constexpr U to(T &&value)
Definition conversion.h:56
constexpr std::common_type_t< Angle< Rep1, Units1 >, Angle< Rep2, Units2 > > operator-(const Angle< Rep1, Units1 > &lhs, const Angle< Rep2, Units2 > &rhs)
Definition angle.h:114