diff options
author | nathan <thenathansmithsmith@gmail.com> | 2023-03-20 06:34:54 +0000 |
---|---|---|
committer | nathan <thenathansmithsmith@gmail.com> | 2023-03-20 06:34:54 +0000 |
commit | dd98918fe32b9dcdfc482a2c68481e93ceb50623 (patch) | |
tree | bf2ea0e4f4e47facde93c0cf277adb2031f7b3ec /src/app_window.h | |
download | fltk_snake-dd98918fe32b9dcdfc482a2c68481e93ceb50623.tar.gz fltk_snake-dd98918fe32b9dcdfc482a2c68481e93ceb50623.tar.bz2 fltk_snake-dd98918fe32b9dcdfc482a2c68481e93ceb50623.zip |
Diffstat (limited to 'src/app_window.h')
-rw-r--r-- | src/app_window.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/app_window.h b/src/app_window.h new file mode 100644 index 0000000..87f9568 --- /dev/null +++ b/src/app_window.h @@ -0,0 +1,18 @@ +#pragma once + +#include "program_data.h" +#include "snake_map.h" + +class AppWindow : public Fl_Double_Window { + public: + AppWindow(MainData * md, int X, int Y, const char * l=0) : Fl_Double_Window(X, Y, l) { + main_init(md, X, Y, l); + } + private: + MainData * mdata; + + static void update_cb(void * d); + static void draw_cb(void * d); + + void main_init(MainData * md, int X, int Y, const char * l=0); +}; |