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

Method add_property_choice_json

src/ClipBase.cpp:132–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132Json::Value ClipBase::add_property_choice_json(std::string name, int value, int selected_value) const {
133
134 // Create choice
135 Json::Value new_choice = Json::Value(Json::objectValue);
136 new_choice["name"] = name;
137 new_choice["value"] = value;
138 new_choice["selected"] = (value == selected_value);
139
140 // return JsonValue
141 return new_choice;
142}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected