color-preview.cpp revision 89279a31d36b9f6cd44a0eda9de3ea736a196b22
/** \file
* Implemenmtation of a simple color preview widget
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
* Ralf Stephan <ralf@ark.in-berlin.de>
*
* Copyright (C) 2001-2005 Authors
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "display/nr-plain-stuff-gdk.h"
#include "color-preview.h"
#define SPCP_DEFAULT_WIDTH 32
#define SPCP_DEFAULT_HEIGHT 12
namespace Inkscape {
namespace UI {
namespace Widget {
{
}
void
{
}
void
{
if (is_drawable())
queue_draw();
}
bool
{
if (is_drawable())
return true;
}
void
{
if (is_drawable())
queue_draw();
}
void
{
return;
/* Transparent area */
_rgba);
}
/* Solid area */
_rgba | 0xff);
}
}
}}}
/*
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:
*/