Internals: moved ItemSize() variant to inline + comment. + Tidying up todo list (#5191)

This commit is contained in:
ocornut
2022-04-13 21:26:05 +02:00
parent 14ca75d4e7
commit 28b2089ee4
3 changed files with 34 additions and 74 deletions

View File

@ -8225,11 +8225,6 @@ void ImGui::ItemSize(const ImVec2& size, float text_baseline_y)
SameLine();
}
void ImGui::ItemSize(const ImRect& bb, float text_baseline_y)
{
ItemSize(bb.GetSize(), text_baseline_y);
}
// Declare item bounding box for clipping and interaction.
// Note that the size can be different than the one provided to ItemSize(). Typically, widgets that spread over available surface
// declare their minimum size requirement to ItemSize() and provide a larger region to ItemAdd() which is used drawing/interaction.