1 /* $Id: gtkdatabox_lines.h 4 2008-06-22 09:19:11Z rbock $ */ 2 /* GtkDatabox - An extension to the gtk+ library 3 * Copyright (C) 1998 - 2008 Dr. Roland Bock 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public License 7 * as published by the Free Software Foundation; either version 2.1 8 * of the License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 */ 19 20 /** 21 * SECTION:gtkdatabox_lines 22 * @short_description: A #GtkDataboxGraph used for displaying xy-values series of connected lines. 23 * @include: gtkdatabox_lines.h 24 * @see_also: #GtkDatabox, #GtkDataboxGraph, #GtkDataboxPoints, #GtkDataboxBars, #GtkDataboxMarkers 25 * 26 * #GtkDataboxLines is a #GtkDataboxGraph class for displaying xy-values as series of connected lines. 27 * 28 */ 29 30 #ifndef __GTK_DATABOX_LINES_H__ 31 #define __GTK_DATABOX_LINES_H__ 32 33 #include <gtkdatabox_xyc_graph.h> 34 35 G_BEGIN_DECLS 36 #define GTK_DATABOX_TYPE_LINES (gtk_databox_lines_get_type ()) 37 #define GTK_DATABOX_LINES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ 38 GTK_DATABOX_TYPE_LINES, \ 39 GtkDataboxLines)) 40 #define GTK_DATABOX_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \ 41 GTK_DATABOX_TYPE_LINES, \ 42 GtkDataboxLinesClass)) 43 #define GTK_DATABOX_IS_LINES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ 44 GTK_DATABOX_TYPE_LINES)) 45 #define GTK_DATABOX_IS_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ 46 GTK_DATABOX_TYPE_LINES)) 47 #define GTK_DATABOX_LINES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 48 GTK_DATABOX_TYPE_LINES, \ 49 GtkDataboxLinesClass)) 50 #define GTK_DATABOX_LINES_GET_PRIVATE(obj) \ 51 G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_DATABOX_TYPE_LINES, GtkDataboxLinesPrivate) 52 53 /** 54 * GtkDataboxLines 55 * 56 * #GtkDataboxLines is a #GtkDataboxGraph class for displaying xy-values as series of connected lines. 57 * 58 */ 59 typedef struct _GtkDataboxLines GtkDataboxLines; 60 61 typedef struct _GtkDataboxLinesClass GtkDataboxLinesClass; 62 63 struct _GtkDataboxLines 64 { 65 /*< private >*/ 66 GtkDataboxXYCGraph parent; 67 }; 68 69 struct _GtkDataboxLinesClass 70 { 71 GtkDataboxXYCGraphClass parent_class; 72 }; 73 74 GType gtk_databox_lines_get_type (void); 75 76 GtkDataboxGraph *gtk_databox_lines_new (guint len, gfloat * X, gfloat * Y, 77 GdkRGBA * color, guint size); 78 79 GtkDataboxGraph *gtk_databox_lines_new_full (guint maxlen, guint len, 80 void * X, guint xstart, guint xstride, GType xtype, 81 void * Y, guint ystart, guint ystride, GType ytype, 82 GdkRGBA * color, guint size); 83 84 G_END_DECLS 85 #endif /* __GTK_DATABOX_LINES_H__ */ 86