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 *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:encoding=utf-8:textwidth=99 :