/*
* Quadrilateral
*
* Authors:
* bulia byak
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2005 authors
*
* Released under GNU GPL
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "sp-canvas-item.h"
#include "sp-canvas.h"
#include "sp-canvas-util.h"
#include "sp-ctrlquadr.h"
#include "display/cairo-utils.h"
#include "color.h"
};
static void sp_ctrlquadr_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags);
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 )
{
}
}
void
{
}
}
void
sp_ctrlquadr_set_coords (SPCtrlQuadr *cl, Geom::Point p1, Geom::Point p2, Geom::Point p3, Geom::Point p4)
{
}
}
/*
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 :