/
CursorTrack.js
89 lines (80 loc) · 3.05 KB
/
CursorTrack.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* API Version - 3.1.2 */
/**
* Instances of this interface represent the cursor item of track selections.
*
* @since API version 1
*/
function CursorTrack() {}
CursorTrack.prototype = new CursorChannel();
CursorTrack.prototype.constructor = CursorTrack;
/**
* Makes the cursor track point to it's parent group track, in case it is not already pointing to the root
* group track.
*
* @since API version 1
*/
CursorTrack.prototype.selectParent = function() {};
/**
* Makes the cursor track point to the first child found with the track group that this cursor currently
* points to. If this cursor is not pointing to a track group or the track group is empty then this has no
* effect.
*
* @since API version 2
*/
CursorTrack.prototype.selectFirstChild = function() {};
/**
* Specifies the behaviour of the functions {@link #selectPrevious()}, {@link #selectNext()},
* {@link #selectFirst()} and {@link #selectLast()}. Calling those functions can either navigate the cursor
* within the current nesting level, or over a flat list of either all tracks or only the expanded tracks.
* Default is CursorNavigationMode.FLAT.
*
* @param {CursorNavigationMode} mode
* @since API version 1
*/
CursorTrack.prototype.setCursorNavigationMode = function(mode) {};
/**
* @return {PinnableCursorDevice}
*/
CursorTrack.prototype.createCursorDevice = function() {};
/**
* Creates a {@link CursorDevice} for this cursor track that by default follows a device based on the
* supplied follow mode.
*
* @param id
An id that is used to identify this cursor.
* @param name
A name that is displayed to the user for this cursor.
* @param numSends
the number of sends that are simultaneously accessible in nested channels.
* @param followMode
Mode that defines how this cursor should follow devices.
* @return {PinnableCursorDevice}
* @since API version 2
*/
CursorTrack.prototype.createCursorDevice = function(id, name, numSends, followMode) {};
/**
* Creates a {@link PinnableCursorClip} for this track that follows a clip within the track on the clip
* launcher. This clip typically gets updated when the user selects a new clip on the clip launcher. It can
* also act independently from the user's selection if the user so chooses in the settings for the
* controller.
*
* @param {int} gridWidth
* @param {int} gridHeight
* @return {PinnableCursorClip}
* @since API version 10
*/
CursorTrack.prototype.createLauncherCursorClip = function(gridWidth, gridHeight) {};
/**
* Creates a {@link PinnableCursorClip} for this track that follows a clip within the track on the clip
* launcher. This clip typically gets updated when the user selects a new clip on the clip launcher. It can
* also act independently from the user's selection if the user so chooses in the settings for the
* controller.
*
* @param {string} id
* @param {string} name
* @param {int} gridWidth
* @param {int} gridHeight
* @return {PinnableCursorClip}
* @since API version 10
*/
CursorTrack.prototype.createLauncherCursorClip = function(id, name, gridWidth, gridHeight) {};