summaryrefslogtreecommitdiffstats
path: root/src/sp-pattern.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-08-02 20:25:34 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-08-02 20:25:34 +0000
commit2c8404a00c2ce0b7354a3f9ea86eeb27a9da48ec (patch)
tree34c6b0f9924b637ab31cada11adc68c3ed95f832 /src/sp-pattern.h
parentwhen holding ctrl, pattern scaling has a fixed 1:1 ratio of original pattern ... (diff)
downloadinkscape-2c8404a00c2ce0b7354a3f9ea86eeb27a9da48ec.tar.gz
inkscape-2c8404a00c2ce0b7354a3f9ea86eeb27a9da48ec.zip
whitespace
(bzr r6527)
Diffstat (limited to 'src/sp-pattern.h')
-rw-r--r--src/sp-pattern.h77
1 files changed, 44 insertions, 33 deletions
diff --git a/src/sp-pattern.h b/src/sp-pattern.h
index 4d49783fc..b40b12d8a 100644
--- a/src/sp-pattern.h
+++ b/src/sp-pattern.h
@@ -36,48 +36,49 @@ class SPPatternClass;
class SPPatternReference : public Inkscape::URIReference {
public:
- SPPatternReference (SPObject *obj) : URIReference(obj) {}
- SPPattern *getObject() const {
- return (SPPattern *)URIReference::getObject();
- }
+ SPPatternReference (SPObject *obj) : URIReference(obj) {}
+ SPPattern *getObject() const {
+ return (SPPattern *)URIReference::getObject();
+ }
+
protected:
- virtual bool _acceptObject(SPObject *obj) const {
- return SP_IS_PATTERN (obj);
- }
+ virtual bool _acceptObject(SPObject *obj) const {
+ return SP_IS_PATTERN (obj);
+ }
};
enum {
- SP_PATTERN_UNITS_USERSPACEONUSE,
- SP_PATTERN_UNITS_OBJECTBOUNDINGBOX
+ SP_PATTERN_UNITS_USERSPACEONUSE,
+ SP_PATTERN_UNITS_OBJECTBOUNDINGBOX
};
struct SPPattern : public SPPaintServer {
- /* Reference (href) */
- gchar *href;
- SPPatternReference *ref;
-
- /* patternUnits and patternContentUnits attribute */
- guint patternUnits : 1;
- guint patternUnits_set : 1;
- guint patternContentUnits : 1;
- guint patternContentUnits_set : 1;
- /* patternTransform attribute */
- NR::Matrix patternTransform;
- guint patternTransform_set : 1;
- /* Tile rectangle */
- SVGLength x;
- SVGLength y;
- SVGLength width;
- SVGLength height;
- /* VieBox */
- NRRect viewBox;
- guint viewBox_set : 1;
-
- sigc::connection modified_connection;
+ /* Reference (href) */
+ gchar *href;
+ SPPatternReference *ref;
+
+ /* patternUnits and patternContentUnits attribute */
+ guint patternUnits : 1;
+ guint patternUnits_set : 1;
+ guint patternContentUnits : 1;
+ guint patternContentUnits_set : 1;
+ /* patternTransform attribute */
+ NR::Matrix patternTransform;
+ guint patternTransform_set : 1;
+ /* Tile rectangle */
+ SVGLength x;
+ SVGLength y;
+ SVGLength width;
+ SVGLength height;
+ /* VieBox */
+ NRRect viewBox;
+ guint viewBox_set : 1;
+
+ sigc::connection modified_connection;
};
struct SPPatternClass {
- SPPaintServerClass parent_class;
+ SPPaintServerClass parent_class;
};
guint pattern_users (SPPattern *pattern);
@@ -98,5 +99,15 @@ gdouble pattern_width (SPPattern *pat);
gdouble pattern_height (SPPattern *pat);
NRRect *pattern_viewBox (SPPattern *pat);
+#endif //__SP_PATTERN_H__
-#endif
+/*
+ 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 :