X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fgui.h;fp=src%2Fgui%2Fgui.h;h=0dbf0dfffb8089e4ef544e4c15186fab63b241f4;hb=c970c23a2e5c531cfc66642dfc5ff48a0655f14f;hp=625b20c9ee0e536b54a5fb6d62444704e7ec0ecb;hpb=efc3eeaa6f1b4147bc7747ec8691720f7f8daeeb;p=apple2 diff --git a/src/gui/gui.h b/src/gui/gui.h index 625b20c..0dbf0df 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -23,12 +23,19 @@ class GUI static void MouseDown(int32_t, int32_t, uint32_t); static void MouseUp(int32_t, int32_t, uint32_t); static void MouseMove(int32_t, int32_t, uint32_t); + static bool KeyDown(uint32_t); static void HandleIconSelection(SDL_Renderer *); static void AssembleDriveIcon(SDL_Renderer *, int); static void DrawEjectButton(SDL_Renderer *, int); + static void DrawNewDiskButton(SDL_Renderer *, int); static void DrawDriveLight(SDL_Renderer *, int); static void DrawCharArray(SDL_Renderer *, const char *, int x, int y, int w, int h, int r, int g, int b); + static void DrawCharacter(SDL_Renderer *, int, int, uint8_t, bool inv = false); + static void DrawCharacterVert(SDL_Renderer *, int, int, uint8_t, bool inv = false); + static void DrawString(SDL_Renderer *, int, int, const char *, bool inv = false); + static void DrawStringVert(SDL_Renderer *, int, int, const char *, bool inv = false); + static void DrawBox(SDL_Renderer *, int, int, int, int, int r = 0x00, int g = 0xAA, int b = 0x00); static void HandleGUIState(void); static void DrawSidebarIcons(SDL_Renderer *); static void Render(SDL_Renderer *); @@ -41,6 +48,10 @@ class GUI static int32_t iconSelected; static bool hasKeyboardFocus; static bool powerOnState; + + private: + static SDL_Texture * charStamp; + static uint32_t stamp[]; }; #endif // __GUI_H__