/*
7 * Krzysztof KosiĆski <tweenk.pl@gmail.com>
9 * Copyright (C) 2011 Authors
10 * Released under GNU GPL v2+, read the file
'COPYING' for more information.
13#ifndef INKSCAPE_DISPLAY_DRAWING_IMAGE_H
14#define INKSCAPE_DISPLAY_DRAWING_IMAGE_H
18#include <gdk-pixbuf/gdk-pixbuf.h>
31 int tag()
const override {
return tag_of<
decltype(*this)>; }
35 void setPixbuf(std::shared_ptr<Inkscape::Pixbuf const> pb);
48 std::shared_ptr<Inkscape::Pixbuf const>
_pixbuf;
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Axis aligned, non-empty, generic rectangle.
Two-dimensional point that doubles as a vector.
Axis aligned, non-empty rectangle.
Minimal wrapper over Cairo.
void setClipbox(Geom::Rect const &box)
void setScale(double sx, double sy)
Geom::Rect _clipbox
for preserveAspectRatio
SPImageRendering style_image_rendering
unsigned _updateItem(Geom::IntRect const &area, UpdateContext const &ctx, unsigned flags, unsigned reset) override
~DrawingImage() override=default
unsigned _renderItem(DrawingContext &dc, RenderContext &rc, Geom::IntRect const &area, unsigned flags, DrawingItem const *stop_at) const override
void setPixbuf(std::shared_ptr< Inkscape::Pixbuf const > pb)
void setOrigin(Geom::Point const &o)
std::shared_ptr< Inkscape::Pixbuf const > _pixbuf
Geom::Rect bounds() const
int tag() const override
Unlink this node and its subtree from the rendering tree and destroy.
void setStyle(SPStyle const *style, SPStyle const *context_style=nullptr) override
Process information related to the new style.
DrawingItem * _pickItem(Geom::Point const &p, double delta, unsigned flags) override
SVG drawing item for display.
Drawing & drawing() const
Canvas item belonging to an SVG drawing element.
Helper class to stream background task notifications as a series of messages.