ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods
| 3469 | |
| 3470 | // ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods |
| 3471 | ImGuiWindow::ImGuiWindow(ImGuiContext* context, const char* name) : DrawListInst(NULL) |
| 3472 | { |
| 3473 | memset(this, 0, sizeof(*this)); |
| 3474 | Name = ImStrdup(name); |
| 3475 | NameBufLen = (int)strlen(name) + 1; |
| 3476 | ID = ImHashStr(name); |
| 3477 | IDStack.push_back(ID); |
| 3478 | ViewportAllowPlatformMonitorExtend = -1; |
| 3479 | ViewportPos = ImVec2(FLT_MAX, FLT_MAX); |
| 3480 | MoveId = GetID("#MOVE"); |
| 3481 | TabId = GetID("#TAB"); |
| 3482 | ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); |
| 3483 | ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f); |
| 3484 | AutoFitFramesX = AutoFitFramesY = -1; |
| 3485 | AutoPosLastDirection = ImGuiDir_None; |
| 3486 | SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = SetWindowDockAllowFlags = ImGuiCond_Always | ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing; |
| 3487 | SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX); |
| 3488 | LastFrameActive = -1; |
| 3489 | LastFrameJustFocused = -1; |
| 3490 | LastTimeActive = -1.0f; |
| 3491 | FontWindowScale = FontDpiScale = 1.0f; |
| 3492 | SettingsOffset = -1; |
| 3493 | DockOrder = -1; |
| 3494 | DrawList = &DrawListInst; |
| 3495 | DrawList->_Data = &context->DrawListSharedData; |
| 3496 | DrawList->_OwnerName = Name; |
| 3497 | IM_PLACEMENT_NEW(&WindowClass) ImGuiWindowClass(); |
| 3498 | } |
| 3499 | |
| 3500 | ImGuiWindow::~ImGuiWindow() |
| 3501 | { |
nothing calls this directly
no test coverage detected