diff options
| author | vanntile <valentin.ionita1201@gmail.com> | 2019-08-02 16:23:28 +0000 |
|---|---|---|
| committer | vanntile <valentin.ionita1201@gmail.com> | 2019-08-17 15:33:45 +0000 |
| commit | 56d76b4861d034dad8b4eeb25e86308e233202e4 (patch) | |
| tree | 9edc93e1ac61c7e176fdb7050594f0c8ee43ad57 /src/object/sp-item.h | |
| parent | Hatch knot editing initial commit (diff) | |
| download | inkscape-56d76b4861d034dad8b4eeb25e86308e233202e4.tar.gz inkscape-56d76b4861d034dad8b4eeb25e86308e233202e4.zip | |
Added knot holder entities
Diffstat (limited to 'src/object/sp-item.h')
| -rw-r--r-- | src/object/sp-item.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/object/sp-item.h b/src/object/sp-item.h index 8a4eb7e78..04f0f5fd7 100644 --- a/src/object/sp-item.h +++ b/src/object/sp-item.h @@ -55,11 +55,7 @@ class SVGViewWidget; // TODO make a completely new function that transforms either the fill or // stroke of any SPItem without adding an extra parameter to adjust_pattern. -enum PatternTransform { - TRANSFORM_BOTH, - TRANSFORM_FILL, - TRANSFORM_STROKE -}; +enum PaintServerTransform { TRANSFORM_BOTH, TRANSFORM_FILL, TRANSFORM_STROKE }; /** * Event structure. @@ -180,9 +176,9 @@ public: bool isHighlightSet() const; guint32 highlight_color() const; - + void setHighlightColor(guint32 color); - + void unsetHighlightColor(); //==================== @@ -306,7 +302,7 @@ public: /** * Allocates unique integer keys. - * + * * @param numkeys Number of keys required. * @return First allocated key; hence if the returned key is n * you can use n, n + 1, ..., n + (numkeys - 1) @@ -319,7 +315,10 @@ public: void invoke_hide(unsigned int key); void getSnappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs=nullptr) const; - void adjust_pattern(/* Geom::Affine const &premul, */ Geom::Affine const &postmul, bool set = false, PatternTransform = TRANSFORM_BOTH); + void adjust_pattern(/* Geom::Affine const &premul, */ Geom::Affine const &postmul, bool set = false, + PaintServerTransform = TRANSFORM_BOTH); + void adjust_hatch(/* Geom::Affine const &premul, */ Geom::Affine const &postmul, bool set = false, + PaintServerTransform = TRANSFORM_BOTH); void adjust_gradient(/* Geom::Affine const &premul, */ Geom::Affine const &postmul, bool set = false); void adjust_stroke(double ex); |
