diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-02 21:01:45 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-02 21:01:45 +0000 |
| commit | 8443720ce6429b9beec839e60b8a808595f4ba72 (patch) | |
| tree | 3e08d3c631c2590a19481613a6e31cf09f6bed42 /src/sp-star.h | |
| parent | Replaced some forgotten old casting macros. (diff) | |
| download | inkscape-8443720ce6429b9beec839e60b8a808595f4ba72.tar.gz inkscape-8443720ce6429b9beec839e60b8a808595f4ba72.zip | |
Cleaned up a bit. Uses some C++11 features.
(bzr r11608.1.72)
Diffstat (limited to 'src/sp-star.h')
| -rw-r--r-- | src/sp-star.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/sp-star.h b/src/sp-star.h index 19b586dc0..3e787beb3 100644 --- a/src/sp-star.h +++ b/src/sp-star.h @@ -16,9 +16,8 @@ #include "sp-polygon.h" -#define SP_TYPE_STAR (sp_star_get_type ()) + #define SP_STAR(obj) ((SPStar*)obj) -//#define SP_IS_STAR(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPStar))) #define SP_IS_STAR(obj) (dynamic_cast<const SPStar*>((SPObject*)obj)) class CStar; @@ -43,10 +42,6 @@ public: double randomized; }; -struct SPStarClass { - SPPolygonClass parent_class; -}; - // CPPIFY: This derivation is a bit weird. // parent_class = reinterpret_cast<SPShapeClass *>(g_type_class_ref(SP_TYPE_SHAPE)); // So shouldn't star be derived from shape instead of polygon? @@ -71,9 +66,6 @@ protected: SPStar* spstar; }; - -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); |
