1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-24 13:38:29 +02:00
VVVVVV/desktop_version/src/Textbox.h
Misa 2af396fb30 Consistently use angle brackets for SDL.h includes
That's how it should be done, because the SDL headers aren't going to be
installed in this repository. The game was a bit inconsistent before but
now it isn't anymore.
2020-07-19 21:37:40 -04:00

53 lines
689 B
C++

#ifndef TEXTBOX_H
#define TEXTBOX_H
#include <SDL.h>
#include <string>
#include <vector>
class textboxclass
{
public:
textboxclass();
void centerx();
void centery();
void adjust();
void initcol(int rr, int gg, int bb);
void setcol(int rr, int gg, int bb);
void update();
void remove();
void removefast();
void resize();
void addline(std::string t);
public:
//Fundamentals
std::vector<std::string> line;
int xp, yp, lw, w, h;
int x,y;
int r,g,b;
int tr,tg,tb;
SDL_Rect textrect;
int timer;
float tl;
float prev_tl;
int tm;
int max;
bool allowspecial;
};
#endif /* TEXTBOX_H */