alphaTab.rendering.MasterBarBounds
Represents the boundaries of a list of bars related to a single master bar.
class MasterBarBoundsProperties​
bars​
Gets or sets the list of individual bars within this lookup.
index​
The MasterBar index within the data model represented by these bounds.
- JavaScript
- C#
- Kotlin
index: number;double Index { get; set; }var index: DoubleisFirstOfLine​
Gets or sets a value indicating whether this bounds are the first of the line.
- JavaScript
- C#
- Kotlin
isFirstOfLine: boolean;bool IsFirstOfLine { get; set; }var isFirstOfLine: BooleanlineAlignedBounds​
Gets or sets the actual bounds which are exactly aligned with the lines of the staffs.
realBounds​
Gets or sets the actual bounds of the elements in this master bar including whitespace areas.
staffSystemBounds​
Gets or sets a reference to the parent staffSystemBounds .
- JavaScript
- C#
- Kotlin
staffSystemBounds: StaffSystemBounds | null;StaffSystemBounds? StaffSystemBounds { get; set; }var staffSystemBounds: StaffSystemBounds?staveGroupBounds​
Gets or sets a reference to the parent staffSystemBounds .
- JavaScript
- C#
- Kotlin
readonly staveGroupBounds: StaffSystemBounds | null;StaffSystemBounds? StaveGroupBounds { get; }val staveGroupBounds: StaffSystemBounds?visualBounds​
Gets or sets the bounds covering all visually visible elements spanning all bars of this master bar.
Methods​
addBar​
Adds a new bar to this lookup.
| Parameter | Summary |
|---|---|
boundsAll | The bar bounds to add to this lookup. |
addBeat​
Adds a new beat to the lookup.
- JavaScript
- C#
- Kotlin
addBeat(bounds: BeatBounds): voidvoid AddBeat(BeatBounds bounds)fun addBeat(bounds: BeatBounds): Unit| Parameter | Summary |
|---|---|
boundsAll | The beat bounds to add. |
findBeatAtPos​
Tries to find a beat at the given location.
| Parameter | Summary |
|---|---|
xAll | The absolute X position where the beat spans across. |
Returns​
The beat that spans across the given point, or null if none of the contained bars had a beat at this position.
finish​
Finishes the lookup object and optimizes itself for fast access.
- JavaScript
- C#
- Kotlin
finish(scale?: number): voidvoid Finish(double? scale)fun finish(scale: Double?): Unit| Parameter | Summary |
|---|---|
scaleAll | (no description) |