]> Shamusworld >> Repos - apple2/blob - src/gui/gui.h
Set eol-style to native to keep things sane.
[apple2] / src / gui / gui.h
1 //
2 // GUI.H
3 //
4 // Graphical User Interface support
5 //
6
7 #ifndef __GUI_H__
8 #define __GUI_H__
9
10 #include <SDL.h>
11 #include <vector>
12
13 class Menu;                                                                             // Now *this* should work, since we've got pointers...
14 class MenuItems;
15 class Element;
16
17 class GUI
18 {
19         public:
20                 GUI(SDL_Surface *);
21                 ~GUI();
22                 void AddMenuTitle(const char *);
23                 void AddMenuItem(const char *, Element * (* a)(void) = NULL, SDLKey k = SDLK_UNKNOWN);
24                 void CommitItemsToMenu(void);
25                 void Run(void);
26                 void Stop(void);
27
28         private:
29                 Menu * mainMenu;
30                 MenuItems * menuItem;
31                 std::vector<Element *> windowList;
32                 bool exitGUI;
33 };
34
35 #endif  // __GUI_H__