gradient-image.cpp revision 92837142d486444b69050939558334353463abd0
#define __SP_GRADIENT_IMAGE_C__
/*
* A simple gradient preview
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2001-2002 Lauris Kaplinski
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "macros.h"
#include "display/cairo-utils.h"
#include "gradient-image.h"
#include "sp-gradient.h"
#include "sp-gradient-fns.h"
#define VBLOCK 16
static GtkWidgetClass *parent_class;
sp_gradient_image_get_type (void)
{
if (!type) {
sizeof (SPGradientImageClass),
sizeof (SPGradientImage),
0,
};
}
return type;
}
static void
{
}
static void
{
}
static void
{
}
}
{
}
static gint
{
cairo_clip(ct);
if (gr) {
cairo_set_source(ct, p);
}
return TRUE;
}
{
}
void
{
}
if (gradient) {
image->release_connection = gradient->connectRelease(sigc::bind<1>(sigc::ptr_fun(&sp_gradient_image_gradient_release), image));
image->modified_connection = gradient->connectModified(sigc::bind<2>(sigc::ptr_fun(&sp_gradient_image_gradient_modified), image));
}
}
static void
{
}
}
static void
{
}
static void
{
}
}