/* libgeglmm - a C++ wrapper for libgegl
 *
 * (c) 2008-2009 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-color.h>

_DEFS(geglmm,gegl)
_PINCLUDE(glibmm/private/object_p.h)

namespace Gegl {

class Color 
	: public Glib::Object
{
	_CLASS_GOBJECT(Color, GeglColor, GEGL_COLOR, Glib::Object, GObject)
protected:
	_WRAP_CTOR(Color(const Glib::ustring & string), gegl_color_new)

public:
	_WRAP_CREATE(const Glib::ustring & s)
	_WRAP_METHOD(void get_rgba(double & r, double & g, double & b, double & a) const, gegl_color_get_rgba)
	_WRAP_METHOD(void set_rgba(double r, double g, double b, double a), gegl_color_set_rgba)
	_WRAP_METHOD(void get_rgba4f(gfloat*) const, gegl_color_get_rgba4f)

	_WRAP_PROPERTY("string", Glib::ustring)
};

}
