sp-ctrlline.cpp revision 567495b02296009865daffc5cf726b43e52616ad
/*
* Simple straight line
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
* Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2007 Johan Engelen
* Copyright (C) 1999-2002 Lauris Kaplinski
*
* Released under GNU GPL
*/
/*
* TODO:
* Draw it by hand - we really do not need aa stuff for it
*
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "display/sp-ctrlline.h"
#include "display/sp-canvas-util.h"
#include "display/cairo-utils.h"
#include "color.h"
#include "display/sp-canvas.h"
namespace {
} // namespace
{
if (!type) {
sizeof(SPCtrlLineClass),
reinterpret_cast<GClassInitFunc>(sp_ctrlline_class_init),
sizeof(SPCtrlLine),
0,
reinterpret_cast<GInstanceInitFunc>(sp_ctrlline_init),
};
type = g_type_register_static(SP_TYPE_CANVAS_ITEM, "SPCtrlLine", &info, static_cast<GTypeFlags>(0));
}
return type;
}
namespace {
{
}
{
}
{
}
}
{
return;
}
return;
}
}
{
if (parent_class->update) {
}
} else {
}
}
} // namespace
{
}
}
#define EPSILON 1e-6
{
if (DIFFER(x0, s[Geom::X]) || DIFFER(y0, s[Geom::Y]) || DIFFER(x1, e[Geom::X]) || DIFFER(y1, e[Geom::Y])) {
}
}
{
}
/*
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 :