1#ifndef YAZE_APP_EDITOR_REGISTRY_PANEL_REGISTRATION_H_
2#define YAZE_APP_EDITOR_REGISTRY_PANEL_REGISTRATION_H_
39#define REGISTER_PANEL(PanelClass) \
41 struct PanelRegistrar_##PanelClass { \
42 PanelRegistrar_##PanelClass() { \
43 ::yaze::editor::ContentRegistry::Panels::add<PanelClass>(); \
46 [[maybe_unused]] static PanelRegistrar_##PanelClass \
47 s_panel_registrar_##PanelClass; \
66#define REGISTER_PANEL_FACTORY(PanelClass, FactoryFunc) \
68 struct PanelRegistrar_##PanelClass { \
69 PanelRegistrar_##PanelClass() { \
70 ::yaze::editor::ContentRegistry::Panels::RegisterFactory(FactoryFunc); \
73 [[maybe_unused]] static PanelRegistrar_##PanelClass \
74 s_panel_registrar_##PanelClass; \
78#define REGISTER_WINDOW_CONTENT REGISTER_PANEL
80#define REGISTER_WINDOW_CONTENT_FACTORY REGISTER_PANEL_FACTORY
Editors are the view controllers for the application.