sp-star.h revision 0b2d8abc1011ad865fce3b883ccb2587cb15cc90
#ifndef __SP_STAR_H__
#define __SP_STAR_H__
/*
* <sodipodi:star> implementation
*
* Authors:
* Mitsuru Oka <oka326@parkcity.ne.jp>
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 1999-2002 Lauris Kaplinski
* Copyright (C) 2000-2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "sp-polygon.h"
#define SP_TYPE_STAR (sp_star_get_type ())
#define SP_STAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_STAR, SPStar))
#define SP_STAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_STAR, SPStarClass))
#define SP_IS_STAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_STAR))
#define SP_IS_STAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_STAR))
class SPStar;
class SPStarClass;
typedef enum {
SP_STAR_POINT_KNOT1,
SP_STAR_POINT_KNOT2
} SPStarPoint;
struct SPStar : public SPPolygon {
gint sides;
Geom::Point center;
double r[2];
double arg[2];
bool flatsided;
double rounded;
double randomized;
};
struct SPStarClass {
SPPolygonClass parent_class;
};
GType sp_star_get_type (void);
void sp_star_position_set (SPStar *star, gint sides, Geom::Point center, gdouble r1, gdouble r2, gdouble arg1, gdouble arg2, bool isflat, double rounded, double randomized);
Geom::Point sp_star_get_xy (SPStar const *star, SPStarPoint point, gint index, bool randomized = false);
#endif