~coyleden/inkscape/cdscape

« back to all changes in this revision

Viewing changes to src/dropper-context.h

  • Committer: Alex Valavanis
  • Date: 2013-01-16 11:43:52 UTC
  • Revision ID: valavanisalex@gmail.com-20130116114352-f41p66kzuxc4xooc
Cleanup SPDropperContext:

* Use G_DEFINE_TYPE rather than explicit _get_type function
* Hide private members

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
#include "event-context.h"
16
16
 
 
17
G_BEGIN_DECLS
 
18
 
17
19
#define SP_TYPE_DROPPER_CONTEXT (sp_dropper_context_get_type ())
18
20
#define SP_DROPPER_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_DROPPER_CONTEXT, SPDropperContext))
19
21
#define SP_IS_DROPPER_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_DROPPER_CONTEXT))
28
30
 
29
31
struct SPDropperContext {
30
32
    SPEventContext event_context;
31
 
 
32
 
    unsigned int dragging : 1;
33
 
 
34
 
        SPCanvasItem *grabbed;
35
 
    SPCanvasItem *area;
36
 
    Geom::Point centre;
37
 
 
38
 
    double R;
39
 
    double G;
40
 
    double B;
41
 
    double alpha;
42
33
};
43
34
 
44
35
struct SPDropperContextClass {
49
40
 
50
41
guint32 sp_dropper_context_get_color(SPEventContext *ec);
51
42
 
 
43
G_END_DECLS
 
44
 
52
45
#endif
53
46
 
54
47
/*