docs
Loading...
Searching...
No Matches
ultralight::BitmaskEnum

Whether or not a scoped enum has opted into the bitmask operators below by declaring consteval void ul_enable_bitmask_operators(E); beside its definition (found by argument-dependent lookup). More...

#include <AppCore/Defines.h>

Concept definition

template<typename T>
concept BitmaskEnum = std::is_enum_v<T> && requires(T e) { ul_enable_bitmask_operators(e); }
Whether or not a scoped enum has opted into the bitmask operators below by declaring consteval void u...
Definition Defines.h:70

Detailed Description

Whether or not a scoped enum has opted into the bitmask operators below by declaring consteval void ul_enable_bitmask_operators(E); beside its definition (found by argument-dependent lookup).

WindowFlags and WindowButtons opt in, so their values combine naturally:

auto window = Window::Create(monitor, 1024, 768, false,
static RefPtr< Window > Create(Monitor *monitor, double width, double height, bool fullscreen, WindowFlags window_flags)
Create a new Window.
@ Resizable
The user can resize the window by dragging its edges.
Definition Window.h:339
@ Titled
A title bar.
Definition Window.h:338