GtkDatabox: gtk/gtkdatabox_grid.h Source File

GtkDatabox A set of GTK+ widgets to display large amounts of numerical data quickly and easily.

- Main Page
- Data Structures
- Files

- File List
- Globals

gtk/gtkdatabox_grid.h
Go to the documentation of this file.

    00001 /* $Id: gtkdatabox_grid.h 4 2008-06-22 09:19:11Z rbock $ */
    00002 /* GtkDatabox - An extension to the gtk+ library
    00003  * Copyright (C) 1998 - 2008  Dr. Roland Bock
    00004  *
    00005  * This program is free software; you can redistribute it and/or
    00006  * modify it under the terms of the GNU Lesser General Public License
    00007  * as published by the Free Software Foundation; either version 2.1
    00008  * of the License, or (at your option) any later version.
    00009  *
    00010  * This program is distributed in the hope that it will be useful,
    00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00013  * GNU Lesser General Public License for more details.
    00014  *
    00015  * You should have received a copy of the GNU General Public License
    00016  * along with this program; if not, write to the Free Software
    00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    00018  */
    00019
    00031 #ifndef __GTK_DATABOX_GRID_H__
    00032 #define __GTK_DATABOX_GRID_H__
    00033
    00034 #include <gtkdatabox_graph.h>
    00035
    00036 G_BEGIN_DECLS
    00037 #define GTK_DATABOX_TYPE_GRID             (gtk_databox_grid_get_type ())
    00038 #define GTK_DATABOX_GRID(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
    00039                                            GTK_DATABOX_TYPE_GRID, \
    00040                                            GtkDataboxGrid))
    00041 #define GTK_DATABOX_GRID_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), \
    00042                                            GTK_DATABOX_TYPE_GRID, \
    00043                                            GtkDataboxGridClass))
    00044 #define GTK_DATABOX_IS_GRID(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
    00045                                            GTK_DATABOX_TYPE_GRID))
    00046 #define GTK_DATABOX_IS_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
    00047                                            GTK_DATABOX_TYPE_GRID))
    00048 #define GTK_DATABOX_GRID_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
    00049                                            GTK_DATABOX_TYPE_GRID, \
    00050                                            GtkDataboxGridClass))
    00051
    00060    typedef struct _GtkDataboxGrid GtkDataboxGrid;
    00061
    00062    typedef struct _GtkDataboxGridClass GtkDataboxGridClass;
    00063
    00071    typedef struct _GtkDataboxGridPrivate GtkDataboxGridPrivate;
    00072
    00073    struct _GtkDataboxGrid
    00074    {
    00075       GtkDataboxGraph parent;
    00076
    00077       GtkDataboxGridPrivate *priv;
    00078    };
    00079
    00080    struct _GtkDataboxGridClass
    00081    {
    00082       GtkDataboxGraphClass parent_class;
    00083    };
    00084
    00085    GType gtk_databox_grid_get_type (void);
    00086
    00087    GtkDataboxGraph *gtk_databox_grid_new (gint hlines, gint vlines,
    00088                                           GdkColor * color, guint size);
    00089    GtkDataboxGraph *gtk_databox_grid_array_new (gint hlines, gint vlines, gfloat *hline_vals, gfloat *vline_vals,
    00090                                           GdkColor * color, guint size);
    00091
    00092    void gtk_databox_grid_set_hlines (GtkDataboxGrid * grid, gint hlines);
    00093    gint gtk_databox_grid_get_hlines (GtkDataboxGrid * grid);
    00094
    00095    void gtk_databox_grid_set_vlines (GtkDataboxGrid * grid, gint vlines);
    00096    gint gtk_databox_grid_get_vlines (GtkDataboxGrid * grid);
    00097
    00098    void gtk_databox_grid_set_hline_vals (GtkDataboxGrid * grid, gfloat* hline_vals);
    00099    gfloat* gtk_databox_grid_get_hline_vals (GtkDataboxGrid * grid);
    00100
    00101    void gtk_databox_grid_set_vline_vals (GtkDataboxGrid * grid, gfloat* vline_vals);
    00102    gfloat* gtk_databox_grid_get_vline_vals (GtkDataboxGrid * grid);
    00103
    00104 G_END_DECLS
    00105 #endif                          /* __GTK_DATABOX_GRID_H__ */

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines