3729
|
1 /*
|
|
2 * wintransparency.h
|
|
3 */
|
|
4
|
|
5 #ifndef _WINTRANSPARENCY_H_
|
|
6 #define _WINTRANSPARENCY_H_
|
3745
|
7 #include <windows.h>
|
3729
|
8 #include <gdk/gdkevents.h>
|
|
9
|
|
10 extern int alpha;
|
|
11
|
3744
|
12 BOOL WINAPI SetLayeredWindowAttributes(HWND,COLORREF,BYTE,DWORD);
|
|
13
|
3729
|
14 /* These defines aren't found in the current version of mingw */
|
|
15 #ifndef LWA_ALPHA
|
|
16 #define LWA_ALPHA 0x00000002
|
|
17 #endif
|
|
18
|
|
19 #ifndef WS_EX_LAYERED
|
|
20 #define WS_EX_LAYERED 0x00080000
|
|
21 #endif
|
|
22
|
|
23
|
|
24 extern GdkFilterReturn wgaim_window_filter(GdkXEvent *xevent,
|
|
25 GdkEvent *event,
|
|
26 gpointer data);
|
|
27
|
|
28 /* Needed for accessing global variables outside the current module */
|
|
29
|
|
30 extern void wgaim_init(void);
|
|
31
|
|
32 #define unlink _unlink
|
|
33 #define bzero( dest, size ) memset( ## dest ##, 0, ## size ## )
|
|
34 #define sleep(x) Sleep((x)*1000)
|
|
35 #define snprintf _snprintf
|
|
36 #define vsnprintf _vsnprintf
|
|
37
|
|
38 #endif /* _WINTRANSPARENCY_H_ */
|
|
39
|