/* Copyright (C) 1998-2006 The gtkmm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */


#include <goocanvasmm/itemsimple.h>
#include <goocanvasmm/points.h>

_DEFS(goocanvasmm,libgoocanvas)
_PINCLUDE(glibmm/private/object_p.h)

namespace Goocanvas
{

class Polyline : public Goocanvas::ItemSimple
{
  _CLASS_GOBJECT(Polyline,GooCanvasPolyline,GOO_CANVAS_POLYLINE,Goocanvas::ItemSimple,GooCanvasItemSimple)
protected:

  Polyline(bool close_path, const Points& coords);
  Polyline(double x1, double y1, double x2, double y2);
  _IGNORE(goo_canvas_polyline_new, goo_canvas_polyline_new_line)

public:

  _WRAP_CREATE(bool close_path, const Points& coords)
  _WRAP_CREATE(double x1, double y1, double x2, double y2)

  //We put these in item.hg instead.
  //See the comment there.
  //_WRAP_PROPERTY("x", double)
  //_WRAP_PROPERTY("y", double)
  //_WRAP_PROPERTY("width", double)
  //_WRAP_PROPERTY("height", double)
  _WRAP_PROPERTY("arrow-length", double)
  _WRAP_PROPERTY("arrow-tip-length", double)
  _WRAP_PROPERTY("arrow-width", double)
  _WRAP_PROPERTY("close-path", bool)
  _WRAP_PROPERTY("end-arrow", bool)
  _WRAP_PROPERTY("points", Points)
  _WRAP_PROPERTY("start-arrow", bool)

};

}

