alphaTab.rendering.BarBounds
Represents the boundaries of a single bar.
class BarBoundsProperties​
bar​
Gets or sets the bar related to this boundaries.
beats​
Gets or sets a list of the beats contained in this lookup.
- JavaScript
- C#
- Kotlin
beats: BeatBounds[];IList<BeatBounds> Beats { get; set; }var beats: alphaTab.collections.List<BeatBounds>masterBarBounds​
Gets or sets the reference to the related MasterBarBounds
- JavaScript
- C#
- Kotlin
masterBarBounds: MasterBarBounds;MasterBarBounds MasterBarBounds { get; set; }var masterBarBounds: MasterBarBoundsrealBounds​
Gets or sets the actual bounds of the elements in this bar including whitespace areas.
visualBounds​
Gets or sets the bounds covering all visually visible elements spanning this bar.
Methods​
addBeat​
Adds a new beat to this 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 the beat at the given X-position.
- JavaScript
- C#
- Kotlin
findBeatAtPos(x: number): BeatBounds | nullBeatBounds? FindBeatAtPos(double x)fun findBeatAtPos(x: Double): BeatBounds?| Parameter | Summary |
|---|---|
xAll | The X-position of the beat to find. |
Returns​
The beat at the given X-position or null if none was found.
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) |