MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ImGuiWindow

Method ImGuiWindow

Source/3rdParty/imgui/imgui.cpp:4572–4596  ·  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

4570
4571// ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods
4572ImGuiWindow::ImGuiWindow(ImGuiContext* ctx, const char* name) : DrawListInst(NULL)
4573{
4574 memset((void*)this, 0, sizeof(*this));
4575 Ctx = ctx;
4576 Name = ImStrdup(name);
4577 NameBufLen = (int)ImStrlen(name) + 1;
4578 ID = ImHashStr(name);
4579 IDStack.push_back(ID);
4580 MoveId = GetID("#MOVE");
4581 ScrollTarget = ImVec2(FLT_MAX, FLT_MAX);
4582 ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f);
4583 AutoPosLastDirection = ImGuiDir_None;
4584 AutoFitFramesX = AutoFitFramesY = -1;
4585 SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = 0;
4586 SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX);
4587 LastFrameActive = -1;
4588 LastTimeActive = -1.0f;
4589 FontRefSize = 0.0f;
4590 FontWindowScale = FontWindowScaleParents = 1.0f;
4591 SettingsOffset = -1;
4592 DrawList = &DrawListInst;
4593 DrawList->_OwnerName = Name;
4594 DrawList->_SetDrawListSharedData(&Ctx->DrawListSharedData);
4595 NavPreferredScoringPosRel[0] = NavPreferredScoringPosRel[1] = ImVec2(FLT_MAX, FLT_MAX);
4596}
4597
4598ImGuiWindow::~ImGuiWindow()
4599{

Callers

nothing calls this directly

Calls 7

ImStrdupFunction · 0.85
ImHashStrFunction · 0.85
GetIDFunction · 0.85
ImVec2Function · 0.85
memsetFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected