blob: 3f3f8bfb6ca9307622d7a3e482c1c4e4929860ac (
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
|
#ifndef __SP_SELECT_CONTEXT_H__
#define __SP_SELECT_CONTEXT_H__
/*
* Select tool
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 1999-2002 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "event-context.h"
#include <gtk/gtktypeutils.h>
#define SP_TYPE_SELECT_CONTEXT (sp_select_context_get_type ())
#define SP_SELECT_CONTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_SELECT_CONTEXT, SPSelectContext))
#define SP_SELECT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_SELECT_CONTEXT, SPSelectContextClass))
#define SP_IS_SELECT_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_SELECT_CONTEXT))
#define SP_IS_SELECT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_SELECT_CONTEXT))
struct SPCanvasItem;
class SPSelectContext;
class SPSelectContextClass;
namespace Inkscape {
class MessageContext;
class SelTrans;
class SelectionDescriber;
}
struct SPSelectContext : public SPEventContext {
guint dragging : 1;
guint moved : 1;
bool button_press_shift;
bool button_press_ctrl;
bool button_press_alt;
SPItem *item;
SPCanvasItem *grabbed;
Inkscape::SelTrans *_seltrans;
Inkscape::SelectionDescriber *_describer;
};
struct SPSelectContextClass {
SPEventContextClass parent_class;
};
/* Standard Gtk function */
GtkType sp_select_context_get_type (void);
#endif
|