MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetMainRect

Method GetMainRect

KBotExt/imgui/imgui_internal.h:1629–1629  ·  view source on GitHub ↗

Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it, hence the code asymmetry)

Source from the content-addressed store, hash-verified

1627
1628 // Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it, hence the code asymmetry)
1629 ImRect GetMainRect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); }
1630 ImRect GetWorkRect() const { return ImRect(WorkPos.x, WorkPos.y, WorkPos.x + WorkSize.x, WorkPos.y + WorkSize.y); }
1631 ImRect GetBuildWorkRect() const { ImVec2 pos = CalcWorkRectPos(BuildWorkOffsetMin); ImVec2 size = CalcWorkRectSize(BuildWorkOffsetMin, BuildWorkOffsetMax); return ImRect(pos.x, pos.y, pos.x + size.x, pos.y + size.y); }
1632};

Callers 6

RenderMouseCursorMethod · 0.80
NewFrameMethod · 0.80
BeginMethod · 0.80

Calls 1

ImRectFunction · 0.70

Tested by

no test coverage detected