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

Method JsonValue

src/effects/Shift.cpp:126–136  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

124
125// Generate Json::Value for this object
126Json::Value Shift::JsonValue() const {
127
128 // Create root json object
129 Json::Value root = EffectBase::JsonValue(); // get parent properties
130 root["type"] = info.class_name;
131 root["x"] = x.JsonValue();
132 root["y"] = y.JsonValue();
133
134 // return JsonValue
135 return root;
136}
137
138// Load JSON string into this object
139void Shift::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected