/**
* @file
* Canvas item belonging to an SVG drawing element.
*//*
* Authors:
* Krzysztof KosiĆski <tweenk.pl@gmail.com>
*
* Copyright (C) 2011 Authors
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <boost/operators.hpp>
#include <boost/utility.hpp>
#include <exception>
#include <list>
}
} // namespace Filters
struct UpdateContext {
};
struct CacheRecord
{
double score;
};
return "Invalid item in drawing";
}
};
: boost::noncopyable
{
enum RenderFlags {
RENDER_DEFAULT = 0,
};
enum StateFlags {
STATE_NONE = 0,
};
enum PickFlags {
};
virtual ~DrawingItem();
DrawingItem *parent() const;
void clearChildren();
void setVisible(bool v);
void setSensitive(bool v);
void setCached(bool c, bool persistent = false);
void setOpacity(float opacity);
void setAntialiasing(bool a);
void setBlendMode(unsigned blend_mode);
void setZOrder(unsigned z);
void update(Geom::IntRect const &area = Geom::IntRect::infinite(), UpdateContext const &ctx = UpdateContext(), unsigned flags = STATE_ALL, unsigned reset = 0);
unsigned render(DrawingContext &dc, Geom::IntRect const &area, unsigned flags = 0, DrawingItem *stop_at = NULL);
enum ChildType {
};
enum RenderResult {
RENDER_OK = 0,
};
void _markForRendering();
double _cacheScore();
unsigned /*flags*/, unsigned /*reset*/) { return 0; }
virtual unsigned _renderItem(DrawingContext &/*dc*/, Geom::IntRect const &/*area*/, unsigned /*flags*/,
virtual DrawingItem *_pickItem(Geom::Point const &/*p*/, double /*delta*/, unsigned /*flags*/) { return NULL; }
// member variables start here
> ChildrenList;
/// this value is a hack used to distinguish between them
float _opacity;
Geom::OptIntRect _drawbox; ///< Full visual bounding box - enlarged by filters, shrunk by clips and masks
/// This is used to compute the filter effect region and render in
/// objectBoundingBox units.
unsigned _state : 8;
unsigned _propagate_state : 8;
/// (has any ancestor with enable-background: new)
unsigned _visible : 1;
//unsigned _renders_opacity : 1; ///< Whether object needs temporary surface for opacity
/// otherwise the group is returned
unsigned _isolation : 1;
unsigned _mix_blend_mode : 4;
};
struct DeleteDisposer {
};
} // end namespace Inkscape
#endif // !SEEN_INKSCAPE_DISPLAY_DRAWING_ITEM_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 :