⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 containergui.h

📁 S.C.O.U.R.G.E.是一款类似Rogue的游戏
💻 H
字号:
/***************************************************************************                          containergui.h  -  description                             -------------------    begin                : Sat May 3 2003    copyright            : (C) 2003 by Gabor Torok    email                : cctorok@yahoo.com ***************************************************************************//*************************************************************************** *                                                                         * *   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 CONTAINER_GUI_H#define CONTAINER_GUI_H#include <iostream>#include <string>#include "constants.h"#include "scourge.h"#include "item.h"#include "gui/window.h"#include "gui/widget.h"#include "gui/button.h"#include "gui/scrollinglist.h"#include "gui/draganddrop.h"class ContainerGui : public DragAndDropHandler { private:  Scourge *scourge;  Item *container;  Window *win;  Button *openButton;  ScrollingList *list;  Label *label;  char **containedItemNames; public:  ContainerGui(Scourge *scourge, Item *container, int x, int y);  ~ContainerGui();  bool handleEvent(SDL_Event *event);  bool handleEvent(Widget *widget, SDL_Event *event);  inline Item *getContainer() { return container; }  inline Window *getWindow() { return win; }  inline void refresh() { showContents(); }  // drag and drop handling  void receive(Widget *widget);  bool startDrag(Widget *widget, int x=0, int y=0); private:  void showContents();  void dropItem();  };#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -