Made with the NoResize flag can still use auto-fitting. Added SetWindowSize().

This commit is contained in:
ocornut
2014-10-26 20:07:15 +00:00
parent fad5e45d2c
commit 3d84858755
2 changed files with 40 additions and 28 deletions

View File

@ -146,13 +146,14 @@ namespace ImGui
bool GetWindowIsFocused();
ImVec2 GetWindowSize();
float GetWindowWidth();
void SetWindowSize(const ImVec2& size); // set to ImVec2(0,0) to force an auto-fit
ImVec2 GetWindowPos(); // you should rarely need/care about the window position, but it can be useful if you want to use your own drawing.
void SetWindowPos(const ImVec2& pos); // set current window pos.
ImVec2 GetWindowContentRegionMin();
ImVec2 GetWindowContentRegionMax();
ImDrawList* GetWindowDrawList(); // get rendering command-list if you want to append your own draw primitives.
ImFont GetWindowFont();
float GetWindowFontSize();
ImFont GetWindowFont();
float GetWindowFontSize();
void SetWindowFontScale(float scale); // per-window font scale. Adjust IO.FontBaseScale if you want to scale all windows together.
void SetScrollPosHere(); // adjust scrolling position to center into the current cursor position.
void SetKeyboardFocusHere(int offset = 0); // focus keyboard on the next widget. Use 'offset' to access sub components of a multiple component widget.