Dynamic Neural Field Composer 0.0.0
A C++20 library and interactive application for building and simulating Dynamic Neural Field (DNF) architectures.
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
imgui_freetype.cpp File Reference
#include "imgui.h"
#include "imgui_freetype.h"
#include "imgui_internal.h"
#include <stdint.h>
#include <ft2build.h>
Include dependency graph for imgui_freetype.cpp:

Classes

struct  ImGui_ImplFreeType_Data
 
struct  ImGui_ImplFreeType_FontSrcBakedData
 
struct  ImGui_ImplFreeType_FontSrcData
 

Macros

#define DE_MULTIPLY(color, alpha)   ImMin((ImU32)(255.0f * (float)color / (float)(alpha + FLT_MIN) + 0.5f), 255u)
 
#define FT_CEIL(X)   (((X + 63) & -64) / 64)
 
#define FT_SCALEFACTOR   64.0f
 

Functions

static void * FreeType_Alloc (FT_Memory, long size)
 
static void FreeType_Free (FT_Memory, void *block)
 
static void * FreeType_Realloc (FT_Memory, long cur_size, long new_size, void *block)
 
static void ImGui_ImplFreeType_BlitGlyph (const FT_Bitmap *ft_bitmap, uint32_t *dst, uint32_t dst_pitch)
 
static void ImGui_ImplFreeType_FontBakedDestroy (ImFontAtlas *atlas, ImFontConfig *src, ImFontBaked *baked, void *loader_data_for_baked_src)
 
static bool ImGui_ImplFreeType_FontBakedInit (ImFontAtlas *atlas, ImFontConfig *src, ImFontBaked *baked, void *loader_data_for_baked_src)
 
static bool ImGui_ImplFreeType_FontBakedLoadGlyph (ImFontAtlas *atlas, ImFontConfig *src, ImFontBaked *baked, void *loader_data_for_baked_src, ImWchar codepoint, ImFontGlyph *out_glyph, float *out_advance_x)
 
static bool ImGui_ImplFreetype_FontSrcContainsGlyph (ImFontAtlas *atlas, ImFontConfig *src, ImWchar codepoint)
 
static void ImGui_ImplFreeType_FontSrcDestroy (ImFontAtlas *atlas, ImFontConfig *src)
 
static bool ImGui_ImplFreeType_FontSrcInit (ImFontAtlas *atlas, ImFontConfig *src)
 
static bool ImGui_ImplFreeType_LoaderInit (ImFontAtlas *atlas)
 
static void ImGui_ImplFreeType_LoaderShutdown (ImFontAtlas *atlas)
 
static const FT_Glyph_Metrics * ImGui_ImplFreeType_LoadGlyph (ImGui_ImplFreeType_FontSrcData *src_data, uint32_t codepoint)
 
static void * ImGuiFreeTypeDefaultAllocFunc (size_t size, void *user_data)
 
static void ImGuiFreeTypeDefaultFreeFunc (void *ptr, void *user_data)
 

Variables

static void * GImGuiFreeTypeAllocatorUserData = nullptr
 
static void *(* GImGuiFreeTypeAllocFunc )(size_t size, void *user_data) = ImGuiFreeTypeDefaultAllocFunc
 
static void(* GImGuiFreeTypeFreeFunc )(void *ptr, void *user_data) = ImGuiFreeTypeDefaultFreeFunc
 

Macro Definition Documentation

◆ DE_MULTIPLY

#define DE_MULTIPLY (   color,
  alpha 
)    ImMin((ImU32)(255.0f * (float)color / (float)(alpha + FLT_MIN) + 0.5f), 255u)

◆ FT_CEIL

#define FT_CEIL (   X)    (((X + 63) & -64) / 64)

◆ FT_SCALEFACTOR

#define FT_SCALEFACTOR   64.0f

Function Documentation

◆ FreeType_Alloc()

static void * FreeType_Alloc ( FT_Memory  ,
long  size 
)
static
Here is the caller graph for this function:

◆ FreeType_Free()

static void FreeType_Free ( FT_Memory  ,
void *  block 
)
static
Here is the caller graph for this function:

◆ FreeType_Realloc()

static void * FreeType_Realloc ( FT_Memory  ,
long  cur_size,
long  new_size,
void *  block 
)
static
Here is the caller graph for this function:

◆ ImGui_ImplFreeType_BlitGlyph()

static void ImGui_ImplFreeType_BlitGlyph ( const FT_Bitmap *  ft_bitmap,
uint32_t *  dst,
uint32_t  dst_pitch 
)
static
Here is the caller graph for this function:

◆ ImGui_ImplFreeType_FontBakedDestroy()

static void ImGui_ImplFreeType_FontBakedDestroy ( ImFontAtlas *  atlas,
ImFontConfig *  src,
ImFontBaked *  baked,
void *  loader_data_for_baked_src 
)
static
Here is the caller graph for this function:

◆ ImGui_ImplFreeType_FontBakedInit()

static bool ImGui_ImplFreeType_FontBakedInit ( ImFontAtlas *  atlas,
ImFontConfig *  src,
ImFontBaked *  baked,
void *  loader_data_for_baked_src 
)
static
Here is the caller graph for this function:

◆ ImGui_ImplFreeType_FontBakedLoadGlyph()

static bool ImGui_ImplFreeType_FontBakedLoadGlyph ( ImFontAtlas *  atlas,
ImFontConfig *  src,
ImFontBaked *  baked,
void *  loader_data_for_baked_src,
ImWchar  codepoint,
ImFontGlyph *  out_glyph,
float *  out_advance_x 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplFreetype_FontSrcContainsGlyph()

static bool ImGui_ImplFreetype_FontSrcContainsGlyph ( ImFontAtlas *  atlas,
ImFontConfig *  src,
ImWchar  codepoint 
)
static
Here is the caller graph for this function:

◆ ImGui_ImplFreeType_FontSrcDestroy()

static void ImGui_ImplFreeType_FontSrcDestroy ( ImFontAtlas *  atlas,
ImFontConfig *  src 
)
static
Here is the caller graph for this function:

◆ ImGui_ImplFreeType_FontSrcInit()

static bool ImGui_ImplFreeType_FontSrcInit ( ImFontAtlas *  atlas,
ImFontConfig *  src 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplFreeType_LoaderInit()

static bool ImGui_ImplFreeType_LoaderInit ( ImFontAtlas *  atlas)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplFreeType_LoaderShutdown()

static void ImGui_ImplFreeType_LoaderShutdown ( ImFontAtlas *  atlas)
static
Here is the caller graph for this function:

◆ ImGui_ImplFreeType_LoadGlyph()

static const FT_Glyph_Metrics * ImGui_ImplFreeType_LoadGlyph ( ImGui_ImplFreeType_FontSrcData src_data,
uint32_t  codepoint 
)
static
Here is the caller graph for this function:

◆ ImGuiFreeTypeDefaultAllocFunc()

static void * ImGuiFreeTypeDefaultAllocFunc ( size_t  size,
void *  user_data 
)
static

◆ ImGuiFreeTypeDefaultFreeFunc()

static void ImGuiFreeTypeDefaultFreeFunc ( void *  ptr,
void *  user_data 
)
static

Variable Documentation

◆ GImGuiFreeTypeAllocatorUserData

void* GImGuiFreeTypeAllocatorUserData = nullptr
static

◆ GImGuiFreeTypeAllocFunc

void *(* GImGuiFreeTypeAllocFunc) (size_t size, void *user_data) ( size_t  size,
void *  user_data 
) = ImGuiFreeTypeDefaultAllocFunc
static

◆ GImGuiFreeTypeFreeFunc

void(* GImGuiFreeTypeFreeFunc) (void *ptr, void *user_data) ( void *  ptr,
void *  user_data 
) = ImGuiFreeTypeDefaultFreeFunc
static