diff options
Diffstat (limited to 'src/statistics/gtk_statistics.h')
-rw-r--r-- | src/statistics/gtk_statistics.h | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/src/statistics/gtk_statistics.h b/src/statistics/gtk_statistics.h index 88a897c8..5dd528b9 100644 --- a/src/statistics/gtk_statistics.h +++ b/src/statistics/gtk_statistics.h | |||
@@ -31,23 +31,21 @@ | |||
31 | #include <cairo.h> | 31 | #include <cairo.h> |
32 | 32 | ||
33 | G_BEGIN_DECLS | 33 | G_BEGIN_DECLS |
34 | |||
35 | #define GTK_TYPE_STATISTICS (gtk_statistics_get_type ()) | 34 | #define GTK_TYPE_STATISTICS (gtk_statistics_get_type ()) |
36 | #define GTK_STATISTICS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_STATISTICS, GtkStatistics)) | 35 | #define GTK_STATISTICS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_STATISTICS, GtkStatistics)) |
37 | #define GTK_STATISTICS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STATISTICS, GtkStatisticsClass)) | 36 | #define GTK_STATISTICS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STATISTICS, GtkStatisticsClass)) |
38 | #define GTK_IS_STATISTICS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_STATISTICS)) | 37 | #define GTK_IS_STATISTICS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_STATISTICS)) |
39 | #define GTK_IS_STATISTICS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STATISTICS)) | 38 | #define GTK_IS_STATISTICS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STATISTICS)) |
40 | #define GTK_STATISTICS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STATISTICS, GtkStatisticsClass)) | 39 | #define GTK_STATISTICS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STATISTICS, GtkStatisticsClass)) |
41 | 40 | typedef struct _GtkStatistics GtkStatistics; | |
42 | typedef struct _GtkStatistics GtkStatistics; | 41 | typedef struct _GtkStatisticsPrivate GtkStatisticsPrivate; |
43 | typedef struct _GtkStatisticsPrivate GtkStatisticsPrivate; | 42 | typedef struct _GtkStatisticsClass GtkStatisticsClass; |
44 | typedef struct _GtkStatisticsClass GtkStatisticsClass; | ||
45 | 43 | ||
46 | struct _GtkStatistics | 44 | struct _GtkStatistics |
47 | { | 45 | { |
48 | GtkWidget widget; | 46 | GtkWidget widget; |
49 | 47 | ||
50 | /*< private >*/ | 48 | /*< private > */ |
51 | GtkStatisticsPrivate *priv; | 49 | GtkStatisticsPrivate *priv; |
52 | }; | 50 | }; |
53 | 51 | ||
@@ -63,18 +61,15 @@ struct _GtkStatisticsClass | |||
63 | }; | 61 | }; |
64 | 62 | ||
65 | 63 | ||
66 | GType gtk_statistics_get_type (void) G_GNUC_CONST; | 64 | GType |
67 | GtkWidget* gtk_statistics_new (void); | 65 | gtk_statistics_get_type (void) |
68 | void gtk_statistics_add_line (GtkStatistics *statistics, | 66 | G_GNUC_CONST; |
69 | const char *id, | 67 | GtkWidget *gtk_statistics_new (void); |
70 | const char *label, | 68 | void gtk_statistics_add_line (GtkStatistics * statistics, const char *id, |
71 | const char *color_name); | 69 | const char *label, const char *color_name); |
72 | void gtk_statistics_update_value (GtkStatistics *statistics, | 70 | void gtk_statistics_update_value (GtkStatistics * statistics, const char *id, |
73 | const char *id, | 71 | uint64_t x, uint64_t y); |
74 | uint64_t x, | ||
75 | uint64_t y); | ||
76 | 72 | ||
77 | 73 | ||
78 | G_END_DECLS | 74 | G_END_DECLS |
79 | 75 | #endif | |
80 | #endif | ||