GtkDataboxGrid

## GtkDataboxGrid GtkDataboxGrid — A GtkDataboxGraph used for displaying a grid (like in an oscilloscope). |

## Synopsis

    #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);

## Object Hierarchy

      GObject
       +----GtkDataboxGraph
             +----GtkDataboxGrid

## Properties

      "grid-hlines"              gint                  : Read / Write
      "grid-vlines"              gint                  : Read / Write

## Description

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.

## Details

### GtkDataboxGridPrivate

    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.

### GtkDataboxGrid

    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.

### gtk_databox_grid_new ()

    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.

`hlines` : | number of horizontal lines in the grid
`vlines` : | number of vertical lines in the grid
`color` : | color of the grid
`size` : | line width of the grid
Returns : | A new GtkDataboxGrid object

### gtk_databox_grid_array_new ()

    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.

`hlines` : | number of horizontal lines in the grid
`vlines` : | number of vertical lines in the grid
`hline_vals` : | a pointer to an array of gfloat horizontal grid coordinate
`vline_vals` : | a pointer to an array of gfloat vertical grid coordinate
`color` : | color of the grid
`size` : | line width of the grid
Returns : | A new GtkDataboxGrid object

### gtk_databox_grid_set_hlines ()

    void                gtk_databox_grid_set_hlines         (GtkDataboxGrid *grid,
                                                             gint hlines);

Sets the number of horizontal lines in the `grid`.

`grid` : | a GtkDataboxGrid graph object
`hlines` : | number of vertical lines in the grid

### gtk_databox_grid_get_hlines ()

    gint                gtk_databox_grid_get_hlines         (GtkDataboxGrid *grid);

Gets the number of horizontal lines in the `grid`.

`grid` : | a GtkDataboxGrid graph object
Returns : | Number of horizontal lines in the `grid`.

### gtk_databox_grid_set_vlines ()

    void                gtk_databox_grid_set_vlines         (GtkDataboxGrid *grid,
                                                             gint vlines);

Sets the number of vertical lines in the `grid`.

`grid` : | a GtkDataboxGrid graph object
`vlines` : | number of vertical lines in the grid

### gtk_databox_grid_get_vlines ()

    gint                gtk_databox_grid_get_vlines         (GtkDataboxGrid *grid);

Gets the number of vertical lines in the `grid`.

`grid` : | a GtkDataboxGrid graph object
Returns : | Number of vertical lines in the `grid`.

## Property Details

### The `"grid-hlines"` property

      "grid-hlines"              gint                  : Read / Write

Number of horizontal lines.

Default value: 0

### The `"grid-vlines"` property

      "grid-vlines"              gint                  : Read / Write

Number of vertical lines.

Default value: 0

## See Also

GtkDatabox, GtkDataboxGraph, GtkDataboxPoints, GtkDataboxLines, GtkDataboxBars, GtkDataboxMarkers