DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
EditorExtension.h File Reference

Classes

class  DekiEditor::AssetTypeEditor
 An asset type a package adds: its file extensions, compile step and inspector UI. More...
class  DekiEditor::AssetTypeEditorRegistry
 The registered AssetTypeEditors, looked up by type name. More...
struct  DekiEditor::CreateMenuEntry
 An item in the hierarchy's right-click "Create Object" menu, registered by a package. More...
class  DekiEditor::CreateMenuRegistry
 The items packages add to the hierarchy's "Create Object" menu. More...
class  DekiEditor::CustomEditorRegistry
 Creates and caches the CustomEditor for each component. More...
class  DekiEditor::EditorExtension
 Base class of what packages add to the editor: custom editors, asset types, tools. More...
class  DekiEditor::FileInspector
 Inspector for a native file type such as .ttf or .png. More...
class  DekiEditor::FileInspectorRegistry
 The registered FileInspectors, looked up by file extension. More...

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")