19 #ifndef UNITY_SCOPES_CATEGORYRENDERER_H
20 #define UNITY_SCOPES_CATEGORYRENDERER_H
24 #include <unity/util/DefinesPtrs.h>
34 class CategoryRendererImpl;
47 "category-layout":"grid"
68 "category-layout":"grid"
73 "subtitle":"subtitle",
122 std::string
data()
const;
125 std::unique_ptr<internal::CategoryRendererImpl> p;
127 friend class internal::CategoryRendererImpl;
static CategoryRenderer from_file(std::string const &path)
Creates a CategoryRenderer from a text file.
A category renderer template in JSON format.
Definition: CategoryRenderer.h:84
constexpr const char * DEFAULT_RENDERER
A default template for generic use.
Definition: CategoryRenderer.h:41
CategoryRenderer(std::string const &json_text=DEFAULT_RENDERER)
Creates a CategoryRenderer from a JSON string.
constexpr const char * MUSIC_GRID_RENDERER
A template suitable for displaying music results.
Definition: CategoryRenderer.h:62
std::string data() const
Returns complete renderer template definition in JSON format.