Skip to main content

alphaTab.rendering.BarBounds

Represents the boundaries of a single bar.

 class BarBounds

Propertiesโ€‹

barโ€‹

Gets or sets the bar related to this boundaries.

bar: Bar;

beatsโ€‹

Gets or sets a list of the beats contained in this lookup.

beats: BeatBounds[];

masterBarBoundsโ€‹

Gets or sets the reference to the related MasterBarBounds

masterBarBounds: MasterBarBounds;

realBoundsโ€‹

Gets or sets the actual bounds of the elements in this bar including whitespace areas.

realBounds: Bounds;

visualBoundsโ€‹

Gets or sets the bounds covering all visually visible elements spanning this bar.

visualBounds: Bounds;

Methodsโ€‹

addBeatโ€‹

Adds a new beat to this lookup.

addBeat(bounds: BeatBounds): void
ParameterSummary
boundsAll

The beat bounds to add.

findBeatAtPosโ€‹

Tries to find the beat at the given X-position.

findBeatAtPos(x: number): BeatBounds | null
ParameterSummary
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.

finish(scale?: number): void
ParameterSummary
scaleAll

(no description)