1/* Copyright (C) 1998-2006 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free
15 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 */
17
18
19#include <goocanvasmm/itemsimple.h>
20#include <goocanvasmm/points.h>
21
22_DEFS(goocanvasmm,libgoocanvas)
23_PINCLUDE(glibmm/private/object_p.h)
24
25namespace Goocanvas
26{
27
28class Polyline : public Goocanvas::ItemSimple
29{
30  _CLASS_GOBJECT(Polyline,GooCanvasPolyline,GOO_CANVAS_POLYLINE,Goocanvas::ItemSimple,GooCanvasItemSimple)
31protected:
32
33  Polyline(bool close_path, const Points& coords);
34  Polyline(double x1, double y1, double x2, double y2);
35  _IGNORE(goo_canvas_polyline_new, goo_canvas_polyline_new_line)
36
37public:
38
39  _WRAP_CREATE(bool close_path, const Points& coords)
40  _WRAP_CREATE(double x1, double y1, double x2, double y2)
41
42  //We put these in item.hg instead.
43  //See the comment there.
44  //_WRAP_PROPERTY("x", double)
45  //_WRAP_PROPERTY("y", double)
46  //_WRAP_PROPERTY("width", double)
47  //_WRAP_PROPERTY("height", double)
48  _WRAP_PROPERTY("arrow-length", double)
49  _WRAP_PROPERTY("arrow-tip-length", double)
50  _WRAP_PROPERTY("arrow-width", double)
51  _WRAP_PROPERTY("close-path", bool)
52  _WRAP_PROPERTY("end-arrow", bool)
53  _WRAP_PROPERTY("points", Points)
54  _WRAP_PROPERTY("start-arrow", bool)
55
56};
57
58}
59
60