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_bars.c File Reference
#include <gtkdatabox_bars.h>
Include dependency graph for gtkdatabox_bars.c:

Go to the source code of this file.

Data Structures

struct  _GtkDataboxBarsPrivate
 

Typedefs

typedef struct _GtkDataboxBarsPrivate GtkDataboxBarsPrivate
 

Functions

static void gtk_databox_bars_real_draw (GtkDataboxGraph *bars, GtkDatabox *box)
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkDataboxBars, gtk_databox_bars, GTK_DATABOX_TYPE_XYC_GRAPH)
 
static void gtk_databox_bars_class_init (GtkDataboxBarsClass *klass)
 
static void gtk_databox_bars_complete (GtkDataboxBars *bars)
 
static void gtk_databox_bars_init (GtkDataboxBars *bars)
 
GtkDataboxGraphgtk_databox_bars_new (guint len, gfloat *X, gfloat *Y, GdkRGBA *color, guint size)
 
GtkDataboxGraphgtk_databox_bars_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

◆ GtkDataboxBarsPrivate

GtkDataboxBarsPrivate

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

Definition at line 22 of file gtkdatabox_bars.c.

Function Documentation

◆ G_DEFINE_TYPE_WITH_PRIVATE()

G_DEFINE_TYPE_WITH_PRIVATE ( GtkDataboxBars  ,
gtk_databox_bars  ,
GTK_DATABOX_TYPE_XYC_GRAPH   
)

◆ gtk_databox_bars_class_init()

static void gtk_databox_bars_class_init ( GtkDataboxBarsClass klass)
static

◆ gtk_databox_bars_complete()

static void gtk_databox_bars_complete ( GtkDataboxBars bars)
static

◆ gtk_databox_bars_init()

static void gtk_databox_bars_init ( GtkDataboxBars bars)
static

Definition at line 77 of file gtkdatabox_bars.c.

References gtk_databox_bars_complete().

◆ gtk_databox_bars_new()

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

gtk_databox_bars_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 GtkDataboxBars object which can be added to a GtkDatabox widget

Return value: A new GtkDataboxBars object

Definition at line 96 of file gtkdatabox_bars.c.

References GTK_DATABOX_GRAPH, and GTK_DATABOX_TYPE_BARS.

◆ gtk_databox_bars_new_full()

GtkDataboxGraph* gtk_databox_bars_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_bars_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 GtkDataboxBars object which can be added to a GtkDatabox widget

Return value: A new GtkDataboxBars object

Definition at line 140 of file gtkdatabox_bars.c.

References GTK_DATABOX_GRAPH, and GTK_DATABOX_TYPE_BARS.

◆ gtk_databox_bars_real_draw()