sp-ctrlcurve.cpp revision 8e805e9cc405a128b9f8b317c9fc84d739f1ec49
#define __INKSCAPE_CTRLCURVE_C__
/*
* Simple bezier curve used for Mesh Gradients
*
* Author:
* Tavmjong Bah <tavmjong@free.fr>
*
* Copyright (C) 2011 Tavmjong Bah
* Copyright (C) 2007 Johan Engelen
* Copyright (C) 1999-2002 Lauris Kaplinski
*
* Released under GNU GPL
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "display/sp-ctrlcurve.h"
#include "display/sp-canvas-util.h"
#include "display/cairo-utils.h"
#include "color.h"
#include "display/sp-canvas.h"
namespace {
static void sp_ctrlcurve_update(SPCanvasItem *item, Geom::Affine const &affine, unsigned int flags);
static SPCanvasItemClass *parent_class;
} // namespace
{
if (!type) {
sizeof(SPCtrlCurveClass),
reinterpret_cast<GClassInitFunc>(sp_ctrlcurve_class_init),
sizeof(SPCtrlCurve),
0,
reinterpret_cast<GInstanceInitFunc>(sp_ctrlcurve_init),
};
type = g_type_register_static(SP_TYPE_CANVAS_ITEM, "SPCtrlCurve", &info, static_cast<GTypeFlags>(0));
}
return type;
}
namespace {
{
}
static void
{
// Points are initialized to 0,0
}
static void
{
}
static void
{
return;
return;
}
static void
{
if (parent_class->update)
} else {
}
}
} // namespace
#define EPSILON 1e-6
{
}
{
sp_canvas_item_request_update( this );
}
}
/*
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 :