summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30a89bc)
raw | patch | inline | side by side (parent: 30a89bc)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 2 Aug 2008 20:25:34 +0000 (20:25 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 2 Aug 2008 20:25:34 +0000 (20:25 +0000) |
src/sp-pattern.h | patch | blob | history |
diff --git a/src/sp-pattern.h b/src/sp-pattern.h
index 4d49783fc79fd7ecd3c3fa727ca5558fd3e01845..b40b12d8a08dd7c37403638a946113f14446372c 100644 (file)
--- a/src/sp-pattern.h
+++ b/src/sp-pattern.h
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);
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 :