1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02:00
VVVVVV/desktop_version/src/Textbox.h

56 lines
823 B
C
Raw Normal View History

2020-01-01 21:29:24 +01:00
#ifndef TEXTBOX_H
#define TEXTBOX_H
#include <stdint.h>
2020-01-01 21:29:24 +01:00
#include <string>
#include <vector>
class textboxclass
{
public:
textboxclass(void);
2020-01-01 21:29:24 +01:00
void centerx(void);
2020-01-01 21:29:24 +01:00
void centery(void);
2020-01-01 21:29:24 +01:00
void adjust(void);
2020-01-01 21:29:24 +01:00
void initcol(int rr, int gg, int bb);
void update(void);
2020-01-01 21:29:24 +01:00
void remove(void);
2020-01-01 21:29:24 +01:00
void removefast(void);
2020-01-01 21:29:24 +01:00
void resize(void);
2020-01-01 21:29:24 +01:00
void addline(const std::string& t);
void pad(size_t left_pad, size_t right_pad);
void padtowidth(size_t new_w);
void centertext();
2020-01-01 21:29:24 +01:00
public:
//Fundamentals
std::vector<std::string> lines;
int xp, yp, w, h;
2020-01-01 21:29:24 +01:00
int r,g,b;
int timer;
float tl;
float prev_tl;
2020-01-01 21:29:24 +01:00
int tm;
/* Whether to flip text box y-position in Flip Mode. */
bool flipme;
int rand;
uint32_t print_flags;
2020-01-01 21:29:24 +01:00
};
#endif /* TEXTBOX_H */