Package: pumpkin.ui

ScreenUtils


Description

The ScreenUtils is a helper class for binding events and laying out DisplayObjects on the Stage.



Functions

center

Center a sprite to the Stage.

bottomLeft

[beta] Aligns a DisplayObject to the bottom left of the Stage.

bottomRight

[beta] Aligns a DisplayObject to the bottom right of the Stage.

bottom

[beta] Aligns a DisplayObject to the bottom of the Stage.

bottomCenter

[beta] Aligns a DisplayObject to the bottom center of the Stage.

alignRight

[beta] Aligns a DisplayObject to the Right of the Stage.

createButton

Create button with childName and bind button click event.

createButton

Create button and bind button click event.

setupButtonWithLabel

Create button and bind button click event, optionally set a label text field.

createButtonWithLabel

Create button and bind button click event, optionally set a label text field.

createButtonWithLabel

Create button and bind button click event, optionally set a label text field.

createButtonWithLabelAutoFit

Create button with label and auto fit the text to the label area.

createButtonWithLabelWithoutMouseOver

Create button with label and add a mouse over.