MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / GetCurrentIndex

Function GetCurrentIndex

Source/FlowEditor/Private/Asset/SFlowDiff.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static int32 GetCurrentIndex(SListView<TSharedPtr<FDiffSingleResult>> const& ListView, const TArray<TSharedPtr<FDiffSingleResult>>& ListViewSource)
38{
39 const TArray<TSharedPtr<FDiffSingleResult>>& Selected = ListView.GetSelectedItems();
40 if (Selected.Num() == 1)
41 {
42 for (int32 Index = 0; Index < ListViewSource.Num(); ++Index)
43 {
44 if (ListViewSource[Index] == Selected[0])
45 {
46 return Index;
47 }
48 }
49 }
50 return -1;
51}
52
53void FlowDiffUtils::SelectNextRow(SListView<TSharedPtr<FDiffSingleResult>>& ListView, const TArray<TSharedPtr<FDiffSingleResult>>& ListViewSource)
54{

Callers 4

SelectNextRowMethod · 0.85
SelectPrevRowMethod · 0.85
HasNextDifferenceMethod · 0.85
HasPrevDifferenceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected