PA_API.h File Reference

PA API functions. More...

Go to the source code of this file.

Data Structures

struct  PAPI_all
struct  PAPI_checks
struct  PAPI_buttons
struct  PAPI_sliders

Functions

void PAPI_Init (bool screen)
 Initialise the PA API system. MUST be used prior to any API usage. MUST be set on a 8bit background, don't forget to intialise it too !
void PAPI_SetImages (bool screen, void *images, void *palette)
 Change the image set used by the API system. This allows you to have your own buttons and everything... I'll explain later on how to correctly use this
void PAPI_ReInit (bool screen)
 ReInitialise the PA API system. This resets all the buttons, checkboxess, and all, you'll just have to clean the screen
void PAPI_LoadPal (bool screen)
 Loads the API palette in background colors 208. Use this each time you change the background palette
u8 PAPI_CreateCheck (bool screen, s16 x, s16 y, bool *var)
 Creates a new Checkbox. Returns the number of the checkbox in the API system
void PAPI_CheckCheck (void)
 Checks all the checkboxes for a new press
u8 PAPI_CreateButton (bool screen, s16 x, s16 y, s16 lx, s16 ly, fp funct, char *text, u8 color, s8 textsize)
 Creates a new Button. Returns the number of the button in the API system
void PAPI_CheckButton (void)
 Checks all the buttons for a new press

Variables

PAPI_checks PAPI_check [2][32]
PAPI_all PAPI_checkinfo [2]
PAPI_buttons PAPI_button [2][64]
PAPI_all PAPI_buttoninfo [2]


Detailed Description

PA API functions.

API functions, to create buttons, checkkboxes, and more to come !


Generated on Thu Feb 9 15:37:41 2006 for PAlib by  doxygen 1.3.9.1