MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / PushFont

Method PushFont

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:7537–7545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7535}
7536
7537void ImGui::PushFont(ImFont* font)
7538{
7539 ImGuiContext& g = *GImGui;
7540 if (!font)
7541 font = GetDefaultFont();
7542 SetCurrentFont(font);
7543 g.FontStack.push_back(font);
7544 g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID);
7545}
7546
7547void ImGui::PopFont()
7548{

Callers

nothing calls this directly

Calls 3

GetDefaultFontFunction · 0.85
push_backMethod · 0.80
PushTextureIDMethod · 0.80

Tested by

no test coverage detected