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

Method JsonValue

src/Color.cpp:86–97  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

84
85// Generate Json::Value for this object
86Json::Value Color::JsonValue() const {
87
88 // Create root json object
89 Json::Value root;
90 root["red"] = red.JsonValue();
91 root["green"] = green.JsonValue();
92 root["blue"] = blue.JsonValue();
93 root["alpha"] = alpha.JsonValue();
94
95 // return JsonValue
96 return root;
97}
98
99// Load JSON string into this object
100void Color::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected