nr-filter-primitive.h revision a72861cd83f11ef8b1247abca181a3ad31df0307
#ifndef __NR_FILTER_PRIMITIVE_H__
#define __NR_FILTER_PRIMITIVE_H__
/*
* SVG filters rendering
*
* Author:
* Niko Kiirala <niko@kiirala.com>
*
* Copyright (C) 2006 Niko Kiirala
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "libnr/nr-pixblock.h"
#include "libnr/nr-matrix.h"
#include "svg/svg-length.h"
/**
* Sets the input slot number 'slot' to be used as input in rendering
* filter primitive 'primitive'
* For filter primitive types accepting more than one input, this sets the
* first input.
* If any of the required input slots is not set, the output of previous
* filter primitive is used, or SourceGraphic if this is the first
* primitive for this filter.
*/
/**
* Sets the input slot number 'slot' to be user as input number 'input' in
* rendering filter primitive 'primitive'
* First input for a filter primitive is number 0. For primitives with
* attributes 'in' and 'in2', these are numbered 0 and 1, respectively.
* If any of required input slots for a filter is not set, the output of
* previous filter primitive is used, or SourceGraphic if this is the first
* filter primitive for this filter.
*/
/**
* Sets the slot number 'slot' to be used as output from filter primitive
* 'primitive'
* If output slot for a filter element is not set, one of the unused image
* slots is used.
* It is an error to specify a pre-defined slot as 'slot'. Such call does
* not have any effect to the state of filter or its primitives.
*/
/**
* Sets the filter primitive subregion. Passing an unset length
* (length._set == false) as any parameter results in that parameter
* not being changed.
* Filter primitive will not hold any references to the passed
* SVGLength object after function returns.
* If any of the parameters does not get set the default value, as
* defined in SVG standard, for that parameter is used instead.
*/
/**
* Resets the filter primitive subregion to its default value
*/
void reset_region();
int _input;
int _output;
};
} /* namespace NR */
#endif /* __NR_FILTER_PRIMITIVE_H__ */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :