Debian Codegraph @

src/theme.h

raw symbols SCIP
1 #ifndef __THEME_H__
2 #define __THEME_H__
3
4 typedef struct _GtkbTheme GtkbTheme;
5 typedef struct _GtkbPixmap GtkbPixmap;
6 typedef struct _GtkbBall GtkbBall;
7
8 struct _GtkbPixmap {
9 GdkPixbuf *pixbuf;
10 gint xsize, ysize;
11 };
12
13 struct _GtkbBall {
14 GtkbPixmap ball; /* still picture of ball */
15 GtkbPixmap small; /* small picture of ball */
16 gint jumpphases;
17 GtkbPixmap *jump;
18 gint *jumpdelays;
19 gint destroyphases;
20 GtkbPixmap *destroy;
21 gint *destroydelays;
22 };
23
24 struct _GtkbTheme {
25 GtkbPixmap emptycell; /* pixmap for empty cell */
26 GtkbPixmap hemptycell; /* highlighted pixmap for empty cell */
27 GtkbPixmap paws[8]; /* 8 pixmaps for footprints */
28 gint numballs; /* number of balls */
29 GtkbBall *balls; /* array of balls */
30 gint maxdestphases; /* maximal number of destroy phases */
31 };
32
33
34 extern GtkbTheme *gtkbTheme;
35
36 gint gtkb_theme_free_handler(GtkWidget *widget, gpointer data);
37 int load_theme(gchar *themename);
38
39 gchar **get_available_themes(void);
40
41 gint gtkb_theme_get_balls_num(void);
42
43 gint gtkb_theme_get_coord_at_x(gint x);
44 gint gtkb_theme_get_coord_at_y(gint y);
45
46 void gtkb_make_hl_pixmap(GtkbTheme *theme);
47
48 gint theme_get_width(void);
49 gint theme_get_height(void);
50
51 #endif