summaryrefslogtreecommitdiff
path: root/Library/PackageCache/com.unity.timeline@1.2.13/Editor/treeview/Snapping/ISnappable.cs
blob: 52a17a658b332430d0721aa87248388af9cdad67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System.Collections.Generic;

namespace UnityEditor.Timeline
{
    struct Edge
    {
        public double time { get; set; }

        public bool showSnapHint { get; set; }

        public Edge(double edgeTime, bool snapHint = true) : this()
        {
            time = edgeTime;
            showSnapHint = snapHint;
        }
    }

    interface ISnappable
    {
        IEnumerable<Edge> SnappableEdgesFor(IAttractable attractable, ManipulateEdges manipulateEdges);
    }
}