Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
canvas-item-group.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_CANVAS_ITEM_GROUP_H
3#define SEEN_CANVAS_ITEM_GROUP_H
4
8/*
9 * Author:
10 * Tavmjong Bah
11 *
12 * Copyright (C) 2020 Tavmjong Bah
13 *
14 * Rewrite of SPCanvasGroup
15 *
16 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
17 */
18
19#include "canvas-item.h"
20
21namespace Inkscape {
22
23class CanvasItemGroup final : public CanvasItem
24{
25public:
28
29 // Geometry
30 void visit_page_rects(std::function<void(Geom::Rect const &)> const &) const override;
31
32 // Selection
34
35protected:
36 friend class CanvasItem; // access to items
37 friend class CanvasItemContext; // access to destructor
38
39 ~CanvasItemGroup() override;
40
41 void _update(bool propagate) override;
42 void _mark_net_invisible() override;
43 void _render(Inkscape::CanvasItemBuffer &buf) const override;
44 void _invalidate_ctrl_handles() override;
45
50 using CanvasItemList = boost::intrusive::list<
52 boost::intrusive::member_hook<Inkscape::CanvasItem, boost::intrusive::list_member_hook<>,
54
56};
57
58} // namespace Inkscape
59
60#endif // SEEN_CANVAS_ITEM_H
61
62/*
63 Local Variables:
64 mode:c++
65 c-file-style:"stroustrup"
66 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
67 indent-tabs-mode:nil
68 fill-column:99
69 End:
70*/
71// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
Two-dimensional point that doubles as a vector.
Definition point.h:66
Axis aligned, non-empty rectangle.
Definition rect.h:92
CanvasItem * pick_item(Geom::Point const &p)
void _update(bool propagate) override
void visit_page_rects(std::function< void(Geom::Rect const &)> const &) const override
boost::intrusive::list< Inkscape::CanvasItem, boost::intrusive::member_hook< Inkscape::CanvasItem, boost::intrusive::list_member_hook<>, &Inkscape::CanvasItem::member_hook > > CanvasItemList
Type for linked list storing CanvasItems.
void _render(Inkscape::CanvasItemBuffer &buf) const override
void _invalidate_ctrl_handles() override
friend class CanvasItemGroup
boost::intrusive::list_member_hook member_hook
Helper class to stream background task notifications as a series of messages.
int buf
Class used when rendering canvas items.