MCPcopy Create free account
hub / github.com/RenderKit/embree / PushFont

Method PushFont

tutorials/common/imgui/imgui.cpp:7194–7202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7192}
7193
7194void ImGui::PushFont(ImFont* font)
7195{
7196 ImGuiContext& g = *GImGui;
7197 if (!font)
7198 font = GetDefaultFont();
7199 SetCurrentFont(font);
7200 g.FontStack.push_back(font);
7201 g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID);
7202}
7203
7204void ImGui::PopFont()
7205{

Callers

nothing calls this directly

Calls 3

GetDefaultFontFunction · 0.85
PushTextureIDMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected