Nilorea Library

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros Groups
Data Structures | Macros | Typedefs | Functions
lexmenu.h File Reference
`#include <malloc.h>`
`#include <allegro.h>`
Include dependency graph for lexmenu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures

struct | LexMenuItemItorStruct
struct | LexMenuEventStruct
struct | LexMenuItemStruct
struct | LexMenuStruct

## Macros

#define | LEX_MENU_IMG_COUNT 4
#define | LEX_MENU_SND_COUNT 5
#define | LEX_MENU_CBF_COUNT 9
#define | LEX_MENU_ALIGN_LEFT 0
#define | LEX_MENU_ALIGN_TOP 0
#define | LEX_MENU_ALIGN_CENTER 1
#define | LEX_MENU_ALIGN_RIGHT 2
#define | LEX_MENU_ALIGN_BOTTOM 2
#define | LEX_MENU_NORMAL 0
#define | LEX_MENU_ACTIVE 1
#define | LEX_MENU_PRESSED 2
#define | LEX_MENU_DISABLED 3
#define | LEX_MENU_ON_ENTER 0
#define | LEX_MENU_ON_LEAVE 1
#define | LEX_MENU_ON_PRESS 2
#define | LEX_MENU_ON_RELEASE 3
#define | LEX_MENU_ON_FIRE 4
#define | LEX_MENU_ON_MOVE 5
#define | LEX_MENU_ON_DRAG 6
#define | LEX_MENU_ON_DRAW 7
#define | LEX_MENU_ON_DRAW_DONE 8
#define | LEX_MENU_MOUSE 1
#define | LEX_MENU_KEYBOARD 2
#define | LEX_MENU_MOUSE_AND_KB 3

## Typedefs

typedef struct LexMenuItemStruct | LexMenuItem
typedef struct LexMenuItemItorStruct | LexMenuItemItor
typedef struct LexMenuStruct | LexMenu
typedef struct LexMenuEventStruct | LexMenuEvent
typedef void(* | LexMenuCallback )(LexMenuEvent *)

## Functions

LexMenu * | lexMenuCreate (BITMAP *bg)
LexMenu * | lexMenuDestroy (LexMenu *menu)
LexMenuItem * | lexMenuCreateItem ()
void | lexMenuAddItem (LexMenu *menu, LexMenuItem *item)
int | lexMenuRun (LexMenu *menu, BITMAP *dst)
void | lexMenuSetImage (LexMenuItem *item, int state, BITMAP *img)
void | lexMenuSetSample (LexMenuItem *item, int event, SAMPLE *sample)
void | lexMenuSetCallback (LexMenuItem *item, int callbackID, LexMenuCallback func)
LexMenu * | lexLoadMenuFromFile (const char *filename, const char *screenname)
BITMAP * | lexMenuGetBitmap (LexMenu *menu, int item, int whichone)

## Detailed Description

common headers and low-level hugly functions & define

Author
  Castagnier Mickael

Version
  1.0

Date
  24/03/05

Definition in file lexmenu.h.