ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods
| 4662 | |
| 4663 | // ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods |
| 4664 | ImGuiWindow::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 | |
| 4696 | ImGuiWindow::~ImGuiWindow() |
| 4697 | { |
nothing calls this directly
no test coverage detected