2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
1997-11-25 06:05:25 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1997-11-25 06:05:25 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1997-11-25 06:05:25 +08:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1997-11-25 06:05:25 +08:00
|
|
|
*/
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2004-07-14 00:36:29 +08:00
|
|
|
#ifndef __GIMP_PROJECTION_H__
|
|
|
|
#define __GIMP_PROJECTION_H__
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2001-05-14 01:25:12 +08:00
|
|
|
|
2004-07-14 00:36:29 +08:00
|
|
|
#include "gimpobject.h"
|
2001-08-17 22:27:31 +08:00
|
|
|
|
2001-05-14 05:51:20 +08:00
|
|
|
|
2004-07-14 00:36:29 +08:00
|
|
|
#define GIMP_TYPE_PROJECTION (gimp_projection_get_type ())
|
|
|
|
#define GIMP_PROJECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_PROJECTION, GimpProjection))
|
|
|
|
#define GIMP_PROJECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PROJECTION, GimpProjectionClass))
|
|
|
|
#define GIMP_IS_PROJECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_PROJECTION))
|
|
|
|
#define GIMP_IS_PROJECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PROJECTION))
|
|
|
|
#define GIMP_PROJECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_PROJECTION, GimpProjectionClass))
|
2001-09-26 01:44:03 +08:00
|
|
|
|
2007-06-06 21:45:44 +08:00
|
|
|
|
2014-05-31 06:08:43 +08:00
|
|
|
typedef struct _GimpProjectionPrivate GimpProjectionPrivate;
|
|
|
|
typedef struct _GimpProjectionClass GimpProjectionClass;
|
2001-09-26 01:44:03 +08:00
|
|
|
|
2004-07-14 00:36:29 +08:00
|
|
|
struct _GimpProjection
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2014-05-31 06:08:43 +08:00
|
|
|
GimpObject parent_instance;
|
2001-11-01 05:20:09 +08:00
|
|
|
|
2014-05-31 06:08:43 +08:00
|
|
|
GimpProjectionPrivate *priv;
|
1997-11-25 06:05:25 +08:00
|
|
|
};
|
|
|
|
|
2004-07-14 00:36:29 +08:00
|
|
|
struct _GimpProjectionClass
|
2001-09-26 01:44:03 +08:00
|
|
|
{
|
|
|
|
GimpObjectClass parent_class;
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2008-11-05 02:06:36 +08:00
|
|
|
void (* update) (GimpProjection *proj,
|
2004-07-14 00:36:29 +08:00
|
|
|
gboolean now,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
};
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2001-11-01 05:20:09 +08:00
|
|
|
|
2014-05-31 08:34:56 +08:00
|
|
|
GType gimp_projection_get_type (void) G_GNUC_CONST;
|
2001-11-01 05:20:09 +08:00
|
|
|
|
2014-05-31 08:34:56 +08:00
|
|
|
GimpProjection * gimp_projection_new (GimpProjectable *projectable);
|
2007-06-06 21:45:44 +08:00
|
|
|
|
2014-05-31 08:34:56 +08:00
|
|
|
void gimp_projection_set_priority_rect (GimpProjection *proj,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
2007-06-06 18:03:17 +08:00
|
|
|
|
2014-06-30 05:57:22 +08:00
|
|
|
void gimp_projection_stop_rendering (GimpProjection *proj);
|
|
|
|
|
2014-05-31 08:34:56 +08:00
|
|
|
void gimp_projection_flush (GimpProjection *proj);
|
|
|
|
void gimp_projection_flush_now (GimpProjection *proj);
|
|
|
|
void gimp_projection_finish_draw (GimpProjection *proj);
|
|
|
|
|
|
|
|
gint64 gimp_projection_estimate_memsize (GimpImageBaseType type,
|
2014-06-15 05:20:52 +08:00
|
|
|
GimpComponentType component_type,
|
2014-05-31 08:34:56 +08:00
|
|
|
gint width,
|
|
|
|
gint height);
|
2001-11-11 07:03:22 +08:00
|
|
|
|
|
|
|
|
2004-07-14 00:36:29 +08:00
|
|
|
#endif /* __GIMP_PROJECTION_H__ */
|