mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-07 21:39:54 +02:00
Made with the NoResize flag can still use auto-fitting. Added SetWindowSize().
This commit is contained in:
5
imgui.h
5
imgui.h
@ -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.
|
||||
|
Reference in New Issue
Block a user