Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > 92dd9069bb664b212377d92e0b6dfb65 > files > 38

geglmm-debug-0.1.0-3mdv2011.0.i586.rpm

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


#include <glibmm.h>

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


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GeglProcessor GeglProcessor;
typedef struct _GeglProcessorClass GeglProcessorClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gegl
{ class Processor_Class; } // namespace Gegl
namespace Gegl
{

class Rectangle;


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

public:
  typedef Processor CppObjectType;
  typedef Processor_Class CppClassType;
  typedef GeglProcessor BaseObjectType;
  typedef GeglProcessorClass BaseClassType;

private:  friend class Processor_Class;
  static CppClassType processor_class_;

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

protected:
  explicit Processor(const Glib::ConstructParams& construct_params);
  explicit Processor(GeglProcessor* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:
  virtual ~Processor();

#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.
  GeglProcessor*       gobj()       { return reinterpret_cast<GeglProcessor*>(gobject_); }

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

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

private:

public:
	Processor();

	
  void set_rectangle(const Rectangle & rectangle);;
	
  bool work(double & progress);;

//TODO: This "Frees up resources used by a processing handle", 
//but does it really destroy the whole GeglProcessor? If so, how does that work/clash with reference-counting.
//We should generally avoid having this in public C++ API.
	
  void destroy();;


public:

public:
  //C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED

protected:
  //GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED

  //Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED


};

}


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::Processor
   */
  Glib::RefPtr<Gegl::Processor> wrap(GeglProcessor* object, bool take_copy = false);
}


#endif /* _GEGLMM_PROCESSOR_H */