~ubuntu-branches/debian/sid/genius/sid

« back to all changes in this revision

Viewing changes to gtkextra/gtkplotdt.h

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2014-04-07 15:43:04 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20140407154304-21r03zdnfc571kz0
Tags: 1.0.17-1
* Take over package from pkg-gnome
* New upstream release. Closes: #716731
* Bump standards version.
* Update Vcs fields to Git.
* Move to single-debian-patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
extern "C" {
26
26
#endif /* __cplusplus */
27
27
 
28
 
#define GTK_PLOT_DT(obj)        GTK_CHECK_CAST (obj, gtk_plot_dt_get_type (), GtkPlotDT)
29
 
#define GTK_TYPE_PLOT_DT   (gtk_plot_dt_get_type ())
 
28
#define GTK_PLOT_DT(obj)        G_TYPE_CHECK_INSTANCE_CAST (obj, gtk_plot_dt_get_type (), GtkPlotDT)
 
29
#define G_TYPE_PLOT_DT   (gtk_plot_dt_get_type ())
30
30
 
31
 
#define GTK_PLOT_DT_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_plot_dt_get_type(), GtkPlotDTClass)
32
 
#define GTK_IS_PLOT_DT(obj)     GTK_CHECK_TYPE (obj, gtk_plot_dt_get_type ())
 
31
#define GTK_PLOT_DT_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gtk_plot_dt_get_type(), GtkPlotDTClass)
 
32
#define GTK_IS_PLOT_DT(obj)     G_TYPE_CHECK_INSTANCE_TYPE (obj, gtk_plot_dt_get_type ())
33
33
 
34
34
 
35
35
typedef struct _GtkPlotDTnode GtkPlotDTnode;
39
39
typedef struct _GtkPlotDTClass GtkPlotDTClass;
40
40
 
41
41
/* A 2D-node for the delaunay triangulation */
 
42
/**
 
43
 * GtkPlotDTnode:
 
44
 *
 
45
 * The GtkPlotDTnode struct contains only private data.
 
46
 * It should only be accessed through the functions described below.
 
47
 */
42
48
struct _GtkPlotDTnode 
43
49
{
 
50
  /*< private >*/
44
51
  gdouble x, y, z;    /* actual coordinates */
45
52
  gdouble px, py, pz;   /* pixel coordinates */
46
53
  gint id;            /* some kind of 'meta-data' for external use */
48
55
  gint boundary_marker;
49
56
};
50
57
 
 
58
/**
 
59
 * GtkPlotDTtriangle:
 
60
 *
 
61
 * The GtkPlotDTtriangle struct contains only private data.
 
62
 * It should only be accessed through the functions described below.
 
63
 */
51
64
struct _GtkPlotDTtriangle 
52
65
{
 
66
  /*< private >*/
53
67
  gint a, b, c;
54
68
  GtkPlotDTnode *na, *nb, *nc;
55
69
  double radius;         /* radius-square */
104
118
  void          (* clear)                       (GtkPlotDT *data);
105
119
};
106
120
 
107
 
GtkType         gtk_plot_dt_get_type                    (void);
 
121
GType           gtk_plot_dt_get_type                    (void);
108
122
GtkObject*      gtk_plot_dt_new                         (gint num);
109
 
void            gtk_plot_dt_set_quadrilateral           (GtkPlotDT *data, 
 
123
void            gtk_plot_dt_set_quadrilateral           (GtkPlotDT *dt, 
110
124
                                                         gboolean set);
111
 
void            gtk_plot_dt_set_subsampling             (GtkPlotDT *data, 
 
125
void            gtk_plot_dt_set_subsampling             (GtkPlotDT *dt, 
112
126
                                                         gboolean set);
113
127
gboolean        gtk_plot_dt_add_node                    (GtkPlotDT *data, 
114
128
                                                         GtkPlotDTnode node);