![]() |
![]() |
![]() |
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); 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 |
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 .
|