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

📄 multiplelabel.h

📁 S.C.O.U.R.G.E.是一款类似Rogue的游戏
💻 H
字号:
/***************************************************************************                      multiplelabel.h  -  description                             -------------------    begin                : Thu Mar 09 2004    copyright            : (C) 2004 by Daroth-U    email                : daroth-u@ifrance.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 MULTIPLE_LABEL_H#define MULTIPLE_LABEL_H#include <vector>#include "../constants.h"#include "widget.h"#include "label.h"/**  *@author Daroth-U  */class SDLHandler;class Label;class MultipleLabel : public Widget { private:  int x2, y2;  int dynWidth;  vector<char *> vText;  Label *staticLabel;  Label *dynamicLabel;  bool inside;  int currentTextInd;      public:   MultipleLabel(int x1, int y1, int x2, int y2, char *staticText, int dynWidth);  ~MultipleLabel();  bool isInside(int x, int y);  void addText(char *s);  void setText(int i);    void setNextText();  inline char * getText(int i){if(i >= 0 && i < (int)vText.size()){return vText[i];} else return NULL;}  inline int getCurrentTextInd(){ return currentTextInd; }  inline char * getCurrentText() { return vText[currentTextInd]; }  inline int getNbText(){ return vText.size();}          bool handleEvent(Widget *parent, SDL_Event *event, int x, int y);  void drawWidget(Widget *parent);};#endif

⌨️ 快捷键说明

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