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) |