Mercurial > audlegacy
comparison audacious/skin.h @ 837:7d998597254e trunk
[svn] - initial work on skin.hints support (the first step to modernizing our
skin format :D)
author | nenolod |
---|---|
date | Fri, 17 Mar 2006 18:21:50 -0800 |
parents | cb178e5ad177 |
children | f12d7e208b43 |
comparison
equal
deleted
inserted
replaced
836:1125fdc111c2 | 837:7d998597254e |
---|---|
65 SKIN_TEXTBG, | 65 SKIN_TEXTBG, |
66 SKIN_TEXTFG, | 66 SKIN_TEXTFG, |
67 SKIN_COLOR_COUNT | 67 SKIN_COLOR_COUNT |
68 } SkinColorId; | 68 } SkinColorId; |
69 | 69 |
70 typedef struct _SkinProperties { | |
71 gboolean mainwin_othertext; | |
72 } SkinProperties; | |
70 | 73 |
71 #define SKIN_PIXMAP(x) ((SkinPixmap *)(x)) | 74 #define SKIN_PIXMAP(x) ((SkinPixmap *)(x)) |
72 typedef struct _SkinPixmap { | 75 typedef struct _SkinPixmap { |
73 GdkPixmap *pixmap; | 76 GdkPixmap *pixmap; |
74 /* GdkPixmap *def_pixmap; */ | 77 /* GdkPixmap *def_pixmap; */ |
91 GdkColor textbg[6], def_textbg[6]; | 94 GdkColor textbg[6], def_textbg[6]; |
92 GdkColor textfg[6], def_textfg[6]; | 95 GdkColor textfg[6], def_textfg[6]; |
93 GdkColor *colors[SKIN_COLOR_COUNT]; | 96 GdkColor *colors[SKIN_COLOR_COUNT]; |
94 guchar vis_color[24][3]; | 97 guchar vis_color[24][3]; |
95 GdkBitmap *masks[SKIN_MASK_COUNT]; | 98 GdkBitmap *masks[SKIN_MASK_COUNT]; |
99 SkinProperties properties; | |
96 } Skin; | 100 } Skin; |
97 | |
98 | 101 |
99 extern Skin *bmp_active_skin; | 102 extern Skin *bmp_active_skin; |
100 | 103 |
101 gboolean init_skins(const gchar * path); | 104 gboolean init_skins(const gchar * path); |
102 void cleanup_skins(void); | 105 void cleanup_skins(void); |
131 void skin_draw_mainwin_titlebar(Skin * skin, | 134 void skin_draw_mainwin_titlebar(Skin * skin, |
132 GdkDrawable * drawable, GdkGC * gc, | 135 GdkDrawable * drawable, GdkGC * gc, |
133 gboolean shaded, gboolean focus); | 136 gboolean shaded, gboolean focus); |
134 | 137 |
135 | 138 |
139 void skin_parse_hints(Skin * skin, gchar *path_p); | |
140 | |
136 | 141 |
137 gboolean | 142 gboolean |
138 skin_reload_forced(void); | 143 skin_reload_forced(void); |
139 | 144 |
140 #endif | 145 #endif |