contour: Add private api to circle contours
Add api to retrieve the parameters of a circle contour. This will be used in the following commits.
This commit is contained in:
@@ -1749,6 +1749,19 @@ gsk_circle_contour_new (const graphene_point_t *center,
|
||||
return (GskContour *) self;
|
||||
}
|
||||
|
||||
void
|
||||
gsk_circle_contour_get_params (const GskContour *contour,
|
||||
graphene_point_t *center,
|
||||
float *radius,
|
||||
gboolean *ccw)
|
||||
{
|
||||
const GskCircleContour *self = (const GskCircleContour *) contour;
|
||||
|
||||
*center = self->center;
|
||||
*radius = self->radius;
|
||||
*ccw = self->ccw;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
/* {{{ Rectangle */
|
||||
|
||||
|
||||
@@ -36,6 +36,10 @@ GskContour * gsk_standard_contour_new (GskPathFlags
|
||||
|
||||
GskContour * gsk_circle_contour_new (const graphene_point_t *center,
|
||||
float radius);
|
||||
void gsk_circle_contour_get_params (const GskContour *contour,
|
||||
graphene_point_t *center,
|
||||
float *radius,
|
||||
gboolean *ccw);
|
||||
GskContour * gsk_rect_contour_new (const graphene_rect_t *rect);
|
||||
GskContour * gsk_rounded_rect_contour_new (const GskRoundedRect *rounded_rect);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user