contour: Add some debug API

Add a private  way to get the class of a contour,
so we can test that roundtrips through gsk_path_parse
work as expected.
This commit is contained in:
Matthias Clasen 2023-08-27 09:01:37 -04:00
parent 5f2f116c28
commit ba3a657c48
2 changed files with 7 additions and 0 deletions

View File

@ -1503,6 +1503,12 @@ gsk_circle_contour_new (const graphene_point_t *center,
/* }}} */
/* {{{ API */
const char *
gsk_contour_get_type_name (const GskContour *self)
{
return self->klass->type_name;
}
gsize
gsk_contour_get_size (const GskContour *self)
{

View File

@ -37,6 +37,7 @@ GskContour * gsk_standard_contour_new (GskPathFlags
GskContour * gsk_circle_contour_new (const graphene_point_t *center,
float radius);
const char * gsk_contour_get_type_name (const GskContour *self);
void gsk_contour_copy (GskContour * dest,
const GskContour *src);
GskContour * gsk_contour_dup (const GskContour *src);