awips2/ncep/gov.noaa.nws.ncep.ui.nsharp/AwcNsharp/mouse.c
Steve Harris 676ea3192f 12.5.1-15 baseline
Former-commit-id: b13cbb7e00 [formerly 4909e0dd166e43c22a34d96aa744f51db8a7d6c0]
Former-commit-id: 3904c4ccf5
2012-06-08 13:39:48 -05:00

72 lines
1.7 KiB
C

/* MOUSE - Module of mouse functions. To use it, include the MOUSE.H file
* in your program. The following functions are public:
*
* MouseInit - Initialize mouse
* GetMouseEvent - Get information about most recent mouse event
* SetPtrVis - Set visibility of pointer to HIDE or SHOW
* SetPtrPos - Set position of pointer
* SetPtrShape - Set shape of pointer in graphics modes, or
* character and color in text modes
* GetPtrPos - Get pointer position and button status
*
* The following structure is defined:
*
* EVENT - Defines x, y, and mouse status of a mouse event
*/
#include <mouse.h>
/* Internal information used by various mouse functions. */
static struct MOUINFO
{
int fExist, fInit, fGraph;
short xVirtual, yVirtual;
short xActual, yActual;
short xLast, yLast;
unsigned fsBtnLast, cBtn;
} mi =
{
1, 0, 0,
0, 0,
0, 0,
0, 0,
0, 0
};
/*NP*/
/* GetPtrPos - Get mouse pointer position and button status regardless of
* whether there was an event.
*
* Params: pEvent - Pointer to event structure
*
* Return: 0 if no mouse, otherwise 1
*/
int GetPtrPos( EVENT *pEvent )
{
return 1;
}
/*NP*/
/* SetPtrVis - Set pointer visibility.
*
* Params: state - SHOW or HIDE
*
* Return: 0 if no mouse, otherwise 1
*/
int SetPtrVis( enum _PTRVIS pv )
{
}
/*NP*/
/* SetPtrPos - Set mouse pointer position.
*
* Params: x - column position in text modes, actual x coordinate in graphics
* y - row position in text modes, actual y coordinate in graphics
*
* Return: 0 if no mouse, otherwise 1
*/
int SetPtrPos( short x, short y )
{
}