5 * h/t https://ptomato.name/advanced-gtk-techniques/html/custom-container.html
6 * for examples of how to make GTK widgets
9 #include <glib-object.h>
14 #define BV_CHART_TYPE (bv_chart_get_type())
15 #define BV_CHART(obj) \
16 (G_TYPE_CHECK_INSTANCE_CAST((obj), BV_CHART_TYPE, BVChart))
17 #define BV_CHART_CLASS(klass) \
18 (G_TYPE_CHECK_CLASS_CAST((klass), BV_CHART_TYPE, BVChartClass))
19 #define BV_IS_CHART(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), BV_CHART_TYPE))
20 #define BV_IS_CHART_CLASS(klass) \
21 (G_TYPE_CHECK_CLASS_TYPE((klass), BV_CHART_TYPE))
23 typedef struct _BVChart BVChart
;
24 typedef struct _BVChartClass BVChartClass
;
27 GtkDrawingArea parent_instance
;
30 struct _BVChartClass
{
31 GtkDrawingAreaClass parent_class
;
34 GType
bv_chart_get_type(void) G_GNUC_CONST
;
35 GtkWidget
*bv_chart_new(void);
39 #endif /* BV_CHART_H */