#ifndef SEEN_SP_PAINT_SERVER_H #define SEEN_SP_PAINT_SERVER_H /* * Base class for gradients and patterns * * Author: * Lauris Kaplinski * Jon A. Cruz * * Copyright (C) 1999-2002 Lauris Kaplinski * Copyright (C) 2000-2001 Ximian, Inc. * Copyright (C) 2010 Authors * * Released under GNU GPL, read the file 'COPYING' for more information */ #include #include <2geom/rect.h> #include "sp-object.h" #include "uri-references.h" #define SP_PAINT_SERVER(obj) (dynamic_cast((SPObject*)obj)) #define SP_IS_PAINT_SERVER(obj) (dynamic_cast((SPObject*)obj) != NULL) class SPPaintServer : public SPObject { public: SPPaintServer(); virtual ~SPPaintServer(); bool isSwatch() const; bool isSolid() const; virtual cairo_pattern_t* pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity) = 0; protected: bool swatch; }; #endif // SEEN_SP_PAINT_SERVER_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 :