view plugins/win32/transparency/wintransparency.h @ 3741:55d30dd98e25

[gaim-migrate @ 3879] ok committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Fri, 18 Oct 2002 15:14:55 +0000
parents a8f0c169e529
children e9d681ef14d9
line wrap: on
line source

/*
 *  wintransparency.h
 */

#ifndef _WINTRANSPARENCY_H_
#define _WINTRANSPARENCY_H_
#include <gdk/gdkevents.h>

extern int alpha;

/* These defines aren't found in the current version of mingw */
#ifndef LWA_ALPHA
#define LWA_ALPHA               0x00000002
#endif

#ifndef WS_EX_LAYERED
#define WS_EX_LAYERED           0x00080000
#endif


extern GdkFilterReturn wgaim_window_filter(GdkXEvent *xevent, 
					   GdkEvent *event, 
					   gpointer data);

/* Needed for accessing global variables outside the current module */

extern void wgaim_init(void);

#define unlink _unlink
#define bzero( dest, size ) memset( ## dest ##, 0, ## size ## )
#define sleep(x) Sleep((x)*1000)
#define snprintf _snprintf
#define vsnprintf _vsnprintf

#endif /* _WINTRANSPARENCY_H_ */