]> git.sesse.net Git - vlc/blob - modules/gui/skins/parser/skin.c
35a6f6f4ded746c228fe1f5e39ff993e5d229816
[vlc] / modules / gui / skins / parser / skin.c
1 /* XML application for skin.dtd (Id: skin.dtd,v 1.4 2003/04/20 20:28:39 ipkiss Exp).
2  * Includes actions from skin.act.
3  * Generated 2003/05/01 15:30:24.
4  *
5  * This program was generated with the FleXML XML processor generator,
6  * (Id: flexml.pl,v 1.24 1999/12/13 16:18:30 krisrose Exp).
7  * Copyright © 1999 Kristoffer Rose.  All rights reserved.
8  *
9  * You can redistribute and/or modify this program provided the following
10  * two conditions hold:
11  *
12  * 1. The program is distributed WITHOUT ANY WARRANTY from the author of
13  *    FleXML; without even the implied warranty of MERCHANTABILITY or
14  *    FITNESS FOR A PARTICULAR PURPOSE.
15  *
16  * 2. The program distribution conditions do not in any way affect the
17  *    distribution conditions of the FleXML system used to generate this
18  *    file or any version of FleXML derived from that system.
19  *
20  * Notice that these are explicit rights granted to you for files
21  * generated by the FleXML system.  For your rights in connection with
22  * the FleXML system itself please consult the GNU General Public License.
23  */
24
25 #include "skin.h"
26
27
28 #line 31 "skin.act"
29
30         
31             #include "parser/wrappers.h"
32         
33     
34 void STag_Bitmap(void)
35 {
36 #line 36 "skin.act"
37
38         
39             AddBitmap( A_Bitmap_id, A_Bitmap_file, A_Bitmap_alphacolor );
40         
41     
42 } /* STag_Bitmap */
43
44 void STag_Event(void)
45 {
46 #line 41 "skin.act"
47
48         
49             AddEvent( A_Event_id, A_Event_event, A_Event_key );
50         
51     
52 } /* STag_Event */
53
54 void STag_Font(void)
55 {
56 #line 46 "skin.act"
57
58         
59             AddFont( A_Font_id, A_Font_font, A_Font_size, A_Font_color, A_Font_weight, A_Font_italic,
60                      A_Font_underline );
61         
62     
63 } /* STag_Font */
64
65 void STag_ThemeInfo(void)
66 {
67 #line 52 "skin.act"
68
69         
70             AddThemeInfo( A_ThemeInfo_name, A_ThemeInfo_author, A_ThemeInfo_email, A_ThemeInfo_webpage );
71         
72     
73 } /* STag_ThemeInfo */
74
75 void STag_Window(void)
76 {
77 #line 57 "skin.act"
78
79         
80             StartWindow( A_Window_id, A_Window_x, A_Window_y, A_Window_visible, A_Window_fadetime, A_Window_alpha,
81                          A_Window_movealpha, A_Window_dragdrop );
82         
83     
84 } /* STag_Window */
85
86 void ETag_Window(void)
87 {
88 #line 63 "skin.act"
89
90         
91             EndWindow();
92         
93     
94 } /* ETag_Window */
95
96 void STag_ControlGroup(void)
97 {
98 #line 68 "skin.act"
99
100         
101             StartControlGroup( A_ControlGroup_x, A_ControlGroup_y );
102         
103     
104 } /* STag_ControlGroup */
105
106 void ETag_ControlGroup(void)
107 {
108 #line 73 "skin.act"
109
110         
111             EndControlGroup();
112         
113     
114 } /* ETag_ControlGroup */
115
116 void STag_Anchor(void)
117 {
118 #line 78 "skin.act"
119
120         
121             AddAnchor( A_Anchor_x, A_Anchor_y, A_Anchor_range, A_Anchor_priority );
122         
123     
124 } /* STag_Anchor */
125
126 void STag_ImageControl(void)
127 {
128 #line 83 "skin.act"
129
130         
131             AddImage( A_ImageControl_id, A_ImageControl_visible, A_ImageControl_x, A_ImageControl_y, A_ImageControl_image, A_ImageControl_onclick, A_ImageControl_help );
132         
133     
134 } /* STag_ImageControl */
135
136 void STag_RectangleControl(void)
137 {
138 #line 88 "skin.act"
139
140         
141             AddRectangle( A_RectangleControl_id, A_RectangleControl_visible, A_RectangleControl_x, A_RectangleControl_y, A_RectangleControl_w, A_RectangleControl_h, A_RectangleControl_color,
142                           A_RectangleControl_onclick, A_RectangleControl_help );
143         
144     
145 } /* STag_RectangleControl */
146
147 void STag_ButtonControl(void)
148 {
149 #line 94 "skin.act"
150
151         
152             AddButton( A_ButtonControl_id,
153                        A_ButtonControl_visible,
154                        A_ButtonControl_x, A_ButtonControl_y,
155                        A_ButtonControl_up, A_ButtonControl_down, A_ButtonControl_disabled,
156                        A_ButtonControl_onclick, A_ButtonControl_onmouseover, A_ButtonControl_onmouseout,
157                        A_ButtonControl_tooltiptext, A_ButtonControl_help );
158         
159     
160 } /* STag_ButtonControl */
161
162 void STag_CheckBoxControl(void)
163 {
164 #line 104 "skin.act"
165
166         
167             AddCheckBox( A_CheckBoxControl_id,
168                          A_CheckBoxControl_visible,
169                          A_CheckBoxControl_x, A_CheckBoxControl_y,
170                          A_CheckBoxControl_img1, A_CheckBoxControl_img2, A_CheckBoxControl_clickimg1, A_CheckBoxControl_clickimg2, A_CheckBoxControl_disabled1,
171                          A_CheckBoxControl_disabled2,
172                          A_CheckBoxControl_onclick1, A_CheckBoxControl_onclick2, A_CheckBoxControl_onmouseover1, A_CheckBoxControl_onmouseout1,
173                          A_CheckBoxControl_onmouseover2, A_CheckBoxControl_onmouseout2,
174                          A_CheckBoxControl_tooltiptext1, A_CheckBoxControl_tooltiptext2, A_CheckBoxControl_help );
175         
176     
177 } /* STag_CheckBoxControl */
178
179 void STag_SliderControl(void)
180 {
181 #line 116 "skin.act"
182
183         
184             AddSlider( A_SliderControl_id, A_SliderControl_visible, A_SliderControl_x, A_SliderControl_y, A_SliderControl_type, A_SliderControl_up, A_SliderControl_down, A_SliderControl_abs,
185                        A_SliderControl_ord, A_SliderControl_tooltiptext, A_SliderControl_help );
186         
187     
188 } /* STag_SliderControl */
189
190 void STag_TextControl(void)
191 {
192 #line 122 "skin.act"
193
194         
195             AddText( A_TextControl_id, A_TextControl_visible, A_TextControl_x, A_TextControl_y, A_TextControl_text, A_TextControl_font, A_TextControl_align,
196                      A_TextControl_width, A_TextControl_display, A_TextControl_scroll, A_TextControl_scrollspace,
197                      A_TextControl_help );
198         
199     
200 } /* STag_TextControl */
201
202 void STag_PlayListControl(void)
203 {
204 #line 129 "skin.act"
205
206         
207             AddPlayList( A_PlayListControl_id, A_PlayListControl_visible, A_PlayListControl_x, A_PlayListControl_y, A_PlayListControl_width, A_PlayListControl_infowidth,
208                          A_PlayListControl_font, A_PlayListControl_playfont, A_PlayListControl_selcolor, A_PlayListControl_abs, A_PlayListControl_ord,
209                          A_PlayListControl_longfilename, A_PlayListControl_help );
210         
211     
212 } /* STag_PlayListControl */
213
214 void ETag_PlayListControl(void)
215 {
216 #line 136 "skin.act"
217
218         
219             AddPlayListEnd();
220         
221     
222 } /* ETag_PlayListControl */
223
224 void STag_Theme(void)
225 {
226 #line 141 "skin.act"
227
228         
229             StartTheme( A_Theme_magnet );
230         
231     
232 } /* STag_Theme */
233
234 void ETag_Theme(void)
235 {
236 #line 146 "skin.act"
237
238         
239             EndTheme();
240         
241     
242 } /* ETag_Theme */
243
244 /* Dummy main: filter XML from stdin. */
245 //int main() { exit(yylex()); }
246
247 /* XML application entry points. */
248 void ETag_Bitmap(void) {}
249 void ETag_Event(void) {}
250 void ETag_Font(void) {}
251 void ETag_ThemeInfo(void) {}
252 void ETag_Anchor(void) {}
253 void ETag_ImageControl(void) {}
254 void ETag_RectangleControl(void) {}
255 void ETag_ButtonControl(void) {}
256 void ETag_CheckBoxControl(void) {}
257 void ETag_SliderControl(void) {}
258 void ETag_TextControl(void) {}