|
Packit Service |
2781ba |
/* This file is part of GEGL.
|
|
Packit Service |
2781ba |
*
|
|
Packit Service |
2781ba |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
2781ba |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
2781ba |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
2781ba |
* version 3 of the License, or (at your option) any later version.
|
|
Packit Service |
2781ba |
*
|
|
Packit Service |
2781ba |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
2781ba |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
2781ba |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
2781ba |
* Lesser General Public License for more details.
|
|
Packit Service |
2781ba |
*
|
|
Packit Service |
2781ba |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
2781ba |
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit Service |
2781ba |
*
|
|
Packit Service |
2781ba |
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
|
|
Packit Service |
2781ba |
*/
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
#ifndef __GEGL_TILE_HANDLER_CHAIN_H__
|
|
Packit Service |
2781ba |
#define __GEGL_TILE_HANDLER_CHAIN_H__
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
#include "gegl-tile-handler.h"
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
/***
|
|
Packit Service |
2781ba |
* GeglTileHandlerChain is a GeglTileHandler that easily create and destroy a chain of GeglTileHandler.
|
|
Packit Service |
2781ba |
*/
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
#define GEGL_TYPE_TILE_HANDLER_CHAIN (gegl_tile_handler_chain_get_type ())
|
|
Packit Service |
2781ba |
#define GEGL_TILE_HANDLER_CHAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_TILE_HANDLER_CHAIN, GeglTileHandlerChain))
|
|
Packit Service |
2781ba |
#define GEGL_TILE_HANDLER_CHAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_TILE_HANDLER_CHAIN, GeglTileHandlerChainClass))
|
|
Packit Service |
2781ba |
#define GEGL_IS_TILE_HANDLER_CHAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_TILE_HANDLER_CHAIN))
|
|
Packit Service |
2781ba |
#define GEGL_IS_TILE_HANDLER_CHAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_TILE_HANDLER_CHAIN))
|
|
Packit Service |
2781ba |
#define GEGL_TILE_HANDLER_CHAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_TILE_HANDLER_CHAIN, GeglTileHandlerChainClass))
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
struct _GeglTileHandlerChain
|
|
Packit Service |
2781ba |
{
|
|
Packit Service |
2781ba |
GeglTileHandler parent_instance;
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
GSList *chain;
|
|
Packit Service |
2781ba |
};
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
struct _GeglTileHandlerChainClass
|
|
Packit Service |
2781ba |
{
|
|
Packit Service |
2781ba |
GeglTileHandlerClass parent_class;
|
|
Packit Service |
2781ba |
};
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
GType gegl_tile_handler_chain_get_type (void) G_GNUC_CONST;
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
/**
|
|
Packit Service |
2781ba |
* gegl_tile_handler_chain_add:
|
|
Packit Service |
2781ba |
* @tile_handler_chain: a #GeglTileHandlerChain
|
|
Packit Service |
2781ba |
* @handler: a #GeglTileHandler.
|
|
Packit Service |
2781ba |
*
|
|
Packit Service |
2781ba |
* Adds @handler to the list of tile_handler_chain to be processed, the order tile_handler_chain
|
|
Packit Service |
2781ba |
* are added in is from original source to last processing element, commands
|
|
Packit Service |
2781ba |
* are passed from the last added to the first one in the chain, tiles
|
|
Packit Service |
2781ba |
* and other results are passed back up
|
|
Packit Service |
2781ba |
*
|
|
Packit Service |
2781ba |
* Returns: the added handler.
|
|
Packit Service |
2781ba |
*/
|
|
Packit Service |
2781ba |
GeglTileHandler * gegl_tile_handler_chain_add
|
|
Packit Service |
2781ba |
(GeglTileHandlerChain *tile_handler_chain,
|
|
Packit Service |
2781ba |
GeglTileHandler *handler);
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
/* Binds the tile-handlers in the chain together.
|
|
Packit Service |
2781ba |
*/
|
|
Packit Service |
2781ba |
void gegl_tile_handler_chain_bind (GeglTileHandlerChain *tile_handler_chain);
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
/* returns the first matching handler of a specified type (or NULL) */
|
|
Packit Service |
2781ba |
GeglTileHandler * gegl_tile_handler_chain_get_first
|
|
Packit Service |
2781ba |
(GeglTileHandlerChain *tile_handler_chain,
|
|
Packit Service |
2781ba |
GType type);
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
#endif
|