MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / ImGuiWindow

Method ImGuiWindow

Dependencies/ImGui/src/imgui.cpp:4664–4694  ·  view source on GitHub ↗

ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods

Source from the content-addressed store, hash-verified

4662
4663// ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods
4664ImGuiWindow::ImGuiWindow(ImGuiContext* ctx, const char* name) : DrawListInst(NULL)
4665{
4666 memset((void*)this, 0, sizeof(*this));
4667 Ctx = ctx;
4668 Name = ImStrdup(name);
4669 NameBufLen = (int)ImStrlen(name) + 1;
4670 ID = ImHashStr(name);
4671 IDStack.push_back(ID);
4672 ViewportAllowPlatformMonitorExtend = -1;
4673 ViewportPos = ImVec2(FLT_MAX, FLT_MAX);
4674 MoveId = GetID("#MOVE");
4675 TabId = GetID("#TAB");
4676 ScrollTarget = ImVec2(FLT_MAX, FLT_MAX);
4677 ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f);
4678 AutoPosLastDirection = ImGuiDir_None;
4679 AutoFitFramesX = AutoFitFramesY = -1;
4680 SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = SetWindowDockAllowFlags = 0;
4681 SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX);
4682 LastFrameActive = -1;
4683 LastFrameJustFocused = -1;
4684 LastTimeActive = -1.0f;
4685 FontRefSize = 0.0f;
4686 FontWindowScale = FontWindowScaleParents = 1.0f;
4687 SettingsOffset = -1;
4688 DockOrder = -1;
4689 DrawList = &DrawListInst;
4690 DrawList->_OwnerName = Name;
4691 DrawList->_SetDrawListSharedData(&Ctx->DrawListSharedData);
4692 NavPreferredScoringPosRel[0] = NavPreferredScoringPosRel[1] = ImVec2(FLT_MAX, FLT_MAX);
4693 IM_PLACEMENT_NEW(&WindowClass) ImGuiWindowClass();
4694}
4695
4696ImGuiWindow::~ImGuiWindow()
4697{

Callers

nothing calls this directly

Calls 6

ImStrdupFunction · 0.85
ImHashStrFunction · 0.85
ImVec2Function · 0.85
ImGuiWindowClassClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected