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โ
use staffSystemBounds
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) |