|
@@ -630,7 +630,7 @@ struct IMGUI_API ImGuiDrawContext
|
|
|
ImVec2 CursorPos;
|
|
|
ImVec2 CursorPosPrevLine;
|
|
|
ImVec2 CursorStartPos;
|
|
|
- ImVec2 CursorMaxPos; // Implicitly calculate the size of our contents, always extending. Saved into window->SizeContents at the end of the frame
|
|
|
+ ImVec2 CursorMaxPos; // Used to implicitly calculate the size of our contents, always growing during the frame. Turned into window->SizeContents at the beginning of next frame
|
|
|
float CurrentLineHeight;
|
|
|
float CurrentLineTextBaseOffset;
|
|
|
float PrevLineHeight;
|
|
@@ -716,7 +716,7 @@ struct IMGUI_API ImGuiWindow
|
|
|
ImVec2 Size; // Current size (==SizeFull or collapsed title bar size)
|
|
|
ImVec2 SizeFull; // Size when non collapsed
|
|
|
ImVec2 SizeFullAtLastBegin; // Copy of SizeFull at the end of Begin. This is the reference value we'll use on the next frame to decide if we need scrollbars.
|
|
|
- ImVec2 SizeContents; // Size of contents (== extents reach of the drawing cursor) from previous frame
|
|
|
+ ImVec2 SizeContents; // Size of contents (== extents reach of the drawing cursor) from previous frame. Include decoration, window title, border, menu, etc.
|
|
|
ImVec2 SizeContentsExplicit; // Size of contents explicitly set by the user via SetNextWindowContentSize()
|
|
|
ImRect ContentsRegionRect; // Maximum visible content position in window coordinates. ~~ (SizeContentsExplicit ? SizeContentsExplicit : Size - ScrollbarSizes) - CursorStartPos, per axis
|
|
|
ImVec2 WindowPadding; // Window padding at the time of begin.
|