MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / QtTextReader

Method QtTextReader

src/QtTextReader.cpp:26–31  ·  view source on GitHub ↗

Default constructor (blank text)

Source from the content-addressed store, hash-verified

24
25/// Default constructor (blank text)
26QtTextReader::QtTextReader() : width(1024), height(768), x_offset(0), y_offset(0), text(""), font(QFont("Arial", 10)), text_color("#ffffff"), background_color("#000000"), is_open(false), gravity(GRAVITY_CENTER)
27{
28 // Open and Close the reader, to populate it's attributes (such as height, width, etc...)
29 Open();
30 Close();
31}
32
33QtTextReader::QtTextReader(int width, int height, int x_offset, int y_offset, GravityType gravity, std::string text, QFont font, 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), text_color(text_color), background_color(background_color), is_open(false), gravity(gravity)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected