00001
00011 #ifndef HIRAGANA_MENU_H
00012 #define HIRAGANA_MENU_H
00013
00014 #include <basic.h>
00015 #include <btron/libapp.h>
00016 #include <vector>
00017
00019
00022 class HiraganaMenu {
00023
00024 private:
00025
00026 static const int border = 8;
00027 static const int rows = 6;
00028 static const int chsz = 16;
00029
00030 char gmenu_buf[sizeof(GMENU) + sizeof(RECT) * 32];
00031
00032 MNID mid;
00033
00034 static TC mentext[];
00035
00036 public:
00037
00039
00043 HiraganaMenu();
00044
00046 ~HiraganaMenu(){
00047 if (mid >= 0){
00048 mdel_gmn(mid);
00049 }
00050 }
00051
00053
00057 MNID getMenuID() const {
00058 return mid;
00059 }
00060
00062
00067 TC popup(const PNT& pos);
00068
00069 };
00070
00071 #endif // HIRAGANA_MENU_H