Skip to main content

alphaTab.platform.IContainer

This interface represents a container control in the UI layer.

 interface IContainer

Propertiesโ€‹

heightโ€‹

Gets or sets the height of the control.

height: number;

isVisibleโ€‹

Gets a value indicating whether the control is visible.

readonly isVisible: boolean;

mouseDownโ€‹

This event occurs when a mouse/finger press happened on the control.

mouseMoveโ€‹

This event occurs when a mouse/finger moves on top of the control. While a press started on this control is active, moves are reported even if they happen outside the control.

mouseUpโ€‹

This event occurs when a mouse/finger is released from the control. Every press started on this control ends with exactly one mouseUp, also when the release happens outside the control or the gesture is cancelled by the system.

resizeโ€‹

This event occurs when the control was resized.

resize: IEventEmitter;

scrollLeftโ€‹

Gets or sets the horizontal scroll offset of this control if it is scrollable.

scrollLeft: number;

scrollTopโ€‹

Gets or sets the vertical scroll offset of this control if it is scrollable.

scrollTop: number;

widthโ€‹

Gets or sets the width of the control.

width: number;

Methodsโ€‹

appendChildโ€‹

Adds the given child control to this container.

appendChild(child: IContainer): void
ParameterSummary
childAll

The child control to add.

clearโ€‹

Clears the container and removes all child items.

clear(): void

setBoundsโ€‹

Sets the position and size of the container for efficient repositioning.

setBounds(x: number, y: number, w: number, h: number): void
ParameterSummary
xAll

The X-position

yAll

The Y-position

wAll

The width

hAll

The height

stopAnimationโ€‹

Stops the animations of this control immediately.

stopAnimation(): void

transitionToXโ€‹

Tells the control to move to the given X-position in the given time.

transitionToX(duration: number, x: number): void
ParameterSummary
durationAll

The milliseconds that should be needed to reach the new X-position

xAll

The new X-position