DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
EditorRegistry.h File Reference

Classes

struct  DekiEditorInternal::EditorFactoryInfo
 How to make one kind of editor extension. More...
class  DekiEditorInternal::EditorRegistry
 Collects the editor factories that static initializers register when a DLL loads. More...
struct  DekiEditorInternal::EditorRegistrar< T >
 Registers editor class T at static init: a static prototype for metadata, and a factory that makes new instances on demand. More...

Namespaces

namespace  DekiEditorInternal

Macros

#define REGISTER_EDITOR(EditorClass)
 Registers an editor extension (CustomEditor, AssetTypeEditor, ...).

Macro Definition Documentation

◆ REGISTER_EDITOR

#define REGISTER_EDITOR ( EditorClass)
Value:
static DekiEditorInternal::EditorRegistrar<EditorClass> s_##EditorClass##Registrar;
Registers editor class T at static init: a static prototype for metadata, and a factory that makes ne...
Definition EditorRegistry.h:79

Registers an editor extension (CustomEditor, AssetTypeEditor, ...).

Put it after the class definition: REGISTER_EDITOR(MyComponentEditor) REGISTER_EDITOR(MyAssetTypeEditor)