Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ISelectionDropDownContentProvider.cs 1.7KB

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