3#include "di/reflect/field.h"
4#include "di/reflect/prelude.h"
12 constexpr explicit FocusEvent(
bool gained_focus) : m_gained_focus(gained_focus) {}
20 constexpr friend auto tag_invoke(di::Tag<di::reflect>, di::InPlaceType<FocusEvent>) {
21 return di::make_fields<
"FocusEvent">(di::field<
"gained_focus", &FocusEvent::m_gained_focus>);
24 bool m_gained_focus {
false };
constexpr friend auto tag_invoke(di::Tag< di::reflect >, di::InPlaceType< FocusEvent >)
Definition focus_event.h:20
auto operator==(FocusEvent const &) const -> bool=default
static constexpr auto focus_out() -> FocusEvent
Definition focus_event.h:10
static constexpr auto focus_in() -> FocusEvent
Definition focus_event.h:9
constexpr auto is_focus_out() const
Definition focus_event.h:15
constexpr auto is_focus_in() const
Definition focus_event.h:14
constexpr FocusEvent(bool gained_focus)
Definition focus_event.h:12
Definition cursor_style.h:5