Generate Json::Value for this object
| 186 | |
| 187 | // Generate Json::Value for this object |
| 188 | Json::Value TextReader::JsonValue() const { |
| 189 | |
| 190 | // Create root json object |
| 191 | Json::Value root = ReaderBase::JsonValue(); // get parent properties |
| 192 | root["type"] = "TextReader"; |
| 193 | root["width"] = width; |
| 194 | root["height"] = height; |
| 195 | root["x_offset"] = x_offset; |
| 196 | root["y_offset"] = y_offset; |
| 197 | root["text"] = text; |
| 198 | root["font"] = font; |
| 199 | root["size"] = size; |
| 200 | root["text_color"] = text_color; |
| 201 | root["background_color"] = background_color; |
| 202 | root["text_background_color"] = text_background_color; |
| 203 | root["gravity"] = gravity; |
| 204 | |
| 205 | // return JsonValue |
| 206 | return root; |
| 207 | } |
| 208 | |
| 209 | // Load JSON string into this object |
| 210 | void TextReader::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected