sp-shape.h revision 6bbadb7dace9a9325f05c20ab8401ef71e857c10
#ifndef SEEN_SP_SHAPE_H
#define SEEN_SP_SHAPE_H
/*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Abhishek Sharma
* Jon A. Cruz <jon@joncruz.org>
* Johan Engelen
*
* Copyright (C) 1999-2002 Lauris Kaplinski
* Copyright (C) 2000-2001 Ximian, Inc.
* Copyright (C) 1999-2012 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "sp-lpe-item.h"
#include "sp-marker-loc.h"
#include <stddef.h>
#include <sigc++/connection.h>
#define SP_TYPE_SHAPE (sp_shape_get_type ())
#define SP_IS_SHAPE(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPShape)))
/**
* Base class for shapes, including <path> element
*/
void setShape ();
SPCurve * getCurveBeforeLPE () const;
int hasMarkers () const;
int numberOfMarkers (int type);
public: // temporarily public, until SPPath is properly classed, etc.
};
};
virtual Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags);
virtual Inkscape::DrawingItem* show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags);
virtual void snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs);
};
#endif // SEEN_SP_SHAPE_H
/*
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 :