|
|
|
@ -592,7 +592,6 @@ |
|
|
|
|
|
|
|
|
|
static void LogRenderedText(const ImVec2& ref_pos, const char* text, const char* text_end = NULL); |
|
|
|
|
|
|
|
|
|
static void PushMultiItemsWidths(int components, float w_full = 0.0f); |
|
|
|
|
static float GetDraggedColumnOffset(int column_index); |
|
|
|
|
|
|
|
|
|
static bool IsKeyPressedMap(ImGuiKey key, bool repeat = true); |
|
|
|
@ -4676,12 +4675,12 @@ void ImGui::PushItemWidth(float item_width) |
|
|
|
|
window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void PushMultiItemsWidths(int components, float w_full) |
|
|
|
|
void ImGui::PushMultiItemsWidths(int components, float w_full) |
|
|
|
|
{ |
|
|
|
|
ImGuiWindow* window = ImGui::GetCurrentWindow(); |
|
|
|
|
ImGuiWindow* window = GetCurrentWindow(); |
|
|
|
|
const ImGuiStyle& style = GImGui->Style; |
|
|
|
|
if (w_full <= 0.0f) |
|
|
|
|
w_full = ImGui::CalcItemWidth(); |
|
|
|
|
w_full = CalcItemWidth(); |
|
|
|
|
const float w_item_one = ImMax(1.0f, (float)(int)((w_full - (style.ItemInnerSpacing.x) * (components-1)) / (float)components)); |
|
|
|
|
const float w_item_last = ImMax(1.0f, (float)(int)(w_full - (w_item_one + style.ItemInnerSpacing.x) * (components-1))); |
|
|
|
|
window->DC.ItemWidthStack.push_back(w_item_last); |
|
|
|
|