tuxpaint-pencil-sharpener/src/win32_print.h
John Popplewell b878e9646e Added code to hook low-level keyboard events on 2K/XP/Vista.
The hook is only installed if in full-screen mode.
Filters out the left and right Windows keys to avoid accidentally dropping
out of full-screen mode.
If Tux Paint is deliberately switched to the background (using ALT-TAB, say)
the Windows keys function as normal until Tux Paint is the active
application again.
2008-07-10 20:57:25 +00:00

32 lines
799 B
C

/* win32_print.h */
/* printing support for Tux Paint */
/* John Popplewell <john@johnnypops.demon.co.uk> */
/* Sept. 30, 2002 - Oct. 1, 2002 */
/* $Id$ */
#ifndef __WIN32_PRINT_H__
#define __WIN32_PRINT_H__
#ifndef _SDL_H
#include "SDL.h"
#endif
/* if printcfg is NULL, uses the default printer */
extern const char *SurfacePrint(SDL_Surface * surf,
const char *printcfg, int showdialog);
extern int IsPrinterAvailable(void);
/* additional windows functions requiring <windows.h> */
extern char *GetDefaultSaveDir(const char *suffix);
extern char *GetSystemFontDir(void);
extern char *get_temp_fname(const char *const name);
/* keyboard hooking functions */
extern int InstallKeyboardHook(void);
extern int RemoveKeyboardHook(void);
extern void SetActivationState(int state);
#endif