Files
gtk/gsk/gskpathpointprivate.h
Matthias Clasen b533dfa0da Make points stack-allocated
This does the necessary reshuffling to make GskPathPoint
a stack-allocated struct.
2023-08-05 15:45:53 -04:00

34 lines
654 B
C

#pragma once
#include "gskpathpoint.h"
#include "gskcontourprivate.h"
G_BEGIN_DECLS
struct _GskRealPathPoint
{
GskPath *path;
const GskContour *contour;
union {
struct {
unsigned int idx;
float t;
} std;
struct {
float distance;
} rect;
struct {
float angle;
} circle;
} data;
};
GskPath * gsk_path_point_get_path (GskPathPoint *self);
const GskContour * gsk_path_point_get_contour (GskPathPoint *self);
float gsk_path_point_get_distance (GskPathPoint *self,
gpointer measure_data);
G_END_DECLS