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 <libnr/nr-point.h>
17 #include "display/display-forward.h"
18 #include "event-context.h"
20 #define SP_TYPE_DROPPER_CONTEXT (sp_dropper_context_get_type ())
21 #define SP_DROPPER_CONTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_DROPPER_CONTEXT, SPDropperContext))
22 #define SP_IS_DROPPER_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_DROPPER_CONTEXT))
24 class SPDropperContext;
25 class SPDropperContextClass;
27 enum {
28 SP_DROPPER_PICK_VISIBLE,
29 SP_DROPPER_PICK_ACTUAL
30 };
32 struct SPDropperContext {
33 SPEventContext event_context;
35 unsigned int dragging : 1;
37 SPCanvasItem *area;
38 NR::Point centre;
40 double R;
41 double G;
42 double B;
43 double alpha;
44 };
46 struct SPDropperContextClass {
47 SPEventContextClass parent_class;
48 };
50 GType sp_dropper_context_get_type (void);
52 void sp_dropper_context_copy (SPEventContext *ec);
54 void sp_dropper_c32_color_copy (guint32 c32);
56 void sp_dropper_c32_color_copy_hex (guint32 c32);
58 #endif