|  |  |  | GtkDatabox Reference Manual |  | 
|---|---|---|---|---|
| GtkDataboxGridGtkDataboxGrid — A GtkDataboxGraph used for displaying a grid (like in an oscilloscope). | 
#include <gtkdatabox_grid.h>
                    GtkDataboxGridPrivate;
                    GtkDataboxGrid;
GtkDataboxGraph*    gtk_databox_grid_new                (gint hlines,
                                                         gint vlines,
                                                         GdkColor *color,
                                                         guint size);
GtkDataboxGraph*    gtk_databox_grid_array_new          (gint hlines,
                                                         gint vlines,
                                                         gfloat *hline_vals,
                                                         gfloat *vline_vals,
                                                         GdkColor *color,
                                                         guint size);
void                gtk_databox_grid_set_hlines         (GtkDataboxGrid *grid,
                                                         gint hlines);
gint                gtk_databox_grid_get_hlines         (GtkDataboxGrid *grid);
void                gtk_databox_grid_set_vlines         (GtkDataboxGrid *grid,
                                                         gint vlines);
gint                gtk_databox_grid_get_vlines         (GtkDataboxGrid *grid);
GtkDataboxGrid is a GtkDataboxGraph class for displaying a grid (like in an oscilloscope). You can determine the number of horizontal and vertical lines. When you zoom in, the grid is also zoomed along with the data.
typedef struct _GtkDataboxGridPrivate GtkDataboxGridPrivate;
A private data structure used by the GtkDataboxGrid. It shields all internal things from developers who are just using the object.
typedef struct _GtkDataboxGrid GtkDataboxGrid;
GtkDataboxGrid is a GtkDataboxGraph class for displaying a grid (like in an oscilloscope). You can determine the number of horizontal and vertical lines. When you zoom in, the grid is also zoomed along with the data.
GtkDataboxGraph* gtk_databox_grid_new (gint hlines, gint vlines, GdkColor *color, guint size);
Creates a new GtkDataboxGrid object which can be added to a GtkDatabox widget as nice decoration for other graphs.
| 
 | number of horizontal lines in the grid | 
| 
 | number of vertical lines in the grid | 
| 
 | color of the grid | 
| 
 | line width of the grid | 
| Returns : | A new GtkDataboxGrid object | 
GtkDataboxGraph* gtk_databox_grid_array_new (gint hlines, gint vlines, gfloat *hline_vals, gfloat *vline_vals, GdkColor *color, guint size);
Creates a new GtkDataboxGrid object which can be added to a GtkDatabox widget as nice decoration for other graphs.
| 
 | number of horizontal lines in the grid | 
| 
 | number of vertical lines in the grid | 
| 
 | a pointer to an array of gfloat horizontal grid coordinate | 
| 
 | a pointer to an array of gfloat vertical grid coordinate | 
| 
 | color of the grid | 
| 
 | line width of the grid | 
| Returns : | A new GtkDataboxGrid object | 
void gtk_databox_grid_set_hlines (GtkDataboxGrid *grid, gint hlines);
Sets the number of horizontal lines in the grid.
| 
 | a GtkDataboxGrid graph object | 
| 
 | number of vertical lines in the grid | 
gint gtk_databox_grid_get_hlines (GtkDataboxGrid *grid);
Gets the number of horizontal lines in the grid.
| 
 | a GtkDataboxGrid graph object | 
| Returns : | Number of horizontal lines in the grid. | 
void gtk_databox_grid_set_vlines (GtkDataboxGrid *grid, gint vlines);
Sets the number of vertical lines in the grid.
| 
 | a GtkDataboxGrid graph object | 
| 
 | number of vertical lines in the grid | 
gint gtk_databox_grid_get_vlines (GtkDataboxGrid *grid);
Gets the number of vertical lines in the grid.
| 
 | a GtkDataboxGrid graph object | 
| Returns : | Number of vertical lines in the grid. |