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

Function SetCurrentWindow

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:3912–3924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3910}
3911
3912static void SetCurrentWindow(ImGuiWindow* window)
3913{
3914 ImGuiContext& g = *GImGui;
3915 g.CurrentWindow = window;
3916 g.CurrentTable = window && window->DC.CurrentTableIdx != -1 ? g.Tables.GetByIndex(window->DC.CurrentTableIdx) : NULL;
3917 g.CurrentDpiScale = 1.0f; // FIXME-DPI: WIP this is modified in docking
3918 if (window)
3919 {
3920 g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize();
3921 g.FontScale = g.FontSize / g.Font->FontSize;
3922 ImGui::NavUpdateCurrentWindowIsScrollPushableX();
3923 }
3924}
3925
3926void ImGui::GcCompactTransientMiscBuffers()
3927{

Callers 2

BeginMethod · 0.85
EndMethod · 0.85

Calls 1

GetByIndexMethod · 0.80

Tested by

no test coverage detected