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 "display/display-forward.h"
16 #include "event-context.h"
18 #define SP_TYPE_DROPPER_CONTEXT (sp_dropper_context_get_type ())
19 #define SP_DROPPER_CONTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_DROPPER_CONTEXT, SPDropperContext))
20 #define SP_IS_DROPPER_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_DROPPER_CONTEXT))
22 class SPDropperContext;
23 class SPDropperContextClass;
25 enum {
26 SP_DROPPER_PICK_VISIBLE,
27 SP_DROPPER_PICK_ACTUAL
28 };
30 struct SPDropperContext {
31 SPEventContext event_context;
33 unsigned int dragging : 1;
35 SPCanvasItem *grabbed;
36 SPCanvasItem *area;
37 Geom::Point centre;
39 double R;
40 double G;
41 double B;
42 double alpha;
43 };
45 struct SPDropperContextClass {
46 SPEventContextClass parent_class;
47 };
49 GType sp_dropper_context_get_type (void);
51 guint32 sp_dropper_context_get_color(SPEventContext *ec);
53 #endif
55 /*
56 Local Variables:
57 mode:c++
58 c-file-style:"stroustrup"
59 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
60 indent-tabs-mode:nil
61 fill-column:99
62 End:
63 */
64 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :