mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Forward declare struct in imgui.cpp. Removed two forward declarations leaking in imgui.h
This commit is contained in:
parent
ede45389f4
commit
849c72c5c3
@ -409,7 +409,14 @@ using namespace IMGUI_STB_NAMESPACE;
|
|||||||
// Forward Declarations
|
// Forward Declarations
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
struct ImGuiColMod;
|
||||||
|
struct ImGuiStyleMod;
|
||||||
struct ImGuiAabb;
|
struct ImGuiAabb;
|
||||||
|
struct ImGuiDrawContext;
|
||||||
|
struct ImGuiTextEditState;
|
||||||
|
struct ImGuiIniData;
|
||||||
|
struct ImGuiState;
|
||||||
|
struct ImGuiWindow;
|
||||||
|
|
||||||
static bool ButtonBehaviour(const ImGuiAabb& bb, const ImGuiID& id, bool* out_hovered, bool* out_held, bool allow_key_modifiers, bool repeat = false, bool pressed_on_click = false);
|
static bool ButtonBehaviour(const ImGuiAabb& bb, const ImGuiID& id, bool* out_hovered, bool* out_held, bool allow_key_modifiers, bool repeat = false, bool pressed_on_click = false);
|
||||||
static void LogText(const ImVec2& ref_pos, const char* text, const char* text_end = NULL);
|
static void LogText(const ImVec2& ref_pos, const char* text, const char* text_end = NULL);
|
||||||
|
21
imgui.h
21
imgui.h
@ -6,17 +6,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
struct ImDrawCmd;
|
#include "imconfig.h" // User-editable configuration file
|
||||||
struct ImDrawList;
|
|
||||||
struct ImFont;
|
|
||||||
struct ImFontAtlas;
|
|
||||||
struct ImGuiAabb;
|
|
||||||
struct ImGuiIO;
|
|
||||||
struct ImGuiStorage;
|
|
||||||
struct ImGuiStyle;
|
|
||||||
struct ImGuiWindow;
|
|
||||||
|
|
||||||
#include "imconfig.h"
|
|
||||||
#include <float.h> // FLT_MAX
|
#include <float.h> // FLT_MAX
|
||||||
#include <stdarg.h> // va_list
|
#include <stdarg.h> // va_list
|
||||||
#include <stddef.h> // ptrdiff_t
|
#include <stddef.h> // ptrdiff_t
|
||||||
@ -34,6 +24,15 @@ struct ImGuiWindow;
|
|||||||
#define IMGUI_API
|
#define IMGUI_API
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Forward declarations
|
||||||
|
struct ImDrawCmd;
|
||||||
|
struct ImDrawList;
|
||||||
|
struct ImFont;
|
||||||
|
struct ImFontAtlas;
|
||||||
|
struct ImGuiIO;
|
||||||
|
struct ImGuiStorage;
|
||||||
|
struct ImGuiStyle;
|
||||||
|
|
||||||
typedef unsigned int ImU32;
|
typedef unsigned int ImU32;
|
||||||
typedef unsigned short ImWchar; // character for display
|
typedef unsigned short ImWchar; // character for display
|
||||||
typedef void* ImTextureID; // user data to refer to a texture (e.g. store your texture handle/id)
|
typedef void* ImTextureID; // user data to refer to a texture (e.g. store your texture handle/id)
|
||||||
|
Loading…
Reference in New Issue
Block a user