Safe Haskell | Safe-Inferred |
---|
The selection type.
Synopsis
- type Num = Int
- data Selection = Selection {}
- data Orientation
- point :: Types.TrackNum -> TrackTime -> Orientation -> Selection
- is_point :: Selection -> Bool
- modify_tracks :: (Types.TrackNum -> Types.TrackNum) -> Selection -> Selection
- expand_tracks :: Types.TrackNum -> Selection -> Selection
- track_range :: Selection -> (Types.TrackNum, Types.TrackNum)
- tracknums :: Types.TrackNum -> Selection -> [Types.TrackNum]
- min :: Selection -> TrackTime
- max :: Selection -> TrackTime
- range :: Selection -> (TrackTime, TrackTime)
- event_orientation :: Selection -> Types.Orientation
- duration :: Selection -> TrackTime
- set_duration :: TrackTime -> Selection -> Selection
- merge :: Selection -> Selection -> Selection
- union :: Selection -> Selection -> Selection
- move :: TrackTime -> Selection -> Selection
Documentation
Selection | |
|
data Orientation Source #
None is used for display selections, which don't need arrows on them.
Instances
point :: Types.TrackNum -> TrackTime -> Orientation -> Selection Source #
A point is a selection with no duration.
modify_tracks :: (Types.TrackNum -> Types.TrackNum) -> Selection -> Selection Source #
expand_tracks :: Types.TrackNum -> Selection -> Selection Source #
track_range :: Selection -> (Types.TrackNum, Types.TrackNum) Source #
Start and end tracks, from small to large.
tracknums :: Types.TrackNum -> Selection -> [Types.TrackNum] Source #
TrackNums covered by the selection. Since Selections may have out of range tracks, I need the number of tracks to generate a list of valid TrackNums.
merge :: Selection -> Selection -> Selection Source #
Extend the current track and pos, but keep the start track and pos the same.