0.3.0
Loading...
Searching...
No Matches
Json.cpp File Reference

Go to the source code of this file.

Functions

void from_json (const json &j, ImColor &color)
 Converts the provided json object into a color.
 
void from_json (const json &j, ImPlotStyle &style)
 Converts the provided json object into a vector.
 
void from_json (const json &j, ImVec2 &vec2)
 Converts the provided json object into a vector.
 
void from_json (const json &j, ImVec4 &vec4)
 Converts the provided json object into a vector.
 
void to_json (json &j, const ImColor &color)
 Converts the provided color into a json object.
 
void to_json (json &j, const ImPlotStyle &style)
 Converts the provided vector into a json object.
 
void to_json (json &j, const ImVec2 &vec2)
 Converts the provided vector into a json object.
 
void to_json (json &j, const ImVec4 &vec4)
 Converts the provided vector into a json object.
 

Function Documentation

◆ from_json() [1/4]

void from_json ( const json & j,
ImColor & color )

Converts the provided json object into a color.

Parameters
[in]jJson object with the color values
[out]colorColor to return

Definition at line 26 of file Json.cpp.

◆ from_json() [2/4]

void from_json ( const json & j,
ImPlotStyle & style )

Converts the provided json object into a vector.

Parameters
[in]jJson object with the vector values
[out]styleStyle to return

Definition at line 156 of file Json.cpp.

◆ from_json() [3/4]

void from_json ( const json & j,
ImVec2 & vec2 )

Converts the provided json object into a vector.

Parameters
[in]jJson object with the vector values
[out]vec2Vector to return

Definition at line 59 of file Json.cpp.

◆ from_json() [4/4]

void from_json ( const json & j,
ImVec4 & vec4 )

Converts the provided json object into a vector.

Parameters
[in]jJson object with the vector values
[out]vec4Vector to return

Definition at line 80 of file Json.cpp.

◆ to_json() [1/4]

void to_json ( json & j,
const ImColor & color )

Converts the provided color into a json object.

Parameters
[out]jReturn Json object
[in]colorColor to convert

Definition at line 17 of file Json.cpp.

◆ to_json() [2/4]

void to_json ( json & j,
const ImPlotStyle & style )

Converts the provided vector into a json object.

Parameters
[out]jReturn Json object
[in]styleStyle to convert

Definition at line 100 of file Json.cpp.

◆ to_json() [3/4]

void to_json ( json & j,
const ImVec2 & vec2 )

Converts the provided vector into a json object.

Parameters
[out]jReturn Json object
[in]vec2Vector to convert

Definition at line 52 of file Json.cpp.

◆ to_json() [4/4]

void to_json ( json & j,
const ImVec4 & vec4 )

Converts the provided vector into a json object.

Parameters
[out]jReturn Json object
[in]vec4Vector to convert

Definition at line 71 of file Json.cpp.