annotate audacious/widgets/skin.h @ 2107:8d2b17ee266e trunk

[svn] - add gchar **vfs_extensions to InputPlugin struct, adding support for the NewVFS extension probing method. The vfs_extensions table defines a list of supported extensions, and must be NULL terminated.
author nenolod
date Tue, 12 Dec 2006 18:22:17 -0800
parents 1d9c1026d9f8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
1 /* BMP - Cross-platform multimedia player
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
2 * Copyright (C) 2003-2004 BMP development team.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
3 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
4 * Based on XMMS:
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
5 * Copyright (C) 1998-2003 XMMS development team.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
6 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
10 * (at your option) any later version.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
11 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
15 * GNU General Public License for more details.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
16 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
20 */
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
21
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
22 #ifndef _WIDGETCORE_H_
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
23 #error Please do not include me directly! Use widgetcore.h instead!
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
24 #endif
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
25
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
26 #ifndef SKIN_H
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
27 #define SKIN_H
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
28
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
29
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
30 #include <glib.h>
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
31 #include <gdk/gdk.h>
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
32
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
33
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
34 #define BMP_DEFAULT_SKIN_PATH \
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
35 DATA_DIR G_DIR_SEPARATOR_S "Skins" G_DIR_SEPARATOR_S "Default"
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
36
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
37
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
38 typedef enum {
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
39 SKIN_MAIN = 0,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
40 SKIN_CBUTTONS,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
41 SKIN_TITLEBAR,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
42 SKIN_SHUFREP,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
43 SKIN_TEXT,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
44 SKIN_VOLUME,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
45 SKIN_BALANCE,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
46 SKIN_MONOSTEREO,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
47 SKIN_PLAYPAUSE,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
48 SKIN_NUMBERS,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
49 SKIN_POSBAR,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
50 SKIN_PLEDIT,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
51 SKIN_EQMAIN,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
52 SKIN_EQ_EX,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
53 SKIN_PIXMAP_COUNT
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
54 } SkinPixmapId;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
55
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
56 typedef enum {
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
57 SKIN_MASK_MAIN = 0,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
58 SKIN_MASK_MAIN_SHADE,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
59 SKIN_MASK_EQ,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
60 SKIN_MASK_EQ_SHADE,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
61 SKIN_MASK_COUNT
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
62 } SkinMaskId;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
63
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
64 typedef enum {
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
65 SKIN_PLEDIT_NORMAL = 0,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
66 SKIN_PLEDIT_CURRENT,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
67 SKIN_PLEDIT_NORMALBG,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
68 SKIN_PLEDIT_SELECTEDBG,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
69 SKIN_TEXTBG,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
70 SKIN_TEXTFG,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
71 SKIN_COLOR_COUNT
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
72 } SkinColorId;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
73
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
74 typedef struct _SkinProperties {
1792
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
75 /* this enables the othertext engine, not it's visibility -nenolod */
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
76 gboolean mainwin_othertext;
1792
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
77
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
78 /* Vis properties */
1772
cb216af25b55 [svn] - framework for repositioning the vis element on the skin.
nenolod
parents: 1653
diff changeset
79 gint mainwin_vis_x;
cb216af25b55 [svn] - framework for repositioning the vis element on the skin.
nenolod
parents: 1653
diff changeset
80 gint mainwin_vis_y;
1780
be1de1dd7262 [svn] - implement [skin.hints:mainwinVisWidth] property.
nenolod
parents: 1779
diff changeset
81 gint mainwin_vis_width;
1792
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
82 gboolean mainwin_vis_visible;
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
83
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
84 /* Text properties */
1773
7913bae43086 [svn] - text and infobar
nenolod
parents: 1772
diff changeset
85 gint mainwin_text_x;
7913bae43086 [svn] - text and infobar
nenolod
parents: 1772
diff changeset
86 gint mainwin_text_y;
1777
17e38b5c8e2f [svn] - support for the [skin.hints:mainwinTextWidth] property.
nenolod
parents: 1773
diff changeset
87 gint mainwin_text_width;
1792
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
88 gboolean mainwin_text_visible;
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
89
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
90 /* Infobar properties */
1773
7913bae43086 [svn] - text and infobar
nenolod
parents: 1772
diff changeset
91 gint mainwin_infobar_x;
7913bae43086 [svn] - text and infobar
nenolod
parents: 1772
diff changeset
92 gint mainwin_infobar_y;
1792
b8f082ddd9f1 [svn] - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
nenolod
parents: 1788
diff changeset
93 gboolean mainwin_othertext_visible;
1778
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
94
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
95 gint mainwin_number_0_x;
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
96 gint mainwin_number_0_y;
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
97
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
98 gint mainwin_number_1_x;
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
99 gint mainwin_number_1_y;
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
100
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
101 gint mainwin_number_2_x;
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
102 gint mainwin_number_2_y;
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
103
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
104 gint mainwin_number_3_x;
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
105 gint mainwin_number_3_y;
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
106
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
107 gint mainwin_number_4_x;
1d3d05c541d3 [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
nenolod
parents: 1777
diff changeset
108 gint mainwin_number_4_y;
1779
87d4da9b31ea [svn] - implement [skin.hints:mainwinPlayStatus(X,Y)] properties.
nenolod
parents: 1778
diff changeset
109
87d4da9b31ea [svn] - implement [skin.hints:mainwinPlayStatus(X,Y)] properties.
nenolod
parents: 1778
diff changeset
110 gint mainwin_playstatus_x;
87d4da9b31ea [svn] - implement [skin.hints:mainwinPlayStatus(X,Y)] properties.
nenolod
parents: 1778
diff changeset
111 gint mainwin_playstatus_y;
1784
641ee4092aea [svn] - allow the menurow to be set invisible
nenolod
parents: 1780
diff changeset
112
1786
4051f893f571 [svn] - add:
nenolod
parents: 1784
diff changeset
113 gint mainwin_volume_x;
4051f893f571 [svn] - add:
nenolod
parents: 1784
diff changeset
114 gint mainwin_volume_y;
4051f893f571 [svn] - add:
nenolod
parents: 1784
diff changeset
115
4051f893f571 [svn] - add:
nenolod
parents: 1784
diff changeset
116 gint mainwin_balance_x;
4051f893f571 [svn] - add:
nenolod
parents: 1784
diff changeset
117 gint mainwin_balance_y;
4051f893f571 [svn] - add:
nenolod
parents: 1784
diff changeset
118
4051f893f571 [svn] - add:
nenolod
parents: 1784
diff changeset
119 gint mainwin_position_x;
4051f893f571 [svn] - add:
nenolod
parents: 1784
diff changeset
120 gint mainwin_position_y;
4051f893f571 [svn] - add:
nenolod
parents: 1784
diff changeset
121
1804
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
122 gint mainwin_previous_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
123 gint mainwin_previous_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
124
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
125 gint mainwin_play_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
126 gint mainwin_play_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
127
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
128 gint mainwin_pause_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
129 gint mainwin_pause_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
130
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
131 gint mainwin_stop_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
132 gint mainwin_stop_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
133
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
134 gint mainwin_next_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
135 gint mainwin_next_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
136
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
137 gint mainwin_eject_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
138 gint mainwin_eject_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
139
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
140 gint mainwin_eqbutton_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
141 gint mainwin_eqbutton_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
142
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
143 gint mainwin_plbutton_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
144 gint mainwin_plbutton_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
145
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
146 gint mainwin_shuffle_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
147 gint mainwin_shuffle_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
148
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
149 gint mainwin_repeat_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
150 gint mainwin_repeat_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
151
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
152 gint mainwin_about_x;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
153 gint mainwin_about_y;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
154
1857
2ed05cc57194 [svn] - add mainwinMinimizeX, mainwinMinimizeY, mainwinShadeX, mainwinShadeY, mainwinCloseX, mainwinCloseY
nenolod
parents: 1836
diff changeset
155 gint mainwin_minimize_x;
2ed05cc57194 [svn] - add mainwinMinimizeX, mainwinMinimizeY, mainwinShadeX, mainwinShadeY, mainwinCloseX, mainwinCloseY
nenolod
parents: 1836
diff changeset
156 gint mainwin_minimize_y;
2ed05cc57194 [svn] - add mainwinMinimizeX, mainwinMinimizeY, mainwinShadeX, mainwinShadeY, mainwinCloseX, mainwinCloseY
nenolod
parents: 1836
diff changeset
157
2ed05cc57194 [svn] - add mainwinMinimizeX, mainwinMinimizeY, mainwinShadeX, mainwinShadeY, mainwinCloseX, mainwinCloseY
nenolod
parents: 1836
diff changeset
158 gint mainwin_shade_x;
2ed05cc57194 [svn] - add mainwinMinimizeX, mainwinMinimizeY, mainwinShadeX, mainwinShadeY, mainwinCloseX, mainwinCloseY
nenolod
parents: 1836
diff changeset
159 gint mainwin_shade_y;
2ed05cc57194 [svn] - add mainwinMinimizeX, mainwinMinimizeY, mainwinShadeX, mainwinShadeY, mainwinCloseX, mainwinCloseY
nenolod
parents: 1836
diff changeset
160
2ed05cc57194 [svn] - add mainwinMinimizeX, mainwinMinimizeY, mainwinShadeX, mainwinShadeY, mainwinCloseX, mainwinCloseY
nenolod
parents: 1836
diff changeset
161 gint mainwin_close_x;
2ed05cc57194 [svn] - add mainwinMinimizeX, mainwinMinimizeY, mainwinShadeX, mainwinShadeY, mainwinCloseX, mainwinCloseY
nenolod
parents: 1836
diff changeset
162 gint mainwin_close_y;
2ed05cc57194 [svn] - add mainwinMinimizeX, mainwinMinimizeY, mainwinShadeX, mainwinShadeY, mainwinCloseX, mainwinCloseY
nenolod
parents: 1836
diff changeset
163
1804
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
164 gint mainwin_width;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
165 gint mainwin_height;
e0e46bce806e [svn] - mainwinEQButtonX, mainwinEQButtonY, mainwinPLButtonX, mainwinPLButtonY, mainwinAboutX,
nenolod
parents: 1792
diff changeset
166
1784
641ee4092aea [svn] - allow the menurow to be set invisible
nenolod
parents: 1780
diff changeset
167 gboolean mainwin_menurow_visible;
1836
a1089ea6f436 [svn] - implement textboxBitmapFontWidth and textboxBitmapFontHeight for defining the size of a cell in the textbox character grid
nenolod
parents: 1804
diff changeset
168 gboolean mainwin_othertext_is_status;
1788
80b6282a31ae [svn] - implement mainwinOthertextIsStatus property.
nenolod
parents: 1786
diff changeset
169
1836
a1089ea6f436 [svn] - implement textboxBitmapFontWidth and textboxBitmapFontHeight for defining the size of a cell in the textbox character grid
nenolod
parents: 1804
diff changeset
170 gint textbox_bitmap_font_width;
a1089ea6f436 [svn] - implement textboxBitmapFontWidth and textboxBitmapFontHeight for defining the size of a cell in the textbox character grid
nenolod
parents: 1804
diff changeset
171 gint textbox_bitmap_font_height;
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
172 } SkinProperties;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
173
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
174 #define SKIN_PIXMAP(x) ((SkinPixmap *)(x))
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
175 typedef struct _SkinPixmap {
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
176 GdkPixmap *pixmap;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
177 /* GdkPixmap *def_pixmap; */
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
178
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
179 /* The real size of the pixmap */
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
180 gint width, height;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
181
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
182 /* The size of the pixmap from the current skin,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
183 which might be smaller */
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
184 gint current_width, current_height;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
185 } SkinPixmap;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
186
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
187
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
188 #define SKIN(x) ((Skin *)(x))
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
189 typedef struct _Skin {
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
190 GMutex *lock;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
191 gchar *path;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
192 gchar *def_path;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
193 SkinPixmap pixmaps[SKIN_PIXMAP_COUNT];
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
194 GdkColor textbg[6], def_textbg[6];
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
195 GdkColor textfg[6], def_textfg[6];
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
196 GdkColor *colors[SKIN_COLOR_COUNT];
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
197 guchar vis_color[24][3];
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
198 GdkBitmap *masks[SKIN_MASK_COUNT];
1938
1d9c1026d9f8 [svn] - DoubleSize support.
nenolod
parents: 1857
diff changeset
199 GdkBitmap *ds_masks[SKIN_MASK_COUNT];
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
200 SkinProperties properties;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
201 } Skin;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
202
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
203 extern Skin *bmp_active_skin;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
204
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
205 gboolean init_skins(const gchar * path);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
206 void cleanup_skins(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
207
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
208 gboolean bmp_active_skin_load(const gchar * path);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
209 gboolean bmp_active_skin_reload(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
210
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
211 Skin *skin_new(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
212 gboolean skin_load(Skin * skin, const gchar * path);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
213 void skin_reload(Skin * skin);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
214 void skin_free(Skin * skin);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
215
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
216 GdkBitmap *skin_get_mask(Skin * skin, SkinMaskId mi);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
217 GdkColor *skin_get_color(Skin * skin, SkinColorId color_id);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
218
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
219 void skin_get_viscolor(Skin * skin, guchar vis_color[24][3]);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
220 gint skin_get_id(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
221 void skin_draw_pixmap(Skin * skin, GdkDrawable * drawable, GdkGC * gc,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
222 SkinPixmapId pixmap_id,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
223 gint xsrc, gint ysrc, gint xdest, gint ydest,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
224 gint width, gint height);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
225 void skin_get_eq_spline_colors(Skin * skin, guint32 colors[19]);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
226 void skin_install_skin(const gchar * path);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
227
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
228 void skin_draw_playlistwin_shaded(Skin * skin,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
229 GdkDrawable * drawable, GdkGC * gc,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
230 gint width, gboolean focus);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
231 void skin_draw_playlistwin_frame(Skin * skin,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
232 GdkDrawable * drawable, GdkGC * gc,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
233 gint width, gint height, gboolean focus);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
234
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
235 void skin_draw_mainwin_titlebar(Skin * skin,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
236 GdkDrawable * drawable, GdkGC * gc,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
237 gboolean shaded, gboolean focus);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
238
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
239
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
240 void skin_parse_hints(Skin * skin, gchar *path_p);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
241
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
242
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
243 gboolean
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
244 skin_reload_forced(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
245
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
246 #endif