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

Classes

class  DekiEditor::EditorExtension
class  DekiEditor::AssetTypeEditor
class  DekiEditor::FileInspector
class  DekiEditor::CustomEditorRegistry
class  DekiEditor::AssetTypeEditorRegistry
class  DekiEditor::FileInspectorRegistry
struct  DekiEditor::CreateMenuEntry
 An item in the hierarchy's right-click "Create Object" menu, registered by a package. More...
class  DekiEditor::CreateMenuRegistry

Namespaces

namespace  Deki
namespace  DekiEditor

Macros

#define REGISTER_CREATE_MENU_ITEM(Id, Category, Display, ObjName, CompName)
 Adds a component to the hierarchy's "Create Object" menu at static init.

Enumerations

enum class  DekiEditor::EditorType { DekiEditor::CustomEditor , DekiEditor::AssetTypeEditor , DekiEditor::CliTool }

Macro Definition Documentation

◆ REGISTER_CREATE_MENU_ITEM

#define REGISTER_CREATE_MENU_ITEM ( Id,
Category,
Display,
ObjName,
CompName )
Value:
static struct CreateMenu##Id##Registrar \
{ \
CreateMenu##Id##Registrar() \
{ \
DekiEditor::CreateMenuRegistry::Instance().Register(Category, Display, ObjName, CompName); \
} \
} s_CreateMenu##Id##Registrar;

Adds a component to the hierarchy's "Create Object" menu at static init.

Id is a unique identifier (no quotes); the other arguments are the strings of CreateMenuEntry, in order. In a package's editor .cpp file: REGISTER_CREATE_MENU_ITEM(SpriteComponent, "2D", "Sprite", "Sprite", "SpriteComponent")