MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / PushFont

Method PushFont

KBotExt/imgui/imgui.cpp:7119–7127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7117}
7118
7119void ImGui::PushFont(ImFont* font)
7120{
7121 ImGuiContext& g = *GImGui;
7122 if (!font)
7123 font = GetDefaultFont();
7124 SetCurrentFont(font);
7125 g.FontStack.push_back(font);
7126 g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID);
7127}
7128
7129void ImGui::PopFont()
7130{

Callers

nothing calls this directly

Calls 2

GetDefaultFontFunction · 0.85
PushTextureIDMethod · 0.80

Tested by

no test coverage detected