gradient-image.cpp revision f5d67c5d301635cdfb63b7e659f5ef9b60675435
#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
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
static GtkWidgetClass *parent_class;
{
if (!type) {
sizeof (SPGradientImageClass),
sizeof (SPGradientImage),
0,
};
}
return type;
}
{
#if GTK_CHECK_VERSION(3,0,0)
// GObjectClass *object_class = G_OBJECT_CLASS(klass);
#else
#endif
}
static void
{
}
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
{
}
#if GTK_CHECK_VERSION(3,0,0)
if (parent_class->destroy)
#else
#endif
}
{
}
#if GTK_CHECK_VERSION(3,0,0)
static void sp_gradient_image_get_preferred_width(GtkWidget *widget, gint *minimal_width, gint *natural_width)
{
}
static void sp_gradient_image_get_preferred_height(GtkWidget *widget, gint *minimal_height, gint *natural_height)
{
}
#endif
#if !GTK_CHECK_VERSION(3,0,0)
{
if(gtk_widget_is_drawable(widget)) {
cairo_clip(ct);
}
return result;
}
#endif
{
if (gr) {
cairo_set_source(ct, p);
}
return TRUE;
}
{
}
{
if (gr) {
cairo_set_source(ct, p);
}
return pixbuf;
}
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
{
}
}