# Module cocos.menu

A Layer that implements a simple menu

## Classes

| Menu Abstract base class for menu layers.
| MenuItem A menu item that shows a label.
| ImageMenuItem A menu item that shows a selectable Image
| MultipleMenuItem A menu item for switching between multiple values.
| ToggleMenuItem A menu item for a boolean toggle option.
| EntryMenuItem A menu item for entering a value.
| ColorMenuItem A menu item for selecting a color.

## Functions

| verticalMenuLayout(menu)
| fixedPositionMenuLayout(positions)
| shake() Predefined action that performs a slight rotation and then goes back to the original rotation position.
| shake_back() Predefined action that rotates to 0 degrees in 0.1 seconds
| zoom_in() Predefined action that scales to 1.5 factor in 0.2 seconds
| zoom_out() Predefined action that scales to 1.0 factor in 0.2 seconds

## Constants

| CENTER = ``'``center``'``
| LEFT = ``'``left``'``
| RIGHT = ``'``right``'``
| TOP = ``'``top``'``
| BOTTOM = ``'``bottom``'``