File: GGobiEvents.h

package info (click to toggle)
ggobi 2.1.9~20091212-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 19,340 kB
  • ctags: 5,083
  • sloc: ansic: 57,242; xml: 30,604; cpp: 833; makefile: 355; java: 225; perl: 201; sh: 122; python: 23
file content (62 lines) | stat: -rw-r--r-- 2,377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* GGobiEvents.h */
/*
 * ggobi
 * Copyright (C) AT&T, Duncan Temple Lang, Dianne Cook 1999-2005
 *
 * ggobi is free software; you may use, redistribute, and/or modify it
 * under the terms of the Common Public License, which is distributed
 * with the source code and displayed on the ggobi web site, 
 * www.ggobi.org.  For more information, contact the authors:
 *
 *   Deborah F. Swayne   dfs@research.att.com
 *   Di Cook             dicook@iastate.edu
 *   Duncan Temple Lang  duncan@wald.ucdavis.edu
 *   Andreas Buja        andreas.buja@wharton.upenn.edu
*/

#ifndef GGOBI_EVENTS_H
#define GGOBI_EVENTS_H

/*
 The CHECK_EVENT_SIGNATURE is for testing routines used with g_signal_connect.
 The CHECK_R_EVENT_SIGNATURE is for testing routines used with g_signal_connect_object.

 Similarly, the ggev_r_... are for the routines used with g_signal_connect_object.
*/

typedef void (*ggev_datad_added_f)(ggobid *, GGobiData *, void *);
typedef void (*ggev_brush_motion_f)(ggobid *, splotd *, GdkEventMotion *ev, GGobiData *, void*);
typedef void (*ggev_r_brush_motion_f)(void *,  splotd *, GdkEventMotion *ev, GGobiData *, ggobid *);

typedef void (*ggev_move_point_f)(ggobid *, splotd *, gint, GGobiData *, void*);
typedef void (*ggev_r_move_point_f)(void*, splotd *, gint, GGobiData *, ggobid *);

typedef void (*ggev_identify_point_f)(ggobid *, splotd *, gint, GGobiData *, void*);
typedef void (*ggev_select_variable_f)(ggobid *, GGobiData *, gint, splotd *, void*);

typedef void (*ggev_splot_new_f)(ggobid *, splotd *, void*);
typedef void (*ggev_r_splot_new_f)(void *, splotd *, ggobid *);

typedef void (*ggev_variable_added_f)(ggobid *, vartabled*, gint, GGobiData *, void*);
typedef void (*ggev_variable_list_changed_f)(ggobid *, GGobiData *, void*);

typedef void (*ggev_sticky_point_added_f)(ggobid *, gint, gint, GGobiData *, void*);
typedef void (*ggev_sticky_point_removed_f)(ggobid *, gint, gint, GGobiData *, void*);

typedef void (*ggev_clusters_changed_f)(ggobid *, GGobiData *, void *);

#ifdef CHECK_EVENT_SIGNATURES
#ifdef __GNUC__
#define UNUSED_ATTR  __attribute__ ((unused))
#else
#define UNUSED_ATTR
#endif

#define CHECK_EVENT_SIGNATURE(x,y)  static ggev_##y __check ## x ## y UNUSED_ATTR = & x;
#define CHECK_R_EVENT_SIGNATURE(x,y)  static ggev_r_##y __check ## x ## y UNUSED_ATTR = & x;
#else
#define CHECK_EVENT_SIGNATURE(x,y) 
#endif


#endif