Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
EditorRegistry.h File Reference

Classes

struct  DekiEditorInternal::EditorFactoryInfo
 Editor factory info for runtime creation. More...
class  DekiEditorInternal::EditorRegistry
 Internal registry for auto-registered editor extensions. More...
struct  DekiEditorInternal::EditorRegistrar< T >
 Auto-registration helper template (factory-based). More...

Namespaces

namespace  DekiEditorInternal

Macros

#define REGISTER_EDITOR(EditorClass)
 Macro for auto-registering editor extensions.

Macro Definition Documentation

◆ REGISTER_EDITOR

#define REGISTER_EDITOR ( EditorClass)
Value:
static DekiEditorInternal::EditorRegistrar<EditorClass> g_##EditorClass##_Registrar;
Auto-registration helper template (factory-based).
Definition EditorRegistry.h:110

Macro for auto-registering editor extensions.

Use this at the end of your editor class definition: REGISTER_EDITOR(MyComponentEditor) REGISTER_EDITOR(MyAssetTypeEditor)

Works for both CustomEditor and AssetTypeEditor subclasses. Now uses factory pattern to create fresh instances per-component.