C# Class AlphaTab.Rendering.Staves.StaveGroup

A stave consists of a list of different staves and groups them using an accolade.
Datei anzeigen Open project: CoderLine/alphaTab Class Usage Examples

Public Methods

Method Description
AddBars ( AlphaTab.Model.Track tracks, int barIndex ) : AddBarsToStaveGroupResult
AddStave ( AlphaTab.Model.Track track, Staff staff ) : void
FinalizeGroup ( ScoreLayout scoreLayout ) : void
GetBarX ( int index ) : float
Paint ( float cx, float cy, ICanvas canvas ) : void
PaintPartial ( float cx, float cy, ICanvas canvas, int startIndex, int count ) : void
RevertLastBar ( ) : void
ScaleToWidth ( float width ) : void
StaveGroup ( ) : System

Private Methods

Method Description
BuildBoundingsLookup ( float cx, float cy ) : void
GetStaveTrackGroup ( AlphaTab.Model.Track track ) : StaveTrackGroup

Method Details

AddBars() public method

public AddBars ( AlphaTab.Model.Track tracks, int barIndex ) : AddBarsToStaveGroupResult
tracks AlphaTab.Model.Track
barIndex int
return AddBarsToStaveGroupResult

AddStave() public method

public AddStave ( AlphaTab.Model.Track track, Staff staff ) : void
track AlphaTab.Model.Track
staff Staff
return void

FinalizeGroup() public method

public FinalizeGroup ( ScoreLayout scoreLayout ) : void
scoreLayout AlphaTab.Rendering.Layout.ScoreLayout
return void

GetBarX() public method

public GetBarX ( int index ) : float
index int
return float

Paint() public method

public Paint ( float cx, float cy, ICanvas canvas ) : void
cx float
cy float
canvas ICanvas
return void

PaintPartial() public method

public PaintPartial ( float cx, float cy, ICanvas canvas, int startIndex, int count ) : void
cx float
cy float
canvas ICanvas
startIndex int
count int
return void

RevertLastBar() public method

public RevertLastBar ( ) : void
return void

ScaleToWidth() public method

public ScaleToWidth ( float width ) : void
width float
return void

StaveGroup() public method

public StaveGroup ( ) : System
return System