47 std::string name,
int value,
int selected_value)
const 50 Json::Value new_choice = Json::Value(Json::objectValue);
51 new_choice[
"name"] = name;
52 new_choice[
"value"] = value;
53 new_choice[
"selected"] = (value == selected_value);
Json::Value add_property_choice_json(std::string name, int value, int selected_value) const
Generate JSON choice for a property (dropdown properties)
This abstract class is the base class of all Tracked Objects.
Header file for JSON class.
This namespace is the default namespace for all code in the openshot library.
Header file for the TrackedObjectBase class.
TrackedObjectBase()
Default constructor.