MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / PushFont

Method PushFont

extern/imgui/imgui.cpp:7808–7816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7806}
7807
7808void ImGui::PushFont(ImFont* font)
7809{
7810 ImGuiContext& g = *GImGui;
7811 if (!font)
7812 font = GetDefaultFont();
7813 SetCurrentFont(font);
7814 g.FontStack.push_back(font);
7815 g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID);
7816}
7817
7818void ImGui::PopFont()
7819{

Callers

nothing calls this directly

Calls 3

GetDefaultFontFunction · 0.85
PushTextureIDMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected