summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/svg-canvas.h
blob: cb8dc4013e0eb75b17966df10632689d211ca9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef __UI_WIDGET_SVGCANVAS_H__
#define __UI_WIDGET_SVGCANVAS_H__

/** \file
 * Gtkmm facade/wrapper around SPCanvas.
 *
 * Authors:
 *   Ralf Stephan <ralf@ark.in-berlin.de>
 *
 * Copyright (C) 2005 The Authors
 *
 * Released under GNU GPL, read the file 'COPYING' for more information
 */

struct SPCanvas;
struct SPDesktop;
namespace Gtk { class Widget; }
namespace Inkscape {
    namespace UI {
        namespace Widget {

class SVGCanvas
{
public:
    SVGCanvas();
    ~SVGCanvas();
    void init (SPDesktop*);
    Gtk::Widget& widget() const { return *_widget; }
    SPCanvas* spobj() const { return _spcanvas; }

protected:
    Gtk::Widget *_widget;
    SPCanvas *_spcanvas;
    SPDesktop *_dt;

    bool onEvent (GdkEvent *) const;
};

} // namespace Widget
} // namespace UI
} // namespace Inkscape


#endif 


/*
  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 :