|
|
|
@ -1429,11 +1429,11 @@ IMGUI_API void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned ch |
|
|
|
|
// Test engine hooks (imgui-test)
|
|
|
|
|
//#define IMGUI_ENABLE_TEST_ENGINE
|
|
|
|
|
#ifdef IMGUI_ENABLE_TEST_ENGINE |
|
|
|
|
extern void ImGuiTestEngineHook_PreNewFrame(); |
|
|
|
|
extern void ImGuiTestEngineHook_PostNewFrame(); |
|
|
|
|
extern void ImGuiTestEngineHook_ItemAdd(const ImRect& bb, ImGuiID id); |
|
|
|
|
extern void ImGuiTestEngineHook_ItemInfo(ImGuiID id, const char* label, int flags); |
|
|
|
|
#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID, _LABEL, _FLAGS) ImGuiTestEngineHook_ItemInfo(_ID, _LABEL, _FLAGS) // Register status flags
|
|
|
|
|
extern void ImGuiTestEngineHook_PreNewFrame(ImGuiContext* ctx); |
|
|
|
|
extern void ImGuiTestEngineHook_PostNewFrame(ImGuiContext* ctx); |
|
|
|
|
extern void ImGuiTestEngineHook_ItemAdd(ImGuiContext* ctx, const ImRect& bb, ImGuiID id); |
|
|
|
|
extern void ImGuiTestEngineHook_ItemInfo(ImGuiContext* ctx, ImGuiID id, const char* label, int flags); |
|
|
|
|
#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID, _LABEL, _FLAGS) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register status flags
|
|
|
|
|
#else |
|
|
|
|
#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID, _LABEL, _FLAGS) do { } while (0) |
|
|
|
|
#endif |
|
|
|
|