/*
* 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"
namespace Inkscape {
namespace UI {
namespace Widget {
{
set_has_window(false);
}
void
{
if (get_is_drawable())
queue_draw();
}
#if WITH_GTKMM_3_0
void
{
}
void
ColorPreview::get_preferred_height_for_width_vfunc(int /* width */, int& minimum_height, int& natural_height) const
{
}
void
{
}
void
ColorPreview::get_preferred_width_for_height_vfunc(int /* height */, int& minimum_width, int& natural_width) const
{
}
#else
void
{
}
bool
{
bool result = true;
if (get_is_drawable())
{
}
return result;
}
#endif
void
{
if (get_is_drawable())
queue_draw();
}
bool
{
/* Transparent area */
cr->fill_preserve();
/* Solid area */
return true;
}
{
/* Transparent area */
carea.x = 0;
carea.y = 0;
cairo_fill(ct);
/* Solid area */
carea.y = 0;
cairo_fill(ct);
return pixbuf;
}
}}}
/*
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 :