1 /** 2 * @file gtkcellrendererbitarray.h 3 * 4 * @brief header file for Custom Cell Rederer for GBitArray. 5 * 6 * Sat Oct 9 01:46:41 2004 7 * Copyright 2004 Alejandro Claro 8 * aleo@apollyon.no-ip.com 9 */ 10 11 #ifndef _GTKCELLRENDERERBITARRAY_H 12 #define _GTKCELLRENDERERBITARRAY_H 13 14 G_BEGIN_DECLS 15 16 /* MACROS *******************************************************************/ 17 18 #define GTK_TYPE_CELL_RENDERER_BITARRAY (gtk_cell_renderer_bitarray_get_type()) 19 #define GTK_CELL_RENDERER_BITARRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GTK_TYPE_CELL_RENDERER_BITARRAY, GtkCellRendererBitarray)) 20 #define GTK_CELL_RENDERER_BITARRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_CELL_RENDERER_BITARRAY, GtkCellRendererBitarrayClass)) 21 #define GTK_IS_CELL_PROGRESS_BITARRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GTK_TYPE_CELL_RENDERER_BITARRAY)) 22 #define GTK_IS_CELL_PROGRESS_BITARRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_CELL_RENDERER_BITARRAY)) 23 #define GTK_CELL_RENDERER_BITARRAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_CELL_RENDERER_BITARRAY, GtkCellRendererBitarrayClass)) 24 25 /* TYPEDEF ******************************************************************/ 26 27 typedef struct _GtkCellRendererBitarray GtkCellRendererBitarray; 28 typedef struct _GtkCellRendererBitarrayClass GtkCellRendererBitarrayClass; 29 30 /** 31 * @brief CellRendererPieces object structure 32 */ 33 struct _GtkCellRendererBitarray 34 { 35 GtkCellRenderer parent; 36 37 /* private */ 38 guint first_bit, bits; 39 GBitArray *bit_array; 40 }; 41 42 /** 43 * @brief CellRendererPieces Class structure 44 */ 45 struct _GtkCellRendererBitarrayClass 46 { 47 GtkCellRendererClass parent_class; 48 }; 49 50 /* PROTOTYPES ***************************************************************/ 51 52 GType gtk_cell_renderer_bitarray_get_type(void); 53 GtkCellRenderer *gtk_cell_renderer_bitarray_new(void); 54 55 G_END_DECLS 56 57 #endif /* _GTKCELLRENDERERBITARRAY_H */ 58