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)