gtkdatabox  1.0.0
About: GtkDatabox is a Gtk+-widget for live display of large amounts of fluctuating numerical data.
  Fossies Dox: gtkdatabox-1.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gtkdatabox_lines.c File Reference
#include <gtkdatabox_lines.h>
Include dependency graph for gtkdatabox_lines.c:

Go to the source code of this file.

Data Structures

struct  _GtkDataboxLinesPrivate
 

Typedefs

typedef struct _GtkDataboxLinesPrivate GtkDataboxLinesPrivate
 

Functions

static void gtk_databox_lines_real_draw (GtkDataboxGraph *lines, GtkDatabox *box)
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkDataboxLines, gtk_databox_lines, GTK_DATABOX_TYPE_XYC_GRAPH)
 
static void gtk_databox_lines_class_init (GtkDataboxLinesClass *klass)
 
static void gtk_databox_lines_init (GtkDataboxLines *lines)
 
GtkDataboxGraphgtk_databox_lines_new (guint len, gfloat *X, gfloat *Y, GdkRGBA *color, guint size)
 
GtkDataboxGraphgtk_databox_lines_new_full (guint maxlen, guint len, void *X, guint xstart, guint xstride, GType xtype, void *Y, guint ystart, guint ystride, GType ytype, GdkRGBA *color, guint size)
 

Typedef Documentation

◆ GtkDataboxLinesPrivate

GtkDataboxLinesPrivate @see_also: GtkDatabox, GtkDataboxGraph, GtkDataboxPoints, GtkDataboxBars, GtkDataboxMarkers

A private data structure used by the GtkDataboxLines. It shields all internal things from developers who are just using the object.

Definition at line 22 of file gtkdatabox_lines.c.

Function Documentation

◆ G_DEFINE_TYPE_WITH_PRIVATE()

G_DEFINE_TYPE_WITH_PRIVATE ( GtkDataboxLines  ,
gtk_databox_lines  ,
GTK_DATABOX_TYPE_XYC_GRAPH   
)

◆ gtk_databox_lines_class_init()

static void gtk_databox_lines_class_init ( GtkDataboxLinesClass klass)
static

◆ gtk_databox_lines_init()

static void gtk_databox_lines_init ( GtkDataboxLines lines)
static

◆ gtk_databox_lines_new()

GtkDataboxGraph* gtk_databox_lines_new ( guint  len,
gfloat *  X,
gfloat *  Y,
GdkRGBA *  color,
guint  size 
)

gtk_databox_lines_new: @len: length of @X and @Y @X: array of horizontal position values of markers @Y: array of vertical position values of markers @color: color of the markers @size: marker size or line width (depending on the @type)

Creates a new GtkDataboxLines object which can be added to a GtkDatabox widget.

Return value: A new GtkDataboxLines object

Definition at line 91 of file gtkdatabox_lines.c.

References GTK_DATABOX_GRAPH, and GTK_DATABOX_TYPE_LINES.

◆ gtk_databox_lines_new_full()

GtkDataboxGraph* gtk_databox_lines_new_full ( guint  maxlen,
guint  len,
void *  X,
guint  xstart,
guint  xstride,
GType  xtype,
void *  Y,
guint  ystart,
guint  ystride,
GType  ytype,
GdkRGBA *  color,
guint  size 
)

gtk_databox_lines_new_full: @maxlen: maximum length of @X and @Y @len: actual number of @X and @Y values to plot @X: array of horizontal position values of markers @Y: array of vertical position values of markers @xstart: the first element in the X array to plot (usually 0) @ystart: the first element in the Y array to plot (usually 0) @xstride: successive elements in the X array are separated by this much (1 if array, ncols if matrix) @ystride: successive elements in the Y array are separated by this much (1 if array, ncols if matrix) @xtype: the GType of the X array elements. G_TYPE_FLOAT, G_TYPE_DOUBLE, etc. @ytype: the GType of the Y array elements. G_TYPE_FLOAT, G_TYPE_DOUBLE, etc. @color: color of the markers @size: marker size or line width (depending on the @type)

Creates a new GtkDataboxLines object which can be added to a GtkDatabox widget.

Return value: A new GtkDataboxLines object

Definition at line 135 of file gtkdatabox_lines.c.

References GTK_DATABOX_GRAPH, and GTK_DATABOX_TYPE_LINES.

◆ gtk_databox_lines_real_draw()