Defines how to save certain datatypes to json.
More...
Go to the source code of this file.
|
using | json |
| json namespace
|
|
|
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.
|
|
Defines how to save certain datatypes to json.
- Author
- T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
- Date
- 2021-08-10
◆ from_json() [1/4]
void from_json |
( |
const json & | j, |
|
|
ImColor & | color ) |
Converts the provided json object into a color.
- Parameters
-
[in] | j | Json object with the color values |
[out] | color | Color to return |
◆ from_json() [2/4]
void from_json |
( |
const json & | j, |
|
|
ImPlotStyle & | style ) |
Converts the provided json object into a vector.
- Parameters
-
[in] | j | Json object with the vector values |
[out] | style | Style to return |
◆ from_json() [3/4]
void from_json |
( |
const json & | j, |
|
|
ImVec2 & | vec2 ) |
Converts the provided json object into a vector.
- Parameters
-
[in] | j | Json object with the vector values |
[out] | vec2 | Vector to return |
◆ from_json() [4/4]
void from_json |
( |
const json & | j, |
|
|
ImVec4 & | vec4 ) |
Converts the provided json object into a vector.
- Parameters
-
[in] | j | Json object with the vector values |
[out] | vec4 | Vector to return |
◆ to_json() [1/4]
void to_json |
( |
json & | j, |
|
|
const ImColor & | color ) |
Converts the provided color into a json object.
- Parameters
-
[out] | j | Return Json object |
[in] | color | Color to convert |
◆ to_json() [2/4]
void to_json |
( |
json & | j, |
|
|
const ImPlotStyle & | style ) |
Converts the provided vector into a json object.
- Parameters
-
[out] | j | Return Json object |
[in] | style | Style to convert |
◆ to_json() [3/4]
void to_json |
( |
json & | j, |
|
|
const ImVec2 & | vec2 ) |
Converts the provided vector into a json object.
- Parameters
-
[out] | j | Return Json object |
[in] | vec2 | Vector to convert |
◆ to_json() [4/4]
void to_json |
( |
json & | j, |
|
|
const ImVec4 & | vec4 ) |
Converts the provided vector into a json object.
- Parameters
-
[out] | j | Return Json object |
[in] | vec4 | Vector to convert |