MIDITimeTableGridLayer
public class MIDITimeTableGridLayer : CALayer
Draws grid for each row, bar, beat and subbeat optionally with customisable line widths and colors for MIDITimeTableView.
-
Property to show row lines. Defaults true.
Declaration
Swift
public var showsRowLines: Bool -
Property to show bar lines. Defaults true.
Declaration
Swift
public var showsBarLines: Bool -
Property to show beat lines. Defaults true.
Declaration
Swift
public var showsBeatLines: Bool -
Property to show subbeat lines. Defaults true.
Declaration
Swift
public var showsSubbeatLines: Bool -
Color of row lines. Defaults dark gray.
Declaration
Swift
public var rowLineColor: UIColor -
Color of bar lines. Defaults black.
Declaration
Swift
public var barLineColor: UIColor -
Color of beat lines. Defaults gray.
Declaration
Swift
public var beatLineColor: UIColor -
Color of subbeat lines. Defaults light gray.
Declaration
Swift
public var subbeatLineColor: UIColor -
Widths of row lines. Defaults 1.
Declaration
Swift
public var rowLineWidth: CGFloat -
Widths of bar lines. Defaults 1.
Declaration
Swift
public var barLineWidth: CGFloat -
Widths of beat lines. Defaults 0.5.
Declaration
Swift
public var beatLineWidth: CGFloat -
Widths of subbeat lines. Defaults 0.5.
Declaration
Swift
public var subbeatLineWidth: CGFloat -
Number of rows in the time table.
Declaration
Swift
public var rowCount: Int -
Number of measure bars in the time table.
Declaration
Swift
public var barCount: Int -
Number of beats in a measure.
Declaration
Swift
public var beatCount: Int -
Number of grid subdivisions per beat, used for drawing subbeat lines. Defaults 4.
Declaration
Swift
public var snapResolution: Int -
Height of each row in the time table.
Declaration
Swift
public var rowHeight: CGFloat -
Width of the header cell in each row of the time table.
Declaration
Swift
public var rowHeaderWidth: CGFloat -
Width of a measure in the time table.
Declaration
Swift
public var measureWidth: CGFloat -
Heigth of the measure view in the time table.
Declaration
Swift
public var measureHeight: CGFloat -
The rect (in this layer’s own coordinate space, i.e. content coordinates) to draw grid lines within. Everything outside it is skipped entirely rather than built and clipped visually, so the number of line segments this layer builds tracks what’s on screen, not the size of the whole document. The owning
MIDITimeTableViewkeeps this in sync with its visible viewport (plus a small overscan margin) on every layout pass, including on scroll. Defaults to a large placeholder so a layer used standalone, before anything sets a real value, still draws.Named distinctly from
CALayer‘s own (unrelated, read-only)visibleRectto avoid colliding with it.Declaration
Swift
public var virtualizationRect: CGRect -
Undocumented
Declaration
Swift
public override init() -
Undocumented
Declaration
Swift
public override init(layer: Any) -
Undocumented
Declaration
Swift
public required init?(coder aDecoder: NSCoder) -
Undocumented
Declaration
Swift
public override func layoutSublayers()