sp-ctrlquadr.cpp revision 055bb425d5d2ab1c5c81df150d221a6f9b507cd4
#define __INKSCAPE_CTRLQUADR_C__
/*
* Quadrilateral
*
* Authors:
* bulia byak
*
* Copyright (C) 2005 authors
*
* Released under GNU GPL
*/
#include "display-forward.h"
#include "sp-canvas-util.h"
#include "sp-ctrlquadr.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "display/inkscape-cairo.h"
#include "color.h"
struct SPCtrlQuadr : public SPCanvasItem{
};
struct SPCtrlQuadrClass : public SPCanvasItemClass{};
static SPCanvasItemClass *parent_class;
sp_ctrlquadr_get_type (void)
{
if (!type) {
GtkTypeInfo info = {
"SPCtrlQuadr",
sizeof (SPCtrlQuadr),
sizeof (SPCtrlQuadrClass),
};
}
return type;
}
static void
{
}
static void
{
}
static void
{
}
static void
{
return;
// RGB / BGR
// FIXME: this is supposed to draw inverse but cairo apparently is unable of this trick :(
//cairo_set_operator (buf->ct, CAIRO_OPERATOR_XOR);
cairo_set_source_rgba(buf->ct, SP_RGBA32_B_F(cq->rgba), SP_RGBA32_G_F(cq->rgba), SP_RGBA32_R_F(cq->rgba), SP_RGBA32_A_F(cq->rgba));
}
#define MIN4(a,b,c,d)\
((a <= b && a <= c && a <= d) ? a : \
(b <= a && b <= c && b <= d) ? b : \
(c <= a && c <= b && c <= d) ? c : \
d )
#define MAX4(a,b,c,d)\
((a >= b && a >= c && a >= d) ? a : \
(b >= a && b >= c && b >= d) ? b : \
(c >= a && c >= b && c >= d) ? c : \
d )
static void
{
sp_canvas_request_redraw (item->canvas, (int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
if (parent_class->update)
sp_canvas_request_redraw (item->canvas, (int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
}
void
{
sp_canvas_request_redraw (item->canvas, (int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
}
}
void
{
}
}
/*
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:encoding=utf-8:textwidth=99 :