Added io.DisplayVisibleMin / io.DisplayVisibleMax to allow for virtual / scrolling display.

+ remove duplicated "Setup outer clipping rectangle" block in Begin))
This commit is contained in:
ocornut
2015-01-29 14:20:25 +01:00
parent 962ef3924a
commit 27161d2a98
2 changed files with 23 additions and 20 deletions

View File

@ -501,6 +501,8 @@ struct ImGuiIO
ImFontAtlas* Fonts; // <auto> // Load and assemble one or more fonts into a single tightly packed texture. Output to Fonts array.
float FontGlobalScale; // = 1.0f // Global scale all fonts
bool FontAllowUserScaling; // = false // Allow user scaling text of individual window with CTRL+Wheel.
ImVec2 DisplayVisibleMin; // <unset> (0.0f,0.0f) // If you use DisplaySize as a virtual space larger than your screen, set DisplayVisibleMin/Max to the visible area.
ImVec2 DisplayVisibleMax; // <unset> (0.0f,0.0f) // If the values are the same, we defaults to Min=(0.0f) and Max=DisplaySize
//------------------------------------------------------------------
// User Functions