Default constructor (blank text)
| 24 | |
| 25 | /// Default constructor (blank text) |
| 26 | TextReader::TextReader() : width(1024), height(768), x_offset(0), y_offset(0), text(""), font("Arial"), size(10.0), text_color("#ffffff"), background_color("#000000"), is_open(false), gravity(GRAVITY_CENTER) { |
| 27 | |
| 28 | // Open and Close the reader, to populate its attributes (such as height, width, etc...) |
| 29 | Open(); |
| 30 | Close(); |
| 31 | } |
| 32 | |
| 33 | TextReader::TextReader(int width, int height, int x_offset, int y_offset, GravityType gravity, std::string text, std::string font, double size, std::string text_color, std::string background_color) |
| 34 | : width(width), height(height), x_offset(x_offset), y_offset(y_offset), text(text), font(font), size(size), text_color(text_color), background_color(background_color), is_open(false), gravity(gravity) |
nothing calls this directly
no outgoing calls
no test coverage detected