~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/select-context.h

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SP_SELECT_CONTEXT_H__
 
2
#define __SP_SELECT_CONTEXT_H__
 
3
 
 
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
 */
 
14
 
 
15
#include "event-context.h"
 
16
 
 
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))
 
22
 
 
23
class SPSelectContext;
 
24
class SPSelectContextClass;
 
25
 
 
26
namespace Inkscape {
 
27
  class MessageContext;
 
28
  class SelTrans;
 
29
  class SelectionDescriber;
 
30
}
 
31
 
 
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
};
 
43
 
 
44
struct SPSelectContextClass {
 
45
        SPEventContextClass parent_class;
 
46
};
 
47
 
 
48
/* Standard Gtk function */
 
49
 
 
50
GtkType sp_select_context_get_type (void);
 
51
 
 
52
#endif