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

Method JsonValue

src/QtTextReader.cpp:200–218  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

198
199// Generate Json::Value for this object
200Json::Value QtTextReader::JsonValue() const {
201
202 // Create root json object
203 Json::Value root = ReaderBase::JsonValue(); // get parent properties
204 root["type"] = "QtTextReader";
205 root["width"] = width;
206 root["height"] = height;
207 root["x_offset"] = x_offset;
208 root["y_offset"] = y_offset;
209 root["text"] = text;
210 root["font"] = font.toString().toStdString();
211 root["text_color"] = text_color;
212 root["background_color"] = background_color;
213 root["text_background_color"] = text_background_color;
214 root["gravity"] = gravity;
215
216 // return JsonValue
217 return root;
218}
219
220// Load JSON string into this object
221void QtTextReader::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected