You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
496 B

#include <string>
#include <vector>
class TextBlock {
// methods
void print();
void insertAt(std::string str, size_t x, size_t y);
void deleteAt(size_t x, size_t y, size_t count);
std::string getValue();
std::string getValueUpTo(size_t x, size_t y);
size_t setValue(std::string value);
size_t lineLength(size_t y);
// properties
std::vector<std::string> lines;
bool trailingNewline = false;