13 #ifndef OPENSHOT_COORDINATE_H 14 #define OPENSHOT_COORDINATE_H 53 Coordinate(
const std::pair<double, double>& co);
56 std::string
Json()
const;
58 void SetJson(
const std::string value);
63 template<
class charT,
class traits>
64 std::basic_ostream<charT, traits>&
66 std::basic_ostringstream<charT, traits> s;
69 s.precision(o.precision());
70 s <<
"(" << co.
X <<
", " << co.Y <<
")";
A Cartesian coordinate (X, Y) used in the Keyframe animation system.
Header file for Fraction class.
Json::Value JsonValue() const
Generate Json::Value for this object.
double Y
The Y value of the coordinate (usually representing the value of the property being animated) ...
Header file for JSON class.
double X
The X value of the coordinate (usually representing the frame #)
This namespace is the default namespace for all code in the openshot library.
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
Coordinate()
The default constructor, which defaults to (0,0)
void SetJson(const std::string value)
Load JSON string into this object.
std::string Json() const
Generate JSON string of this object.