cb8dc4013e0eb75b17966df10632689d211ca9af
1 #ifndef __UI_WIDGET_SVGCANVAS_H__
2 #define __UI_WIDGET_SVGCANVAS_H__
4 /** \file
5 * Gtkmm facade/wrapper around SPCanvas.
6 *
7 * Authors:
8 * Ralf Stephan <ralf@ark.in-berlin.de>
9 *
10 * Copyright (C) 2005 The Authors
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 struct SPCanvas;
16 struct SPDesktop;
17 namespace Gtk { class Widget; }
18 namespace Inkscape {
19 namespace UI {
20 namespace Widget {
22 class SVGCanvas
23 {
24 public:
25 SVGCanvas();
26 ~SVGCanvas();
27 void init (SPDesktop*);
28 Gtk::Widget& widget() const { return *_widget; }
29 SPCanvas* spobj() const { return _spcanvas; }
31 protected:
32 Gtk::Widget *_widget;
33 SPCanvas *_spcanvas;
34 SPDesktop *_dt;
36 bool onEvent (GdkEvent *) const;
37 };
39 } // namespace Widget
40 } // namespace UI
41 } // namespace Inkscape
44 #endif
47 /*
48 Local Variables:
49 mode:c++
50 c-file-style:"stroustrup"
51 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
52 indent-tabs-mode:nil
53 fill-column:99
54 End:
55 */
56 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :