mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
MultiSelect: (Breaking) Renamed 'RangeSrc -> 'RangeSrcItem', "RangeDst' -> 'RangeDstItem'
This is necessary to have consistent names in upcoming fields (NavIdItem etc.)
This commit is contained in:
parent
a39f9e7661
commit
a83326bc52
4 changed files with 30 additions and 30 deletions
|
|
@ -2804,7 +2804,7 @@ struct ExampleSelection
|
|||
{
|
||||
if (ms_io->RequestClear) { Clear(); }
|
||||
if (ms_io->RequestSelectAll) { SelectAll(items_count); }
|
||||
if (ms_io->RequestSetRange) { SetRange((int)(intptr_t)ms_io->RangeSrc, (int)(intptr_t)ms_io->RangeDst, ms_io->RangeValue ? 1 : 0); }
|
||||
if (ms_io->RequestSetRange) { SetRange((int)(intptr_t)ms_io->RangeSrcItem, (int)(intptr_t)ms_io->RangeDstItem, ms_io->RangeValue ? 1 : 0); }
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -2893,7 +2893,7 @@ static void ShowDemoWindowMultiSelect()
|
|||
|
||||
// Apply multi-select requests
|
||||
ms_io = ImGui::EndMultiSelect();
|
||||
selection.RangeRef = (int)(intptr_t)ms_io->RangeSrc;
|
||||
selection.RangeRef = (int)(intptr_t)ms_io->RangeSrcItem;
|
||||
selection.ApplyRequests(ms_io, ITEMS_COUNT);
|
||||
|
||||
ImGui::EndListBox();
|
||||
|
|
@ -2934,7 +2934,7 @@ static void ShowDemoWindowMultiSelect()
|
|||
|
||||
// Apply multi-select requests
|
||||
ms_io = ImGui::EndMultiSelect();
|
||||
selection->RangeRef = (int)(intptr_t)ms_io->RangeSrc;
|
||||
selection->RangeRef = (int)(intptr_t)ms_io->RangeSrcItem;
|
||||
selection->ApplyRequests(ms_io, ITEMS_COUNT);
|
||||
ImGui::PopID();
|
||||
}
|
||||
|
|
@ -3001,9 +3001,9 @@ static void ShowDemoWindowMultiSelect()
|
|||
|
||||
while (!use_clipper || clipper.Step())
|
||||
{
|
||||
// IF clipping is used you need to set 'RangeSrcPassedBy = true' if RangeSrc was passed over.
|
||||
// IF clipping is used you need to set 'RangeSrcPassedBy = true' if RangeSrcItem was passed over.
|
||||
if (use_clipper)
|
||||
if ((int)(intptr_t)ms_io->RangeSrc <= clipper.DisplayStart)
|
||||
if ((int)(intptr_t)ms_io->RangeSrcItem <= clipper.DisplayStart)
|
||||
ms_io->RangeSrcPassedBy = true;
|
||||
|
||||
const int item_begin = use_clipper ? clipper.DisplayStart : 0;
|
||||
|
|
@ -3091,7 +3091,7 @@ static void ShowDemoWindowMultiSelect()
|
|||
|
||||
// Apply multi-select requests
|
||||
ms_io = ImGui::EndMultiSelect();
|
||||
selection.RangeRef = (int)(intptr_t)ms_io->RangeSrc;
|
||||
selection.RangeRef = (int)(intptr_t)ms_io->RangeSrcItem;
|
||||
selection.ApplyRequests(ms_io, ITEMS_COUNT);
|
||||
|
||||
if (widget_type == WidgetType_TreeNode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue