canvas-bpath.cpp revision cd8e8082c747cc529d5bf595b4102e88224a1811
#define __SP_CANVAS_BPATH_C__
/*
* Simple bezier bpath CanvasItem for inkscape
*
* Authors:
* Lauris Kaplinski <lauris@ximian.com>
*
* Copyright (C) 2001 Lauris Kaplinski and Ximian, Inc.
*
* Released under GNU GPL
*
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "color.h"
#include "display/sp-canvas-util.h"
#include "display/canvas-bpath.h"
#include "display/display-forward.h"
#include "display/cairo-utils.h"
#include <libnr/nr-pixops.h>
#include <sstream>
#include <string.h>
#include <desktop.h>
/**
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <color.h>
#include <libnr/nr-pixops.h>
**/
void nr_pixblock_render_bpath_rgba (Shape* theS,uint32_t color,NRRectL &area,char* destBuf,int stride);
static void sp_canvas_bpath_update (SPCanvasItem *item, Geom::Matrix const &affine, unsigned int flags);
static double sp_canvas_bpath_point (SPCanvasItem *item, Geom::Point p, SPCanvasItem **actual_item);
static SPCanvasItemClass *parent_class;
sp_canvas_bpath_get_type (void)
{
if (!type) {
GtkTypeInfo info = {
(gchar *)"SPCanvasBPath",
sizeof (SPCanvasBPath),
sizeof (SPCanvasBPathClass),
};
}
return type;
}
static void
{
}
static void
{
}
static void
{
}
}
static void
{
sp_canvas_request_redraw (item->canvas, (int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
if (bbox) {
} else {
}
sp_canvas_request_redraw (item->canvas, (int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
}
static void
{
return;
return;
if (dofill) {
// RGB / BGR
}
if (dostroke) {
}
} else {
}
}
static double
{
double width = 0.5;
pathv_matrix_point_bbox_wind_distance(cbp->curve->get_pathvector(), cbp->affine, p, NULL, NULL, &dist, 0.5, &viewbox);
if (dist <= 1.0) {
*actual_item = item;
}
return dist;
}
{
return item;
}
void
{
}
if (curve) {
}
}
void
{
}
void
sp_canvas_bpath_set_stroke (SPCanvasBPath *cbp, guint32 rgba, gdouble width, SPStrokeJoinType join, SPStrokeCapType cap, double dash, double gap)
{
}
/*
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:encoding=utf-8:textwidth=99 :