color-preview.cpp revision 153bb1867986d6db392e2cfa711ad6231fce8abe
/*
* 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 "ui/widget/color-preview.h"
#include "display/cairo-utils.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 */
cairo_fill(ct);
}
/* Solid area */
cairo_fill(ct);
}
}
}}}
/*
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:
*/