sp-ctrlpoint.cpp revision 3f2f2d9a36c8132d316033e29bb2bc116292dc9a
/*
* Simple point
*
* Author:
* Maximilian Albert <maximilian.albert@gmail.com>
* Jon A. Cruz <jon@joncruz.org>
*
* 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/cairo-utils.h"
#include "display/sp-canvas.h"
static void sp_ctrlpoint_update (SPCanvasItem *item, Geom::Affine 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
{
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.left(), pt[Geom::Y] - buf->rect.top(), cp->radius, 0.0, 2 * M_PI);
}
{
if (parent_class->update) {
}
}
void
{
}
}
#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 :