/* Copyright (C) 1998-2008 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/group.h>
#include <gtkmm/enums.h>

_DEFS(goocanvasmm,libgoocanvas)

namespace Goocanvas
{

class Grid : public Goocanvas::ItemSimple
{
  _CLASS_GOBJECT(Grid, GooCanvasGrid, GOO_CANVAS_GRID, Goocanvas::ItemSimple, GooCanvasItemSimple)
protected:
  explicit Grid(double x = 0, double y = 0, double width = 0, double height = 0, double x_step = 0, double y_step = 0, double x_offset = 0, double y_offset = 0);
  _IGNORE(goo_canvas_grid_new)

public:

  _WRAP_CREATE(double x = 0, double y = 0, double width = 0, double height = 0, double x_step = 0, double y_step = 0, double x_offset = 0, double y_offset = 0)

  //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("x-step", double)
  _WRAP_PROPERTY("y-step", double)
  _WRAP_PROPERTY("x-offset", double)
  _WRAP_PROPERTY("y-offset", double)
  _WRAP_PROPERTY("horz-grid-line-width", double)
  _WRAP_PROPERTY("vert-grid-line-width", double)
  _WRAP_PROPERTY("horz-grid-line-pattern", Cairo::RefPtr<Cairo::Pattern>)
  _WRAP_PROPERTY("vert-grid-line-pattern", Cairo::RefPtr<Cairo::Pattern>)
  _WRAP_PROPERTY("border-width", double)
  _WRAP_PROPERTY("border-pattern", Cairo::RefPtr<Cairo::Pattern>)
  _WRAP_PROPERTY("vert-grid-lines-on-top", bool)
  _WRAP_PROPERTY("horz-grid-line-color", Glib::ustring)
  _WRAP_PROPERTY("horz-grid-line-color-rgba", guint)
  _WRAP_PROPERTY("horz-grid-line-pixbuf", Glib::RefPtr<Gdk::Pixbuf>)
  _WRAP_PROPERTY("vert-grid-line-color", Glib::ustring)
  _WRAP_PROPERTY("vert-grid-line-color-rgba", guint)
  _WRAP_PROPERTY("vert-grid-line-pixbuf", Glib::RefPtr<Gdk::Pixbuf>)
  _WRAP_PROPERTY("border-color", Glib::ustring)
  _WRAP_PROPERTY("border-color-rgba", guint)
  _WRAP_PROPERTY("border-pixbuf", Glib::RefPtr<Gdk::Pixbuf>)
};

} //namespace Goocanvas

