index c4368686f349b2016fad9ebf450f52e4a79bdbac..a13907a7061e0aed36cfd9bdac10b77193500ac1 100644 (file)
-#ifndef __INKSCAPE_CTRLLINE_H__
-#define __INKSCAPE_CTRLLINE_H__
+#ifndef SEEN_INKSCAPE_CTRLLINE_H
+#define SEEN_INKSCAPE_CTRLLINE_H
/*
* Simple straight line
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
+ * Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
*
+ * Copyright (C) 2007 Johan Engelen
* Copyright (C) 1999-2002 Lauris Kaplinski
*
* Released under GNU GPL
*/
-#include "sp-canvas.h"
-#include <livarot/Shape.h>
-
+#include "sp-canvas-item.h"
+struct SPItem;
#define SP_TYPE_CTRLLINE (sp_ctrlline_get_type ())
#define SP_CTRLLINE(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_CTRLLINE, SPCtrlLine))
#define SP_IS_CTRLLINE(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_CTRLLINE))
struct SPCtrlLine : public SPCanvasItem{
+ SPItem *item; // the item to which this line belongs in some sense; may be NULL for some users
guint32 rgba;
- NRPoint s, e;
- Shape* shp;
+ Geom::Point s, e;
+ Geom::Matrix affine;
};
struct SPCtrlLineClass : public SPCanvasItemClass{};
-GtkType sp_ctrlline_get_type (void);
+GType sp_ctrlline_get_type (void);
void sp_ctrlline_set_rgba32 (SPCtrlLine *cl, guint32 rgba);
void sp_ctrlline_set_coords (SPCtrlLine *cl, gdouble x0, gdouble y0, gdouble x1, gdouble y1);
-void sp_ctrlline_set_coords (SPCtrlLine *cl, const NR::Point start, const NR::Point end);
+void sp_ctrlline_set_coords (SPCtrlLine *cl, const Geom::Point start, const Geom::Point end);
-#endif
+#endif // SEEN_INKSCAPE_CTRLLINE_H
/*
Local Variables:
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :