alphaTab.rendering.StaffSystemBounds
Represents the bounds of a staff system.
class StaffSystemBoundsPropertiesโ
barsโ
Gets or sets the list of master bar bounds related to this staff system.
- JavaScript
- C#
- Kotlin
bars: MasterBarBounds[];IList<MasterBarBounds> Bars { get; set; }var bars: alphaTab.collections.List<MasterBarBounds>boundsLookupโ
Gets or sets a reference to the parent bounds lookup.
- JavaScript
- C#
- Kotlin
indexโ
Gets or sets the index of the bounds within the parent lookup. This allows fast access of the next/previous system.
- JavaScript
- C#
- Kotlin
index: number;double Index { get; set; }var index: DoubleisFinishedโ
Whether this system's bounds are already scaled and sorted, either via finish or because the
renderer built them that way. Prevents double-scaling when the parent BoundsLookup is preserved
across partial renders and finish is invoked again on a mix of systems.
- JavaScript
- C#
- Kotlin
isFinished: boolean;bool IsFinished { get; set; }var isFinished: BooleanrealBoundsโ
Gets or sets the actual bounds of the elements in this staff system including whitespace areas.
visualBoundsโ
Gets or sets the bounds covering all visually visible elements of this staff system.
Methodsโ
addBarโ
Adds a new master bar to this lookup.
- JavaScript
- C#
- Kotlin
addBar(bounds: MasterBarBounds): voidvoid AddBar(MasterBarBounds bounds)fun addBar(bounds: MasterBarBounds): Unit| Parameter | Summary |
|---|---|
boundsAll | The master bar bounds to add. |
findBarAtPosโ
Tries to find the master bar bounds that are located at the given X-position.
- JavaScript
- C#
- Kotlin
findBarAtPos(x: number): MasterBarBounds | nullMasterBarBounds? FindBarAtPos(double x)fun findBarAtPos(x: Double): MasterBarBounds?| Parameter | Summary |
|---|---|
xAll | The X-position to find a master bar. |
Returnsโ
The master bounds at the given X-position.
finishโ
Finished the lookup for optimized access. Idempotent: once finished, further calls are no-ops so preserved systems survive partial renders without being re-scaled.
- JavaScript
- C#
- Kotlin
finish(scale?: number): voidvoid Finish(double? scale)fun finish(scale: Double?): Unit| Parameter | Summary |
|---|---|
scaleAll | (no description) |