/usr/include/gtkextra-3.0/gtkextra/gtkplotdata.h is in libgtkextra-dev 3.3.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | /* gtkplotdata - 2d scientific plots widget for gtk+
* Copyright 1999-2001 Adrian E. Feiguin <feiguin@ifir.edu.ar>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GTK_PLOT_DATA_H__
#define __GTK_PLOT_DATA_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "gtkplot.h"
#define GTK_PLOT_DATA(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gtk_plot_data_get_type (), GtkPlotData)
#define G_TYPE_PLOT_DATA (gtk_plot_data_get_type ())
#define GTK_PLOT_DATA_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gtk_plot_data_get_type(), GtkPlotDataClass)
#define GTK_IS_PLOT_DATA(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gtk_plot_data_get_type ())
GType gtk_plot_data_get_type (void);
GType gtk_plot_marker_get_type (void);
GtkWidget* gtk_plot_data_new (void);
GtkWidget* gtk_plot_data_new_function (GtkPlotFunc function);
void gtk_plot_data_construct_function (GtkPlotData *data,
GtkPlotFunc function);
GtkWidget* gtk_plot_data_new_iterator (GtkPlotIterator iterator,
gint npoints,
guint16 mask);
void gtk_plot_data_construct_iterator (GtkPlotData *data,
GtkPlotIterator iterator,
gint npoints,
guint16 mask);
void gtk_plot_data_clone (GtkPlotData *data,
GtkPlotData *copy);
/* required dimensions, private use */
void gtk_plot_data_add_dimension (GtkPlotData *data,
const gchar *name,
const gchar *label,
const gchar *desc,
GType value_type,
gboolean required,
gboolean independent);
void gtk_plot_data_remove_dimension (GtkPlotData *data,
const gchar *name);
GtkPlotArray * gtk_plot_data_find_dimension (GtkPlotData *data,
const gchar *name);
guint gtk_plot_data_required_dimensions (GtkPlotData *data);
guint gtk_plot_data_independent_dimensions (GtkPlotData *data);
/* draw last n points */
void gtk_plot_data_paint (GtkPlotData *data);
void gtk_plot_data_update (GtkPlotData *data);
void gtk_plot_data_draw_points (GtkPlotData *data,
gint npoints);
void gtk_plot_data_draw_symbol (GtkPlotData *data,
gdouble px, gdouble py);
GtkPlotArray * gtk_plot_data_dimension_set_points(GtkPlotData *data,
const gchar *name,
gdouble *points);
void gtk_plot_data_dimension_set_array(GtkPlotData *data,
const gchar *name,
GtkPlotArray *array);
GtkPlotArray * gtk_plot_data_dimension_get_array(GtkPlotData *data,
const gchar *name);
void gtk_plot_data_dimension_set_scale (GtkPlotData *data,
const gchar *name,
gdouble scale);
gdouble gtk_plot_data_dimension_get_scale (GtkPlotData *data,
const gchar *name);
/*------------------------------------------------------------------------*
* Old implementation, we keep it for compatibility *
*------------------------------------------------------------------------*/
void gtk_plot_data_set_points (GtkPlotData *data,
gdouble *x, gdouble *y,
gdouble *dx, gdouble *dy,
gint num_points);
void gtk_plot_data_get_points (GtkPlotData *dataset,
gdouble **x, gdouble **y,
gdouble **dx, gdouble **dy,
gint *num_points);
void gtk_plot_data_get_point (GtkPlotData *dataset,
gint n,
gdouble *x, gdouble *y,
gdouble *z, gdouble *a,
gdouble *dx, gdouble *dy,
gdouble *dz, gdouble *da,
gchar **label,
gboolean *error);
GtkPlotArray * gtk_plot_data_set_x (GtkPlotData *data,
gdouble *x);
GtkPlotArray * gtk_plot_data_set_y (GtkPlotData *data,
gdouble *y);
GtkPlotArray * gtk_plot_data_set_z (GtkPlotData *data,
gdouble *z);
GtkPlotArray * gtk_plot_data_set_a (GtkPlotData *data,
gdouble *a);
GtkPlotArray * gtk_plot_data_set_dx (GtkPlotData *data,
gdouble *dx);
GtkPlotArray * gtk_plot_data_set_dy (GtkPlotData *data,
gdouble *dy);
GtkPlotArray * gtk_plot_data_set_dz (GtkPlotData *data,
gdouble *dz);
GtkPlotArray * gtk_plot_data_set_da (GtkPlotData *data,
gdouble *da);
void gtk_plot_data_set_a_scale (GtkPlotData *data,
gdouble a_scale);
GtkPlotArray * gtk_plot_data_set_labels (GtkPlotData *data,
gchar **labels);
gdouble * gtk_plot_data_get_x (GtkPlotData *dataset,
gint *num_points);
gdouble * gtk_plot_data_get_y (GtkPlotData *dataset,
gint *num_points);
gdouble * gtk_plot_data_get_z (GtkPlotData *dataset,
gint *num_points);
gdouble * gtk_plot_data_get_a (GtkPlotData *dataset,
gint *num_points);
gdouble * gtk_plot_data_get_dx (GtkPlotData *dataset,
gint *num_points);
gdouble * gtk_plot_data_get_dy (GtkPlotData *dataset,
gint *num_points);
gdouble * gtk_plot_data_get_dz (GtkPlotData *dataset,
gint *num_points);
gdouble * gtk_plot_data_get_da (GtkPlotData *dataset,
gint *num_points);
gdouble gtk_plot_data_get_a_scale (GtkPlotData *dataset);
/*------------------------------------------------------------------------*/
gchar ** gtk_plot_data_get_labels (GtkPlotData *dataset,
gboolean *show_labels);
void gtk_plot_data_show_labels (GtkPlotData *dataset,
gboolean show_labels);
void gtk_plot_data_labels_set_attributes (GtkPlotData *data,
const gchar *font,
gint height,
gint angle,
const GdkColor *fg,
const GdkColor *bg);
void gtk_plot_data_set_numpoints (GtkPlotData *dataset,
gint num_points);
gint gtk_plot_data_get_numpoints (GtkPlotData *data);
void gtk_plot_data_set_symbol (GtkPlotData *dataset,
GtkPlotSymbolType type,
GtkPlotSymbolStyle style,
gint size,
gfloat line_width,
const GdkColor *color,
const GdkColor *border_color);
void gtk_plot_data_get_symbol (GtkPlotData *dataset,
GtkPlotSymbolType *type,
GtkPlotSymbolStyle *style,
gint *size,
gfloat *line_width,
GdkColor *color,
GdkColor *border_color);
void gtk_plot_data_set_connector (GtkPlotData *dataset,
GtkPlotConnector connector);
gint gtk_plot_data_get_connector (GtkPlotData *dataset);
void gtk_plot_data_set_line_attributes (GtkPlotData *dataset,
GtkPlotLineStyle style,
GdkCapStyle cap_style,
GdkJoinStyle join_style,
gfloat width,
const GdkColor *color);
void gtk_plot_data_get_line_attributes (GtkPlotData *dataset,
GtkPlotLineStyle *style,
GdkCapStyle *cap_style,
GdkJoinStyle *join_style,
gfloat *width,
GdkColor *color);
void gtk_plot_data_set_x_attributes (GtkPlotData *dataset,
GtkPlotLineStyle style,
GdkCapStyle cap_style,
GdkJoinStyle join_style,
gfloat width,
const GdkColor *color);
void gtk_plot_data_set_y_attributes (GtkPlotData *dataset,
GtkPlotLineStyle style,
GdkCapStyle cap_style,
GdkJoinStyle join_style,
gfloat width,
const GdkColor *color);
void gtk_plot_data_set_z_attributes (GtkPlotData *dataset,
GtkPlotLineStyle style,
GdkCapStyle cap_style,
GdkJoinStyle join_style,
gfloat width,
const GdkColor *color);
void gtk_plot_data_show_xerrbars (GtkPlotData *dataset);
void gtk_plot_data_show_yerrbars (GtkPlotData *dataset);
void gtk_plot_data_show_zerrbars (GtkPlotData *dataset);
void gtk_plot_data_hide_xerrbars (GtkPlotData *dataset);
void gtk_plot_data_hide_yerrbars (GtkPlotData *dataset);
void gtk_plot_data_hide_zerrbars (GtkPlotData *dataset);
void gtk_plot_data_fill_area (GtkPlotData *dataset,
gboolean fill);
gboolean gtk_plot_data_area_is_filled (GtkPlotData *dataset);
void gtk_plot_data_show_legend (GtkPlotData *data);
void gtk_plot_data_hide_legend (GtkPlotData *dataset);
void gtk_plot_data_set_legend (GtkPlotData *dataset,
const gchar *legend);
void gtk_plot_data_set_legend_precision (GtkPlotData *dataset,
gint precision);
gint gtk_plot_data_get_legend_precision (GtkPlotData *data);
void gtk_plot_data_set_name (GtkPlotData *dataset,
const gchar *name);
GtkPlotAxis * gtk_plot_data_gradient (GtkPlotData *data);
GtkAllocation gtk_plot_data_get_gradient_allocation (GtkPlotData *data);
void gtk_plot_data_move_gradient (GtkPlotData *data,
gdouble x, gdouble y);
void gtk_plot_data_set_gradient_size (GtkPlotData *data,
gint size);
void gtk_plot_data_reset_gradient (GtkPlotData *data);
void gtk_plot_data_reset_gradient_colors (GtkPlotData *data);
void gtk_plot_data_gradient_use_custom_colors(GtkPlotData *data,
gboolean custom);
gboolean gtk_plot_data_gradient_custom_colors (GtkPlotData *data);
void gtk_plot_data_set_gradient_mask (GtkPlotData *data,
gint mask);
gint gtk_plot_data_get_gradient_mask (GtkPlotData *data);
void gtk_plot_data_gradient_set_visible (GtkPlotData *data,
gboolean visible);
gboolean gtk_plot_data_gradient_visible (GtkPlotData *data);
void gtk_plot_data_gradient_autoscale_a (GtkPlotData *data);
void gtk_plot_data_gradient_autoscale_da (GtkPlotData *data);
void gtk_plot_data_gradient_autoscale_z (GtkPlotData *data);
void gtk_plot_data_set_gradient_colors (GtkPlotData *data,
const GdkColor *min,
const GdkColor *max);
void gtk_plot_data_get_gradient_colors (GtkPlotData *data,
GdkColor *min,
GdkColor *max);
void gtk_plot_data_set_gradient_nth_color (GtkPlotData *data,
guint level,
GdkColor *color);
const GdkColor *gtk_plot_data_get_gradient_nth_color (GtkPlotData *data,
guint level);
void gtk_plot_data_set_gradient_outer_colors (GtkPlotData *data,
const GdkColor *min,
const GdkColor *max);
void gtk_plot_data_get_gradient_outer_colors (GtkPlotData *data,
GdkColor *min,
GdkColor *max);
void gtk_plot_data_set_gradient (GtkPlotData *data,
gdouble min,
gdouble max,
gint nlevels,
gint nsublevels);
void gtk_plot_data_get_gradient (GtkPlotData *data,
gdouble *min,
gdouble *max,
gint *nlevels,
gint *nsublevels);
void gtk_plot_data_get_gradient_level (GtkPlotData *data,
gdouble level,
GdkColor *color);
void gtk_plot_data_gradient_set_style (GtkPlotData *data,
GtkPlotLabelStyle style,
gint precision);
void gtk_plot_data_gradient_set_scale (GtkPlotData *data,
GtkPlotScale scale);
void gtk_plot_data_gradient_set_title (GtkPlotData *data,
gchar *title);
void gtk_plot_data_set_gradient_show_lt_gt (GtkPlotData *data,
gboolean show);
gboolean gtk_plot_data_gradient_show_lt_gt (GtkPlotData *data);
void gtk_plot_data_set_link (GtkPlotData *dataset,
gpointer link);
gpointer gtk_plot_data_get_link (GtkPlotData *dataset);
void gtk_plot_data_remove_link (GtkPlotData *dataset);
/* Markers */
GtkPlotMarker * gtk_plot_data_add_marker (GtkPlotData *data,
guint point);
gboolean gtk_plot_data_remove_marker (GtkPlotData *data,
GtkPlotMarker *marker);
void gtk_plot_data_remove_markers (GtkPlotData *data);
void gtk_plot_data_show_markers (GtkPlotData *data,
gboolean show);
gboolean gtk_plot_data_markers_visible (GtkPlotData *data);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GTK_PLOT_DATA_H__ */
|