mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
generator: _destroy functions get location
IMGUI_USE_FREETYPE and IMGUI_USE_WCHAR32 are build options now. cmake takes IMGUI_FREETYPE and IMGUI_WCHAR32
This commit is contained in:
33
cimgui.h
33
cimgui.h
@@ -1,6 +1,7 @@
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.91.4" 19140 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//with imgui_freetype.h api
|
||||
//docking branch
|
||||
#ifndef CIMGUI_INCLUDED
|
||||
#define CIMGUI_INCLUDED
|
||||
@@ -215,7 +216,17 @@ typedef ImU64 ImTextureID;
|
||||
typedef unsigned short ImDrawIdx;
|
||||
typedef unsigned int ImWchar32;
|
||||
typedef unsigned short ImWchar16;
|
||||
#ifdef IMGUI_USE_WCHAR32
|
||||
typedef ImWchar32 ImWchar;
|
||||
#else
|
||||
typedef ImWchar16 ImWchar;
|
||||
#endif
|
||||
#ifdef IMGUI_USE_WCHAR32
|
||||
#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF
|
||||
#else
|
||||
#define IM_UNICODE_CODEPOINT_MAX 0xFFFF
|
||||
#endif
|
||||
|
||||
typedef ImS64 ImGuiSelectionUserData;
|
||||
typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data);
|
||||
typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data);
|
||||
@@ -1503,7 +1514,7 @@ struct ImFont
|
||||
float Scale;
|
||||
float Ascent, Descent;
|
||||
int MetricsTotalSurface;
|
||||
ImU8 Used4kPagesMap[(0xFFFF +1)/4096/8];
|
||||
ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX +1)/4096/8];
|
||||
};
|
||||
typedef enum {
|
||||
ImGuiViewportFlags_None = 0,
|
||||
@@ -3478,6 +3489,22 @@ struct ImFontBuilderIO
|
||||
{
|
||||
bool (*FontBuilder_Build)(ImFontAtlas* atlas);
|
||||
};
|
||||
#ifdef IMGUI_ENABLE_FREETYPE
|
||||
struct ImFontAtlas;
|
||||
struct ImFontBuilderIO;
|
||||
typedef enum {
|
||||
ImGuiFreeTypeBuilderFlags_NoHinting = 1 << 0,
|
||||
ImGuiFreeTypeBuilderFlags_NoAutoHint = 1 << 1,
|
||||
ImGuiFreeTypeBuilderFlags_ForceAutoHint = 1 << 2,
|
||||
ImGuiFreeTypeBuilderFlags_LightHinting = 1 << 3,
|
||||
ImGuiFreeTypeBuilderFlags_MonoHinting = 1 << 4,
|
||||
ImGuiFreeTypeBuilderFlags_Bold = 1 << 5,
|
||||
ImGuiFreeTypeBuilderFlags_Oblique = 1 << 6,
|
||||
ImGuiFreeTypeBuilderFlags_Monochrome = 1 << 7,
|
||||
ImGuiFreeTypeBuilderFlags_LoadColor = 1 << 8,
|
||||
ImGuiFreeTypeBuilderFlags_Bitmap = 1 << 9
|
||||
}ImGuiFreeTypeBuilderFlags;
|
||||
#endif
|
||||
#define IMGUI_HAS_DOCK 1
|
||||
|
||||
#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-8)
|
||||
@@ -4985,6 +5012,10 @@ CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas,in
|
||||
CIMGUI_API void igImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value);
|
||||
CIMGUI_API void igImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256],float in_multiply_factor);
|
||||
CIMGUI_API void igImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride);
|
||||
#ifdef IMGUI_ENABLE_FREETYPE
|
||||
CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType(void);
|
||||
CIMGUI_API void ImGuiFreeType_SetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data);
|
||||
#endif
|
||||
|
||||
|
||||
/////////////////////////hand written functions
|
||||
|
Reference in New Issue
Block a user