sp-color-preview.cpp revision 9f32e6203d2f30a5bd17dbb294c8956b714e59e6
/*
* A simple color preview widget
*
* 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 "../display/nr-plain-stuff-gdk.h"
#include "sp-color-preview.h"
#define SPCP_DEFAULT_WIDTH 32
#define SPCP_DEFAULT_HEIGHT 11
static GtkWidgetClass *parent_class;
{
if (!type) {
sizeof(SPColorPreviewClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* class_finalize */
NULL, /* class_data */
sizeof(SPColorPreview),
0, /* n_preallocs */
0, /* value_table */
};
"SPColorPreview",
&info,
static_cast< GTypeFlags > (0) );
}
return type;
}
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static void
{
if (GTK_WIDGET_DRAWABLE (image)) {
}
}
static gint
{
if (GTK_WIDGET_DRAWABLE (widget)) {
}
return TRUE;
}
{
}
void
{
if (GTK_WIDGET_DRAWABLE (cp)) {
}
}
static void
{
/* Transparent area */
}
/* Solid area */
}
}
/*
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:fileencoding=utf-8:textwidth=99 :