#include <Menu.h>
|
| TMenuItem (int a_nX, int a_nY, int a_nWidth, int a_nHeight, TMenu *a_pParent, void(*a_pCallBack)()) |
| Menu item Constructor. More...
|
|
void | ProcessMouseEvent (ALLEGRO_MOUSE_EVENT *mouse_event) |
| Mouse event handler for menu item. More...
|
|
void | Draw (ALLEGRO_FONT *a_pFont) |
| Draw this menu item. More...
|
|
TMenuItem is a clickable menuItem that calls a given callback function when clicked
TMenuItem::TMenuItem |
( |
int |
a_nX, |
|
|
int |
a_nY, |
|
|
int |
a_nWidth, |
|
|
int |
a_nHeight, |
|
|
TMenu * |
a_pParent, |
|
|
void(*)() |
a_pCallback |
|
) |
| |
Menu item Constructor.
- Parameters
-
int | a_nX X position of menu item |
int | a_nY Y position of menu item |
int | a_nWidth Width of menu item |
int | a_nHeight Height of menu item |
TMenu | * a_pParent the owner of this menu item... A menu |
void | (* a_pCallBack)() Pointer to a function to be called when this menuitem is clicked |
void TMenuItem::Draw |
( |
ALLEGRO_FONT * |
a_pFont | ) |
|
Draw this menu item.
- Parameters
-
ALLEGRO_FONT | * a_pFont a pointer to a font to use for text |
void TMenuItem::ProcessMouseEvent |
( |
ALLEGRO_MOUSE_EVENT * |
mouse_event | ) |
|
Mouse event handler for menu item.
- Parameters
-
ALLEGRO_MOUSE_EVENT | * mouse_event a mouse event passed by allegro |
The documentation for this class was generated from the following files: