A game about forced loneliness, made by TACStudios
1using System;
2
3namespace UnityEditor.TestTools.TestRunner.GUI.Controls
4{
5 /// <summary>
6 /// Defines a content provider that can be used with the <see cref="SelectionDropDown" /> control.
7 /// </summary>
8 internal interface ISelectionDropDownContentProvider
9 {
10 /// <summary>
11 /// The total number of items to display.
12 /// </summary>
13 int Count { get; }
14
15 /// <summary>
16 /// Multiple selection support.
17 /// Multiple selection dropdowns don't get closed on selection change.
18 /// </summary>
19 bool IsMultiSelection { get; }
20
21 /// <summary>
22 /// The indices of items which should be followed by separator lines.
23 /// </summary>
24 int[] SeparatorIndices { get; }
25
26 /// <summary>
27 /// Returns the display name of the item at the specified index.
28 /// </summary>
29 /// <param name="index">The index of the item whose display name is to be returned.</param>
30 /// <returns>The display name of the item at the specified index.</returns>
31 string GetName(int index);
32
33 /// <summary>
34 /// Signals a request to select the item at the specified index.
35 /// </summary>
36 /// <param name="index">The index of the item to be selected.</param>
37 void SelectItem(int index);
38
39 /// <summary>
40 /// Returns the selection status of the item at the specified index.
41 /// </summary>
42 /// <param name="index">The index of the item whose selection status is to be returned.</param>
43 /// <returns><c>true</c> if the item is currently selected; otherwise, <c>false</c>. </returns>
44 bool IsSelected(int index);
45 }
46}