/[paths]/src/egg_node.h
ViewVC logotype

Contents of /src/egg_node.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 63 - (show annotations)
Sun Aug 26 03:23:50 2012 UTC (7 years, 1 month ago) by ben
File MIME type: text/plain
File size: 877 byte(s)
highlight nodes while playing
1 #ifndef EGG_NODE_H
2 #define EGG_NODE_H
3
4 #include <gtk/gtk.h>
5
6 /* object definition */
7 struct _EggNode
8 {
9 GtkDrawingArea parent;
10
11 /* private */
12 gdouble r;
13 gdouble g;
14 gdouble b;
15
16 };
17
18 /* object class definition */
19 struct _EggNodeClass
20 {
21 GtkDrawingAreaClass parent_class;
22 };
23
24
25 typedef struct _EggNode EggNode;
26 typedef struct _EggNodeClass EggNodeClass;
27
28 /* public api */
29 GtkWidget *egg_node_new(void);
30
31 #define EGG_TYPE_NODE (egg_node_get_type ())
32 #define EGG_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_NODE, EggNode))
33 #define EGG_NODE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EGG_NODE, EggNodeClass))
34 #define EGG_IS_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_NODE))
35 #define EGG_IS_NODE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EGG_TYPE_NODE))
36 #define EGG_NODE_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_NODE, EggNodeClass))
37
38 #endif

  ViewVC Help
Powered by ViewVC 1.1.26