Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

sp-gradient-fns.h File Reference


Detailed Description

Macros and fn declarations related to gradients.

Definition in file sp-gradient-fns.h.

#include <glib/gtypes.h>
#include <glib-object.h>
#include <2geom/forward.h>
#include "sp-gradient-spread.h"
#include "sp-gradient-units.h"

Go to the source code of this file.

Namespaces

namespace  Inkscape
namespace  Inkscape::XML

Defines

#define SP_GRADIENT(obj)   (G_TYPE_CHECK_INSTANCE_CAST((obj), SP_TYPE_GRADIENT, SPGradient))
#define SP_GRADIENT_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), SP_TYPE_GRADIENT, SPGradientClass))
#define SP_GRADIENT_HAS_STOPS(g)   (SP_GRADIENT(g)->has_stops)
#define SP_GRADIENT_IS_PRIVATE(g)   (SP_GRADIENT(g)->state == SP_GRADIENT_STATE_PRIVATE)
#define SP_GRADIENT_IS_VECTOR(g)   (SP_GRADIENT(g)->state == SP_GRADIENT_STATE_VECTOR)
#define SP_GRADIENT_SPREAD(g)   (SP_GRADIENT(g)->spread)
#define SP_GRADIENT_STATE_IS_SET(g)   (SP_GRADIENT(g)->state != SP_GRADIENT_STATE_UNKNOWN)
#define SP_GRADIENT_UNITS(g)   (SP_GRADIENT(g)->units)
#define SP_IS_GRADIENT(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj), SP_TYPE_GRADIENT))
#define SP_IS_GRADIENT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), SP_TYPE_GRADIENT))
#define SP_TYPE_GRADIENT   (sp_gradient_get_type())

Functions

void sp_gradient_ensure_colors (SPGradient *gradient)
void sp_gradient_ensure_vector (SPGradient *gradient)
Geom::Matrix sp_gradient_get_g2d_matrix (SPGradient const *gr, Geom::Matrix const &ctm, Geom::Rect const &bbox)
Geom::Matrix sp_gradient_get_gs2d_matrix (SPGradient const *gr, Geom::Matrix const &ctm, Geom::Rect const &bbox)
SPGradientSpread sp_gradient_get_spread (SPGradient *gradient)
GType sp_gradient_get_type ()
SPGradientsp_gradient_get_vector (SPGradient *gradient, bool force_private)
void sp_gradient_render_vector_block_rgb (SPGradient *gr, guchar *px, gint w, gint h, gint rs, gint pos, gint span, bool horizontal)
void sp_gradient_render_vector_block_rgba (SPGradient *gr, guchar *px, gint w, gint h, gint rs, gint pos, gint span, bool horizontal)
void sp_gradient_repr_clear_vector (SPGradient *gr)
void sp_gradient_repr_write_vector (SPGradient *gr)
void sp_gradient_set_gs2d_matrix (SPGradient *gr, Geom::Matrix const &ctm, Geom::Rect const &bbox, Geom::Matrix const &gs2d)
void sp_gradient_set_spread (SPGradient *gr, SPGradientSpread spread)
void sp_gradient_set_units (SPGradient *gr, SPGradientUnits units)


Generated by  Doxygen 1.6.0   Back to index