[769eba]: gtk / gtkdatabox_bars.h Maximize Restore History

Download this file

gtkdatabox_bars.h    96 lines (81 with data), 3.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* $Id: gtkdatabox_bars.h 4 2008-06-22 09:19:11Z rbock $ */
/* GtkDatabox - An extension to the gtk+ library
* Copyright (C) 1998 - 2008 Dr. Roland Bock
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* SECTION:gtkdatabox_bars
* @short_description: A #GtkDataboxGraph used for displaying xy-values as vertical bars.
* @include: gtkdatabox_bars.h
* @see_also: #GtkDatabox, #GtkDataboxGraph, #GtkDataboxPoints, #GtkDataboxLines, #GtkDataboxMarkers
*
* #GtkDataboxBars is a #GtkDataboxGraph class for displaying xy-values as vertical bars which rise/drop from y=0.
*
*/
#ifndef __GTK_DATABOX_BARS_H__
#define __GTK_DATABOX_BARS_H__
#include <gtkdatabox_xyc_graph.h>
G_BEGIN_DECLS
#define GTK_DATABOX_TYPE_BARS (gtk_databox_bars_get_type ())
#define GTK_DATABOX_BARS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
GTK_DATABOX_TYPE_BARS, \
GtkDataboxBars))
#define GTK_DATABOX_BARS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
GTK_DATABOX_TYPE_BARS, \
GtkDataboxBarsClass))
#define GTK_DATABOX_IS_BARS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
GTK_DATABOX_TYPE_BARS))
#define GTK_DATABOX_IS_BARS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
GTK_DATABOX_TYPE_BARS))
#define GTK_DATABOX_BARS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
GTK_DATABOX_TYPE_BARS, \
GtkDataboxBarsClass))
/**
* GtkDataboxBars:
* @see_also: #GtkDatabox, #GtkDataboxGraph, #GtkDataboxPoints, #GtkDataboxLines, #GtkDataboxMarkers
*
* #GtkDataboxBars is a #GtkDataboxGraph class for displaying xy-values as vertical bars which rise/drop from y=0.
*
*/
typedef struct _GtkDataboxBars GtkDataboxBars;
typedef struct _GtkDataboxBarsClass GtkDataboxBarsClass;
/**
* GtkDataboxBarsPrivate
*
* A private data structure used by the #GtkDataboxBars. It shields all internal things
* from developers who are just using the object.
*
**/
typedef struct _GtkDataboxBarsPrivate GtkDataboxBarsPrivate;
struct _GtkDataboxBars
{
/*< private >*/
GtkDataboxXYCGraph parent;
GtkDataboxBarsPrivate *priv;
};
struct _GtkDataboxBarsClass
{
GtkDataboxXYCGraphClass parent_class;
};
GType gtk_databox_bars_get_type (void);
GtkDataboxGraph *gtk_databox_bars_new (guint len, gfloat * X, gfloat * Y,
GdkColor * color, guint size);
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,
GdkColor * color, guint size);
G_END_DECLS
#endif /* __GTK_DATABOX_BARS_H__ */