4 // Graphical User Interface support
13 class Menu; // Now *this* should work, since we've got pointers...
23 void AddMenuTitle(const char *);
24 void AddMenuItem(const char *, Element * (* a)(void) = NULL, SDL_Scancode k = SDL_SCANCODE_UNKNOWN);
25 void CommitItemsToMenu(void);
32 std::list<Element *> windowList;
35 SDL_Rect mouse, oldMouse;
45 // Everything else is a class method...
46 static void Init(SDL_Renderer *);
47 static void MouseDown(int32_t, int32_t, uint32_t);
48 static void MouseUp(int32_t, int32_t, uint32_t);
49 static void MouseMove(int32_t, int32_t, uint32_t);
50 static void Render(SDL_Renderer *);
51 static void HandleGUIState(void);
54 static SDL_Texture * overlay;
55 static SDL_Rect olSrc;
56 static SDL_Rect olDst;
57 static bool sidebarOut;
58 static int sidebarState;