mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-09 23:54:20 +00:00
Added SetCursorPosX, SetCursorPosY shortcuts
This commit is contained in:
parent
2fb63b6068
commit
dd5d251273
2 changed files with 14 additions and 0 deletions
2
imgui.h
2
imgui.h
|
|
@ -168,6 +168,8 @@ namespace ImGui
|
|||
float GetColumnWidth(int column_index = -1);
|
||||
ImVec2 GetCursorPos(); // cursor position relative to window position
|
||||
void SetCursorPos(const ImVec2& pos); // "
|
||||
void SetCursorPosX(float x); // "
|
||||
void SetCursorPosY(float y); // "
|
||||
ImVec2 GetCursorScreenPos(); // cursor position in screen space
|
||||
void AlignFirstTextHeightToWidgets(); // call once if the first item on the line is a Text() item and you want to vertically lower it to match higher widgets.
|
||||
float GetTextLineSpacing();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue