sp-ctrlpoint.cpp revision 0dc33d4ce43e0bb49c63aa53b826ec4a1ff68e28
#define __INKSCAPE_CTRLPOINT_C__
/*
* Simple point
*
* Author:
* Maximilian Albert <maximilian.albert@gmail.com>
*
* Copyright (C) 2008 Maximilian Albert
*
* Released under GNU GPL
*/
#include "sp-canvas-util.h"
#include "sp-ctrlpoint.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <color.h>
#include "display/inkscape-cairo.h"
static void sp_ctrlpoint_update (SPCanvasItem *item, Geom::Matrix const &affine, unsigned int flags);
static SPCanvasItemClass *parent_class;
sp_ctrlpoint_get_type (void)
{
if (!type) {
sizeof(SPCtrlPointClass),
sizeof(SPCtrlPoint),
0,
};
}
return type;
}
static void
{
}
static void
{
}
static void
{
}
static void
{
return;
cairo_set_source_rgba(buf->ct, SP_RGBA32_B_F(rgba), SP_RGBA32_G_F(rgba), SP_RGBA32_R_F(rgba), SP_RGBA32_A_F(rgba));
cairo_arc(buf->ct, pt[Geom::X] - buf->rect.x0, pt[Geom::Y] - buf->rect.y0, cp->radius, 0.0, 2 * M_PI);
}
static void
{
sp_canvas_request_redraw (item->canvas, (int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
if (parent_class->update)
}
void
{
sp_canvas_request_redraw (item->canvas, (int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
}
}
#define EPSILON 1e-6
void
{
}
}
void
{
}
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:fileencoding=utf-8:textwidth=99 :