📄 menumanager.h
字号:
/*************************************************************************** menumanager.h - description ------------------- begin : Tue Feb 29 2000 copyright : (C) 2000 by Michael Speck email : ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef MENUMANAGER_H#define MENUMANAGER_H/** *@author Michael Speck */#include "menu.h"class MenuManager {public: MenuManager(SDL_Surface *bkgnd, int cx, int cy, SFnt *fnt, SFnt *enlgt_fnt, int n, char *vck); ~MenuManager(); int InsertMenu(int i, Menu *m); Menu* CurMenu(); Menu* GetMenu(int i); void SetCurMenu(int i); int KeyEvent(SDL_KeyboardEvent *event); void Activate(); void Prepare(); int ButtonEvent(SDL_MouseButtonEvent button);private: SDL_Surface *backgnd; SFnt *font; SFnt *enlgt_font; int menu_num; int x, y; Menu **menus; Menu *cur_menu; char *val_ctrl_keys;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -