Code

moving trunk for module inkscape
[inkscape.git] / src / select-context.h
1 #ifndef __SP_SELECT_CONTEXT_H__
2 #define __SP_SELECT_CONTEXT_H__
4 /*
5  * Select tool
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * Copyright (C) 1999-2002 authors
11  *
12  * Released under GNU GPL, read the file 'COPYING' for more information
13  */
15 #include "event-context.h"
17 #define SP_TYPE_SELECT_CONTEXT            (sp_select_context_get_type ())
18 #define SP_SELECT_CONTEXT(obj)            (GTK_CHECK_CAST ((obj), SP_TYPE_SELECT_CONTEXT, SPSelectContext))
19 #define SP_SELECT_CONTEXT_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_SELECT_CONTEXT, SPSelectContextClass))
20 #define SP_IS_SELECT_CONTEXT(obj)         (GTK_CHECK_TYPE ((obj), SP_TYPE_SELECT_CONTEXT))
21 #define SP_IS_SELECT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_SELECT_CONTEXT))
23 class SPSelectContext;
24 class SPSelectContextClass;
26 namespace Inkscape {
27   class MessageContext;
28   class SelTrans;
29   class SelectionDescriber;
30 }
32 struct SPSelectContext : public SPEventContext {
33         guint dragging : 1;
34         guint moved : 1;
35         bool button_press_shift;
36         bool button_press_ctrl;
37         bool button_press_alt;
38         SPItem *item;
39         SPCanvasItem *grabbed;
40         Inkscape::SelTrans *_seltrans;
41         Inkscape::SelectionDescriber *_describer;
42 };
44 struct SPSelectContextClass {
45         SPEventContextClass parent_class;
46 };
48 /* Standard Gtk function */
50 GtkType sp_select_context_get_type (void);
52 #endif