wmbiff: bumped to 0.4.34.
[dockapps.git] / wmradio / skin.h
blobe0b740a9851a2f5675f138a5c4227e505514e511
1 /*
2 * Copyright (C) 12 Jun 2003 Tomas Cermak
4 * This file is part of wmradio program.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef _SKIN_H
22 #define _SKIN_H
23 #include <X11/xpm.h>
25 #define DEFAULTICONSIZE 56
26 #define SKIN_ON 0
27 #define SKIN_OFF 1
29 typedef struct {
30 int x,y,w,h;
31 } region;
33 typedef struct {
34 int x,y,w,h;
35 char *name;
36 } text_skin_item;
38 typedef struct {
39 int action;
40 unsigned int
41 destx,desty,
42 srcx,srcy,
43 width,height;
44 unsigned char status;
45 } ButtonInfo;
47 #define BS_RELEASED 1
48 #define BS_PRESSED 2
49 #define BS_SELECTED 4
51 typedef struct {
52 unsigned char
53 destx,desty,
54 srcx,srcy,
55 w[12],
57 } DigitsInfo;
59 typedef struct {
60 unsigned int
61 destx,desty,
62 srcx,srcy,
63 w[26], /* a - z */
65 } LettersInfo;
67 typedef struct { Pixmap pixmap; Pixmap mask; XpmAttributes
68 attributes; } XpmIcon;
70 int in_region(int x, int y, int btx,int bty,int btw,int bth);
71 int xor_string(char *s);
72 void create_skin(char *skin_def_file, Display *display, Drawable drawable);
73 int find_action(int x, int y);
74 void skin_to_window(Display *display, Window win, GC gc, int freq, char stereo);
75 int skin_mouse_event(int x, int y, int button, int press);
76 void skin_unselect_button(void);
77 void skin_select_button(int action);
78 void skin_switch_radio(char status);
79 int skin_width(void);
80 int skin_height(void);
81 void skin_select_station(int station);
83 #endif