/* libgeglmm - a C++ wrapper for libgegl
 *
 * (c) 2008 Hubert Figuiere
 *
 * 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 3 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 GEGL; if not, see <http://www.gnu.org/licenses/>.
 */

#include <gegl.h>
#include <gegl-utils.h>

_DEFS(geglmm,gegl)

namespace Gegl {

class Rectangle 
{
	_CLASS_BOXEDTYPE_STATIC(Rectangle, GeglRectangle)
public:
	//	_CTOR_DEFAULT
	Rectangle(const GeglRectangle & rect); //TODO: Doesn't _CLASS_BOXEDTYPE_STATIC() create a GegRectangle* constructor already?

	_WRAP_METHOD(void set(int x, int y, guint witdth, guint height), gegl_rectangle_set)
	_WRAP_METHOD(bool equal(const Rectangle & s) const, gegl_rectangle_equal) //TODO: Rename to operator==() const?
	_WRAP_METHOD(bool equal_coords(int x, int y, int width, int heght) const, gegl_rectangle_equal_coords)
  _WRAP_METHOD(bool is_empty() const, gegl_rectangle_is_empty)
	_WRAP_METHOD(void copy(const Rectangle & from), gegl_rectangle_copy) //Rename to copy constructor?
	_WRAP_METHOD(void bounding_box(const Rectangle & src1, const Rectangle & src2), gegl_rectangle_bounding_box)
	_WRAP_METHOD(bool intersect(const Rectangle & src1, const Rectangle & src2), gegl_rectangle_intersect) //TODO: Make this const?
	_WRAP_METHOD(bool contains(const Rectangle & s) const, gegl_rectangle_contains)
  _WRAP_METHOD(bool is_infinite_plane() const, gegl_rectangle_is_infinite_plane)
  _WRAP_METHOD(void dump() const, gegl_rectangle_dump)
};

}
