IMoveItemMode.cs 921 B

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. namespace UnityEditor.Timeline
  4. {
  5. interface IMoveItemMode
  6. {
  7. void OnTrackDetach(IEnumerable<ItemsPerTrack> itemsGroups);
  8. void HandleTrackSwitch(IEnumerable<ItemsPerTrack> itemsGroups);
  9. bool AllowTrackSwitch();
  10. double AdjustStartTime(WindowState state, ItemsPerTrack itemsGroup, double time);
  11. void OnModeClutchEnter(IEnumerable<ItemsPerTrack> itemsGroups);
  12. void OnModeClutchExit(IEnumerable<ItemsPerTrack> itemsGroups);
  13. void BeginMove(IEnumerable<ItemsPerTrack> itemsGroups);
  14. void UpdateMove(IEnumerable<ItemsPerTrack> itemsGroups);
  15. void FinishMove(IEnumerable<ItemsPerTrack> itemsGroups);
  16. bool ValidateMove(ItemsPerTrack itemsGroup);
  17. }
  18. interface IMoveItemDrawer
  19. {
  20. void DrawGUI(WindowState state, IEnumerable<MovingItems> movingItems, Color color);
  21. }
  22. }