@@ -576,20 +576,20 @@ struct ImFontConfig
576576 MergeMode::Bool
577577 PixelSnapH::Bool
578578 PixelSnapV::Bool
579- FontNo::ImS8
580579 OversampleH::ImS8
581580 OversampleV::ImS8
581+ EllipsisChar::ImWchar
582582 SizePixels::Cfloat
583583 GlyphRanges::Ptr{ImWchar}
584584 GlyphExcludeRanges::Ptr{ImWchar}
585585 GlyphOffset::ImVec2
586586 GlyphMinAdvanceX::Cfloat
587587 GlyphMaxAdvanceX::Cfloat
588588 GlyphExtraAdvanceX::Cfloat
589+ FontNo::ImU32
589590 FontLoaderFlags::Cuint
590591 RasterizerMultiply::Cfloat
591592 RasterizerDensity::Cfloat
592- EllipsisChar::ImWchar
593593 Flags::ImFontFlags
594594 DstFont::Ptr{Cvoid} # DstFont::Ptr{ImFont}
595595 FontLoader::Ptr{ImFontLoader}
@@ -609,20 +609,20 @@ function Base.getproperty(x::Ptr{ImFontConfig}, f::Symbol)
609609 f === :MergeMode && return Ptr{Bool}(x + 53)
610610 f === :PixelSnapH && return Ptr{Bool}(x + 54)
611611 f === :PixelSnapV && return Ptr{Bool}(x + 55)
612- f === :FontNo && return Ptr{ImS8}(x + 56)
613- f === :OversampleH && return Ptr{ImS8}(x + 57)
614- f === :OversampleV && return Ptr{ImS8 }(x + 58)
612+ f === :OversampleH && return Ptr{ImS8}(x + 56)
613+ f === :OversampleV && return Ptr{ImS8}(x + 57)
614+ f === :EllipsisChar && return Ptr{ImWchar }(x + 58)
615615 f === :SizePixels && return Ptr{Cfloat}(x + 60)
616616 f === :GlyphRanges && return Ptr{Ptr{ImWchar}}(x + 64)
617617 f === :GlyphExcludeRanges && return Ptr{Ptr{ImWchar}}(x + 72)
618618 f === :GlyphOffset && return Ptr{ImVec2}(x + 80)
619619 f === :GlyphMinAdvanceX && return Ptr{Cfloat}(x + 88)
620620 f === :GlyphMaxAdvanceX && return Ptr{Cfloat}(x + 92)
621621 f === :GlyphExtraAdvanceX && return Ptr{Cfloat}(x + 96)
622- f === :FontLoaderFlags && return Ptr{Cuint }(x + 100)
623- f === :RasterizerMultiply && return Ptr{Cfloat }(x + 104)
624- f === :RasterizerDensity && return Ptr{Cfloat}(x + 108)
625- f === :EllipsisChar && return Ptr{ImWchar }(x + 112)
622+ f === :FontNo && return Ptr{ImU32 }(x + 100)
623+ f === :FontLoaderFlags && return Ptr{Cuint }(x + 104)
624+ f === :RasterizerMultiply && return Ptr{Cfloat}(x + 108)
625+ f === :RasterizerDensity && return Ptr{Cfloat }(x + 112)
626626 f === :Flags && return Ptr{ImFontFlags}(x + 116)
627627 f === :DstFont && return Ptr{Ptr{ImFont}}(x + 120)
628628 f === :FontLoader && return Ptr{Ptr{ImFontLoader}}(x + 128)
@@ -3566,7 +3566,7 @@ function Base.getproperty(x::Ptr{ImGuiContext}, f::Symbol)
35663566 f === :WheelingWindowReleaseTimer && return Ptr{Cfloat}(x + 5552)
35673567 f === :WheelingWindowWheelRemainder && return Ptr{ImVec2}(x + 5556)
35683568 f === :WheelingAxisAvg && return Ptr{ImVec2}(x + 5564)
3569- f === :DebugDrawIdConflicts && return Ptr{ImGuiID}(x + 5572)
3569+ f === :DebugDrawIdConflictsId && return Ptr{ImGuiID}(x + 5572)
35703570 f === :DebugHookIdInfo && return Ptr{ImGuiID}(x + 5576)
35713571 f === :HoveredId && return Ptr{ImGuiID}(x + 5580)
35723572 f === :HoveredIdPreviousFrame && return Ptr{ImGuiID}(x + 5584)
@@ -7792,6 +7792,10 @@ function ImFontAtlas_CompactCache(self)
77927792 ccall((:ImFontAtlas_CompactCache, libcimgui), Cvoid, (Ptr{ImFontAtlas},), self)
77937793end
77947794
7795+ function ImFontAtlas_SetFontLoader(self, font_loader)
7796+ ccall((:ImFontAtlas_SetFontLoader, libcimgui), Cvoid, (Ptr{ImFontAtlas}, Ptr{ImFontLoader}), self, font_loader)
7797+ end
7798+
77957799function ImFontAtlas_ClearInputData(self)
77967800 ccall((:ImFontAtlas_ClearInputData, libcimgui), Cvoid, (Ptr{ImFontAtlas},), self)
77977801end
@@ -11135,6 +11139,10 @@ function igImFontAtlasBakedAddFontGlyph(atlas, baked, src, in_glyph)
1113511139 ccall((:igImFontAtlasBakedAddFontGlyph, libcimgui), Ptr{ImFontGlyph}, (Ptr{ImFontAtlas}, Ptr{ImFontBaked}, Ptr{ImFontConfig}, Ptr{ImFontGlyph}), atlas, baked, src, in_glyph)
1113611140end
1113711141
11142+ function igImFontAtlasBakedAddFontGlyphAdvancedX(atlas, baked, src, codepoint, advance_x)
11143+ ccall((:igImFontAtlasBakedAddFontGlyphAdvancedX, libcimgui), Cvoid, (Ptr{ImFontAtlas}, Ptr{ImFontBaked}, Ptr{ImFontConfig}, ImWchar, Cfloat), atlas, baked, src, codepoint, advance_x)
11144+ end
11145+
1113811146function igImFontAtlasBakedDiscardFontGlyph(atlas, font, baked, glyph)
1113911147 ccall((:igImFontAtlasBakedDiscardFontGlyph, libcimgui), Cvoid, (Ptr{ImFontAtlas}, Ptr{ImFont}, Ptr{ImFontBaked}, Ptr{ImFontGlyph}), atlas, font, baked, glyph)
1114011148end
0 commit comments