Skip to main content

alphaTab.rendering.StaffSystemBounds

Represents the bounds of a staff system.

 class StaffSystemBounds

Properties​

bars​

Gets or sets the list of master bar bounds related to this staff system.

boundsLookup​

Gets or sets a reference to the parent bounds lookup.

boundsLookup: BoundsLookup;

index​

Gets or sets the index of the bounds within the parent lookup. This allows fast access of the next/previous system.

index: number;

realBounds​

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

realBounds: Bounds;

visualBounds​

Gets or sets the bounds covering all visually visible elements of this staff system.

visualBounds: Bounds;

Methods​

addBar​

Adds a new master bar to this lookup.

addBar(bounds: MasterBarBounds): void
ParameterSummary
boundsAll

The master bar bounds to add.

findBarAtPos​

Tries to find the master bar bounds that are located at the given X-position.

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

finish(scale?: number): void
ParameterSummary
scaleAll

(no description)