Point.alloc

Allocates a new #graphene_point_t structure.

The coordinates of the returned point are (0, 0).

It's possible to chain this function with graphene.point.Point.init_ or graphene.point.Point.initFromPoint, e.g.:

graphene_point_t *
point_new (float x, float y)
{
  return graphene_point_init (graphene_point_alloc (), x, y);
}

graphene_point_t *
point_copy (const graphene_point_t *p)
{
  return graphene_point_init_from_point (graphene_point_alloc (), p);
}
class Point
static
alloc
()

Return Value

Type: graphene.point.Point

the newly allocated #graphene_point_t. Use graphene.point.Point.free to free the resources allocated by this function.