Annotation of hatari/src/includes/sdlgui.h, revision 1.1

1.1     ! root        1: /*
        !             2:   Hatari
        !             3: 
        !             4:   Header for the tiny graphical user interface for Hatari.
        !             5: */
        !             6: 
        !             7: #include <SDL.h>
        !             8: 
        !             9: enum
        !            10: {
        !            11:   SGBOX,
        !            12:   SGTEXT,
        !            13:   SGBUTTON,
        !            14:   SGRADIOBUT,
        !            15:   SGCHECKBOX,
        !            16:   SGPOPUP
        !            17: };
        !            18: 
        !            19: 
        !            20: /* Object flags: */
        !            21: #define SG_TOUCHEXIT  1
        !            22: #define SG_EXIT       2  /* Not yet tested */
        !            23: 
        !            24: /* Object states: */
        !            25: #define SG_SELECTED   1
        !            26: 
        !            27: 
        !            28: typedef struct
        !            29: {
        !            30:   int type;             /* What type of object */
        !            31:   int flags;            /* Object flags */
        !            32:   int state;           /* Object state */
        !            33:   int x, y;             /* The offset to the upper left corner */
        !            34:   int w, h;             /* Width and height */
        !            35:   char *txt;            /* Text string */
        !            36: }  SGOBJ;
        !            37: 
        !            38: 
        !            39: int SDLGui_Init(void);
        !            40: int SDLGui_UnInit(void);
        !            41: int SDLGui_DoDialog(SGOBJ *dlg);
        !            42: int SDLGui_PrepareFont(void);
        !            43: void SDLGui_CenterDlg(SGOBJ *dlg);
        !            44: int SDLGui_FileSelect(char *path_and_name);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.