You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internals: Layout: maintain two content sizes, optionally writing to IdealMaxPos to distinguish used from ideal size, later is used for auto-fit. Unused in this commit, should be no-op. (ocornut#3414)
enum { WRT_OuterRect, WRT_OuterRectClipped, WRT_InnerRect, WRT_InnerClipRect, WRT_WorkRect, WRT_Content, WRT_ContentRegionRect, WRT_Count }; // Windows Rect Type
Copy file name to clipboardexpand all lines: imgui.h
+1-1
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Index of this file:
59
59
// Version
60
60
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens)
ImVec2 CursorPos; // Current emitting position, in absolute coordinates.
1638
1638
ImVec2 CursorPosPrevLine;
1639
1639
ImVec2 CursorStartPos; // Initial position after Begin(), generally ~ window position + WindowPadding.
1640
-
ImVec2 CursorMaxPos; // Used to implicitly calculate the size of our contents, always growing during the frame. Used to calculate window->ContentSize at the beginning of next frame
1640
+
ImVec2 CursorMaxPos; // Used to implicitly calculate ContentSize at the beginning of next frame. Always growing during the frame.
1641
+
ImVec2 IdealMaxPos; // Used to implicitly calculate ContentSizeIdeal.
1641
1642
ImVec2 CurrLineSize;
1642
1643
ImVec2 PrevLineSize;
1643
1644
float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added).
ImVec2 Size; // Current size (==SizeFull or collapsed title bar size)
1696
1697
ImVec2 SizeFull; // Size when non collapsed
1697
1698
ImVec2 ContentSize; // Size of contents/scrollable client area (calculated from the extents reach of the cursor) from previous frame. Does not include window decoration or window padding.
1699
+
ImVec2 ContentSizeIdeal;
1698
1700
ImVec2 ContentSizeExplicit; // Size of contents/scrollable client area explicitly request by the user via SetNextWindowContentSize().
1699
1701
ImVec2 WindowPadding; // Window padding at the time of Begin().
1700
1702
float WindowRounding; // Window rounding at the time of Begin(). May be clamped lower to avoid rendering artifacts with title bar, menu bar etc.
0 commit comments