diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-11-02 14:25:59 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-11-02 14:25:59 +0000 |
commit | 2c0b722536a4ec2f723c289b695b983741c678f8 (patch) | |
tree | 650e06f5837b7995a60bf51b47f5ec9de4ee9ebe /packages/noncvs/windows/extra/Gem/dev/Gem/Event.h | |
parent | 69101e6e7eb00acaee619d4aa815d4a85925cc60 (diff) |
commit windows binaries from old rsync auto-build setup, including Gem 0.93.1
svn path=/trunk/; revision=16520
Diffstat (limited to 'packages/noncvs/windows/extra/Gem/dev/Gem/Event.h')
-rw-r--r-- | packages/noncvs/windows/extra/Gem/dev/Gem/Event.h | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/packages/noncvs/windows/extra/Gem/dev/Gem/Event.h b/packages/noncvs/windows/extra/Gem/dev/Gem/Event.h new file mode 100644 index 00000000..2c767221 --- /dev/null +++ b/packages/noncvs/windows/extra/Gem/dev/Gem/Event.h @@ -0,0 +1,104 @@ +/*----------------------------------------------------------------- +LOG + GEM - Graphics Environment for Multimedia + + get keyboard/mouse callbacks + + Copyright (c) 1997-1999 Mark Danks. mark@danks.org + Copyright (c) Günther Geiger. geiger@epy.co.at + Copyright (c) 2001-2011 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at + For information on usage and redistribution, and for a DISCLAIMER OF ALL + WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution. + +-----------------------------------------------------------------*/ + +#ifndef _INCLUDE__GEM_GEM_EVENT_H_ +#define _INCLUDE__GEM_GEM_EVENT_H_ + +#include "Gem/ExportDef.h" + +////////////////////////////////////////////////////////////////// +// +// Mouse motion callback +// +////////////////////////////////////////////////////////////////// +typedef void (*MOTION_CB)(int, int, void *); +////////// +// Set a mouse motion callback +GEM_EXTERN extern void setMotionCallback(MOTION_CB callback, void *data); + +////////// +// Remove a mouse motion callback +GEM_EXTERN extern void removeMotionCallback(MOTION_CB callback, void *data); + + +////////////////////////////////////////////////////////////////// +// +// Mouse button callback +// +////////////////////////////////////////////////////////////////// +typedef void (*BUTTON_CB)(int, int, int, int, void *); +////////// +// Set a button callback +// which == 0 == left +// which == 1 == middle +// which == 2 == right +GEM_EXTERN extern void setButtonCallback(BUTTON_CB callback, void *data); + +////////// +// Remove a button callback +GEM_EXTERN extern void removeButtonCallback(BUTTON_CB callback, void *data); + + +////////////////////////////////////////////////////////////////// +// +// Mouse wheel callback +// +////////////////////////////////////////////////////////////////// +typedef void (*WHEEL_CB)(int, int, void *); +////////// +// Set a wheel callback +GEM_EXTERN extern void setWheelCallback(WHEEL_CB callback, void *data); + +////////// +// Remove a wheel callback +GEM_EXTERN extern void removeWheelCallback(WHEEL_CB callback, void *data); + +////////////////////////////////////////////////////////////////// +// +// Keyboard callback +// +////////////////////////////////////////////////////////////////// +typedef void (*KEYBOARD_CB)(char *,int, int, void *); +////////// +// Set a keyboard callback +GEM_EXTERN extern void setKeyboardCallback(KEYBOARD_CB callback, void *data); + +////////// +// Remove a keyboard callback +GEM_EXTERN extern void removeKeyboardCallback(KEYBOARD_CB callback, void *data); + +////////////////////////////////////////////////////////////////// +// +// Resize callback +// +////////////////////////////////////////////////////////////////// +typedef void (*RESIZE_CB)(int, int, void *); +////////// +// Set a resize callback +GEM_EXTERN extern void setResizeCallback(RESIZE_CB callback, void *data); + +////////// +// Remove a resize callback +GEM_EXTERN extern void removeResizeCallback(RESIZE_CB callback, void *data); + +////////// +// Trigger an event +GEM_EXTERN extern void triggerMotionEvent(int x, int y); +GEM_EXTERN extern void triggerButtonEvent(int which, int state, int x, int y); +GEM_EXTERN extern void triggerWheelEvent(int axis, int value); +GEM_EXTERN extern void triggerKeyboardEvent(char *string, int value, int state); +GEM_EXTERN extern void triggerResizeEvent(int xSize, int ySize); + +#endif // for header file + |