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_points.c File Reference
Include dependency graph for gtkdatabox_points.c:

Go to the source code of this file.

Data Structures

struct  _GtkDataboxPointsPrivate
 

Typedefs

typedef struct _GtkDataboxPointsPrivate GtkDataboxPointsPrivate
 

Functions

static void gtk_databox_points_real_draw (GtkDataboxGraph *points, GtkDatabox *box)
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkDataboxPoints, gtk_databox_points, GTK_DATABOX_TYPE_XYC_GRAPH)
 
static void gtk_databox_points_class_init (GtkDataboxPointsClass *klass)
 
static void gtk_databox_points_complete (GtkDataboxPoints *points)
 
static void gtk_databox_points_init (GtkDataboxPoints *points)
 
GtkDataboxGraphgtk_databox_points_new (guint len, gfloat *X, gfloat *Y, GdkRGBA *color, gint size)
 
GtkDataboxGraphgtk_databox_points_new_full (guint maxlen, guint len, void *X, guint xstart, guint xstride, GType xtype, void *Y, guint ystart, guint ystride, GType ytype, GdkRGBA *color, gint size)
 

Typedef Documentation

◆ GtkDataboxPointsPrivate

GtkDataboxPointsPrivate

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

Definition at line 22 of file gtkdatabox_points.c.

Function Documentation

◆ G_DEFINE_TYPE_WITH_PRIVATE()

G_DEFINE_TYPE_WITH_PRIVATE ( GtkDataboxPoints  ,
gtk_databox_points  ,
GTK_DATABOX_TYPE_XYC_GRAPH   
)

◆ gtk_databox_points_class_init()

static void gtk_databox_points_class_init ( GtkDataboxPointsClass klass)
static

◆ gtk_databox_points_complete()

static void gtk_databox_points_complete ( GtkDataboxPoints points)
static

◆ gtk_databox_points_init()

static void gtk_databox_points_init ( GtkDataboxPoints points)
static

Definition at line 80 of file gtkdatabox_points.c.

References gtk_databox_points_complete().

◆ gtk_databox_points_new()

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

gtk_databox_points_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 GtkDataboxPoints object which can be added to a GtkDatabox widget.

Return value: A new GtkDataboxPoints object

Definition at line 99 of file gtkdatabox_points.c.

References GTK_DATABOX_GRAPH, and GTK_DATABOX_TYPE_POINTS.

◆ gtk_databox_points_new_full()

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

gtk_databox_points_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 GtkDataboxPoints object which can be added to a GtkDatabox widget.

Return value: A new GtkDataboxPoints object

Definition at line 142 of file gtkdatabox_points.c.

References GTK_DATABOX_GRAPH, and GTK_DATABOX_TYPE_POINTS.

◆ gtk_databox_points_real_draw()