Code

Split SPCanvasItem and SPCanvasGroup to individual .h files. Removed forward header.
[inkscape.git] / src / dropper-context.h
1 #ifndef __SP_DROPPER_CONTEXT_H__
2 #define __SP_DROPPER_CONTEXT_H__
4 /*
5  * Tool for picking colors from drawing
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_DROPPER_CONTEXT (sp_dropper_context_get_type ())
18 #define SP_DROPPER_CONTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_DROPPER_CONTEXT, SPDropperContext))
19 #define SP_IS_DROPPER_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_DROPPER_CONTEXT))
21 class SPDropperContext;
22 class SPDropperContextClass;
24 enum {
25       SP_DROPPER_PICK_VISIBLE,
26       SP_DROPPER_PICK_ACTUAL  
27 };
29 struct SPDropperContext {
30     SPEventContext event_context;
32     unsigned int dragging : 1;
34         SPCanvasItem *grabbed;
35     SPCanvasItem *area;
36     Geom::Point centre;
38     double R;
39     double G;
40     double B;
41     double alpha;
42 };
44 struct SPDropperContextClass {
45     SPEventContextClass parent_class;
46 };
48 GType sp_dropper_context_get_type (void);
50 guint32 sp_dropper_context_get_color(SPEventContext *ec);
52 #endif
54 /*
55   Local Variables:
56   mode:c++
57   c-file-style:"stroustrup"
58   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
59   indent-tabs-mode:nil
60   fill-column:99
61   End:
62 */
63 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :