// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GEGLMM_COLOR_H
#define _GEGLMM_COLOR_H


#include <glibmm.h>

/* 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>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GeglColor GeglColor;
typedef struct _GeglColorClass GeglColorClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gegl
{ class Color_Class; } // namespace Gegl
namespace Gegl {


class Color 
	: public Glib::Object
{
	
#ifndef DOXYGEN_SHOULD_SKIP_THIS

public:
  typedef Color CppObjectType;
  typedef Color_Class CppClassType;
  typedef GeglColor BaseObjectType;
  typedef GeglColorClass BaseClassType;

private:  friend class Color_Class;
  static CppClassType color_class_;

private:
  // noncopyable
  Color(const Color&);
  Color& operator=(const Color&);

protected:
  explicit Color(const Glib::ConstructParams& construct_params);
  explicit Color(GeglColor* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:
  virtual ~Color();

#ifndef DOXYGEN_SHOULD_SKIP_THIS
  static GType get_type()      G_GNUC_CONST;


  static GType get_base_type() G_GNUC_CONST;
#endif

  ///Provides access to the underlying C GObject.
  GeglColor*       gobj()       { return reinterpret_cast<GeglColor*>(gobject_); }

  ///Provides access to the underlying C GObject.
  const GeglColor* gobj() const { return reinterpret_cast<GeglColor*>(gobject_); }

  ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
  GeglColor* gobj_copy();

private:

protected:
	  explicit Color(const Glib::ustring & string);


public:
	
  static Glib::RefPtr<Color> create(const Glib::ustring & s);

	
  void get_rgba(double & r, double & g, double & b, double & a) const;
	
  void set_rgba(double r, double g, double b, double a);
	
  void get_rgba4f(gfloat* p1) const;

	#ifdef GLIBMM_PROPERTIES_ENABLED
/** A String representation of the GeglColor.
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy< Glib::ustring> property_string() ;
#endif //#GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
/** A String representation of the GeglColor.
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy_ReadOnly< Glib::ustring> property_string() const;
#endif //#GLIBMM_PROPERTIES_ENABLED


public:

public:
  //C++ methods used to invoke GTK+ virtual functions:

protected:
  //GTK+ Virtual Functions (override these to change behaviour):

  //Default Signal Handlers::


};

}


namespace Glib
{
  /** A Glib::wrap() method for this object.
   * 
   * @param object The C instance.
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
   * @result A C++ instance that wraps this C instance.
   *
   * @relates Gegl::Color
   */
  Glib::RefPtr<Gegl::Color> wrap(GeglColor* object, bool take_copy = false);
}


#endif /* _GEGLMM_COLOR_H */

