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

Method JsonValue

src/TextReader.cpp:188–207  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

186
187// Generate Json::Value for this object
188Json::Value TextReader::JsonValue() const {
189
190 // Create root json object
191 Json::Value root = ReaderBase::JsonValue(); // get parent properties
192 root["type"] = "TextReader";
193 root["width"] = width;
194 root["height"] = height;
195 root["x_offset"] = x_offset;
196 root["y_offset"] = y_offset;
197 root["text"] = text;
198 root["font"] = font;
199 root["size"] = size;
200 root["text_color"] = text_color;
201 root["background_color"] = background_color;
202 root["text_background_color"] = text_background_color;
203 root["gravity"] = gravity;
204
205 // return JsonValue
206 return root;
207}
208
209// Load JSON string into this object
210void TextReader::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected