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

Method JsonValue

src/QtHtmlReader.cpp:183–199  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

181
182// Generate Json::Value for this object
183Json::Value QtHtmlReader::JsonValue() const {
184
185 // Create root json object
186 Json::Value root = ReaderBase::JsonValue(); // get parent properties
187 root["type"] = "QtHtmlReader";
188 root["width"] = width;
189 root["height"] = height;
190 root["x_offset"] = x_offset;
191 root["y_offset"] = y_offset;
192 root["html"] = html;
193 root["css"] = css;
194 root["background_color"] = background_color;
195 root["gravity"] = gravity;
196
197 // return JsonValue
198 return root;
199}
200
201// Load JSON string into this object
202void QtHtmlReader::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected