head 1.1; branch 1.1.1; access ; symbols start:1.1.1.1 PAlibDoc:1.1.1; locks ; strict; comment @# @; 1.1 date 2005.11.02.08.30.21; author jandujar; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.02.08.30.21; author jandujar; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @ PA_lib: PA_API.h Source File

PA_API.h

Go to the documentation of this file.
00001 #ifndef _PA_PAPI
00002 #define _PA_API
00003 
00004 
00011 #include "PA_Draw.h"
00012 #include "PA_Text.h"
00013 #include "PA_Palette.h"
00014 
00015 
00016 
00023 typedef struct{
00024        s8 n; // Nombre
00025        u8 first, last; // Premier et dernier
00026        u8 free[128]; //Emplacements dispos...
00027        u8 touched; // Touché
00028        u8 *image[4]; // Different images...
00029 } PAPI_all;
00030 
00031 typedef struct{
00032        bool *var; // Variable à changer, stocke l'état...
00033        bool value; // valeur, pour voir si l'utilisateur a changé la valeur ou pas...
00034        s16 x, y; // Poour la position...
00035        s8 previous, next; // Pour savoir qui tester avant/apres
00036 } PAPI_checks;
00037 
00038 extern PAPI_checks PAPI_check[2][32]; // 32 possibles par écran
00039 extern PAPI_all PAPI_checkinfo[2];
00040 
00041 typedef struct{
00042        fp funct; // Variable à changer, stocke l'état...
00043        char text[20]; // Texte à afficher sur le bouton...
00044        s8 textsize; // Taille du texte, 2 par défaut
00045        u8 color; // Couleur de la palette pour le texte
00046        s16 x, y, lx, ly; // Pour la position... et la taille
00047        s8 previous, next; // Pour savoir qui tester avant/apres
00048 } PAPI_buttons;
00049 
00050 typedef struct{
00051        s32* var; // Variable à changer, stocke l'état...
00052        s32 value; // valeur, pour voir si l'utilisateur a changé la valeur ou pas...
00053        bool sens; // 0 pour hori, 1 pour verti
00054        s32 min, max; // Valeurs min et max à prendre
00055        s16 x, y, lx; // Pour la position... et la taille
00056        s8 previous, next; // Pour savoir qui tester avant/apres
00057 } PAPI_sliders;
00058 
00059 extern PAPI_buttons PAPI_button[2][64]; //64 possibles par écran
00060 extern PAPI_all PAPI_buttoninfo[2];
00061 
00062 
00063 // Init functions
00064 
00065 
00074 void PAPI_Init(bool screen);
00075 
00076 
00091 void PAPI_SetImages(bool screen, void *images, void *palette);
00092 
00101 void PAPI_ReInit(bool screen);
00102 
00111 void PAPI_LoadPal(bool screen);
00112 
00113 
00131 u8 PAPI_CreateCheck(bool screen, s16 x, s16 y, bool *var);
00132 
00133 
00134 
00135 
00141 void PAPI_CheckCheck(void);
00142 
00143 
00144 
00177 u8 PAPI_CreateButton(bool screen, s16 x, s16 y, s16 lx, s16 ly, fp funct, char* text, u8 color, s8 textsize);
00178 
00184 void PAPI_CheckButton(void);
00185 
00186 
00187 
00188  // end of PAPI
00190 
00191 
00192 
00193 #endif
00194 
00195 

Generated on Fri Oct 28 23:16:50 2005 for PA_lib by  doxygen 1.3.9.1
@ 1.1.1.1 log @Initial import of PalibDoc, begin on PAlib0.64b @ text @@