blob: d579f7ebcf300b311ef481f8af44b2a05a5c8d23 (
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
57
58
59
60
|
#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/gtk.h>
#define SP_TYPE_SELECT_CONTEXT (sp_select_context_get_type ())
#define SP_SELECT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_SELECT_CONTEXT, SPSelectContext))
#define SP_SELECT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_SELECT_CONTEXT, SPSelectContextClass))
#define SP_IS_SELECT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_SELECT_CONTEXT))
#define SP_IS_SELECT_CONTEXT_CLASS(klass) (G_TYPE_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;
GList *cycling_items;
GList *cycling_items_cmp;
GList *cycling_items_selected_before;
GList *cycling_cur_item;
SPItem *item;
SPCanvasItem *grabbed;
Inkscape::SelTrans *_seltrans;
Inkscape::SelectionDescriber *_describer;
};
struct SPSelectContextClass {
SPEventContextClass parent_class;
};
/* Standard Gtk function */
GType sp_select_context_get_type (void);
#endif
|