mirror of
https://github.com/cimgui/cimgui.git
synced 2025-11-30 21:51:40 +00:00
cpp2ffi: gen_structs_c only used C types
This commit is contained in:
22
cimgui.h
22
cimgui.h
@@ -3820,23 +3820,14 @@ typedef union SDL_Event SDL_Event;
|
||||
|
||||
|
||||
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
typedef struct ImColor_c ImColor;
|
||||
typedef struct ImRect_c ImRect;
|
||||
typedef struct ImTextureRef_c ImTextureRef;
|
||||
typedef struct ImVec2_c ImVec2;
|
||||
typedef struct ImVec2i_c ImVec2i;
|
||||
typedef struct ImVec4_c ImVec4;
|
||||
typedef struct ImColor_c ImColor;
|
||||
typedef struct ImRect_c ImRect;
|
||||
#endif
|
||||
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
typedef struct ImColor_c ImColor_c;
|
||||
struct ImColor_c {
|
||||
ImVec4 Value;
|
||||
};
|
||||
typedef struct ImRect_c ImRect_c;
|
||||
struct ImRect_c {
|
||||
ImVec2 Min;
|
||||
ImVec2 Max;
|
||||
};
|
||||
typedef struct ImTextureRef_c ImTextureRef_c;
|
||||
struct ImTextureRef_c {
|
||||
ImTextureData* _TexData;
|
||||
@@ -3859,6 +3850,15 @@ struct ImVec4_c {
|
||||
float z;
|
||||
float w;
|
||||
};
|
||||
typedef struct ImColor_c ImColor_c;
|
||||
struct ImColor_c {
|
||||
ImVec4_c Value;
|
||||
};
|
||||
typedef struct ImRect_c ImRect_c;
|
||||
struct ImRect_c {
|
||||
ImVec2_c Min;
|
||||
ImVec2_c Max;
|
||||
};
|
||||
#endif
|
||||
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
typedef struct ImGuiTextFilter::ImGuiTextRange ImGuiTextRange;
|
||||
|
||||
Reference in New Issue
Block a user