diff options
| author | Markus Engel <markus.engel@tum.de> | 2012-08-21 00:54:06 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2012-08-21 00:54:06 +0000 |
| commit | 62fbbefccbe10ec11e727735e6bfe890003b0af2 (patch) | |
| tree | 1741dcb7c61f75230ba00489ee2d9f3c0d11692f /src/sp-stop.h | |
| parent | Added "virtual pad" to SPScript. (diff) | |
| download | inkscape-62fbbefccbe10ec11e727735e6bfe890003b0af2.tar.gz inkscape-62fbbefccbe10ec11e727735e6bfe890003b0af2.zip | |
Added "virtual pad" to
- SPPaintServer
- SPPattern
- SPGradient
- SPStop
- SPLinearGradient
- SPMeshGradient
- SPMeshPatch
- SPMeshRow
- SPRadialGradient
As all subclasses of SPPaintServer now have "virtual pads" with correct inheritance, the virtual function call to "onCreatePattern" was converted to C++ style.
(bzr r11608.1.35)
Diffstat (limited to 'src/sp-stop.h')
| -rw-r--r-- | src/sp-stop.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/sp-stop.h b/src/sp-stop.h index c3b1e2753..79e0889df 100644 --- a/src/sp-stop.h +++ b/src/sp-stop.h @@ -27,8 +27,13 @@ struct SPStopClass; GType sp_stop_get_type(); +class CStop; + /** Gradient stop. */ -struct SPStop : public SPObject { +class SPStop : public SPObject { +public: + CStop* cstop; + /// \todo fixme: Should be SPSVGPercentage gfloat offset; @@ -60,6 +65,21 @@ struct SPStopClass { SPObjectClass parent_class; }; + +class CStop : public CObject { +public: + CStop(SPStop* stop); + virtual ~CStop(); + + virtual void onBuild(SPDocument* doc, Inkscape::XML::Node* repr); + virtual void onSet(unsigned int key, const gchar* value); + virtual Inkscape::XML::Node* onWrite(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags); + +protected: + SPStop* spstop; +}; + + guint32 sp_stop_get_rgba32(SPStop const *); |
