gpm unit
Interface to GPM (General Purpose Mouse) library.
The GPM unit implements an interface to libgpm,
the console program for mouse handling. This unit was created by Peter
Vreman, and is only available on Linux.
When this unit is used, your program is linked to the C libraries, so
you must take care of the C library version. Also, it will only work with
version 1.17 or higher of the libgpm library.
Classes and records
Tgpm_connect | record | GPM server connection information. |
Tgpm_event | record | GPM event record. |
Tgpm_roi | record | Record used to define regions of interest. |
Procedures and functions
Gpm_AnyDouble | function | Check whether event has double click event. |
Gpm_AnySingle | function | Check whether event has a single click event. |
Gpm_AnyTriple | function | Check whether event has a triple click event. |
gpm_close | function | Close connection to GPM server. |
gpm_fitvalues | function | Change coordinates to fit physical screen. |
gpm_fitvaluesM | function | Change coordinates to fit margin. |
gpm_getevent | function | Get event from event queue. |
gpm_getsnapshot | function | Return servers' current image of mouse state. |
gpm_lowerroi | function | Lower a region of interest in the stack. |
gpm_open | function | Open connection to GPM server. |
gpm_poproi | function | Pop region of interest from the stack. |
gpm_pushroi | function | Push region of interest on the stack. |
gpm_raiseroi | function | Raise region of interest in the stack. |
gpm_repeat | function | Check for presence of mouse event. |
Gpm_StrictDouble | function | Check whether event contains only a double-click event. |
Gpm_StrictSingle | function | Check whether event contains only a single-click event. |
Gpm_StrictTriple | function | Check whether event contains only a triple-click event. |
Types
Pgpm_connect | type | Pointer to record. |
Pgpm_event | type | Pointer to record. |
Pgpm_roi | type | Pointer to record. |
Pgpmconnect | type | Pointer to record. |
Pgpmevent | type | Pointer to record. |
Pgpmroi | type | Pointer to record. |
Tgpmconnect | type | Alias for record. |
TGpmEtype | type | Type for event type. |
Tgpmevent | type | Alias for record. |
TGpmHandler | procedure type | Mouse event handler callback. |
TGpmMargin | type | Type to hold area margin. |
Tgpmroi | type | Alias for Record. |
Constants
_PATH_DEV | constant | Location of /dev directory. |
_PATH_VARRUN | constant | Location of run PID files directory. |
GPM_B_LEFT | constant | Left mouse button identifier. |
GPM_B_MIDDLE | constant | Middle mouse button identifier. |
GPM_B_RIGHT | constant | Right mouse button identifier. |
GPM_BOT | constant | Bottom of area. |
GPM_DOUBLE | constant | Mouse double click event. |
GPM_DOWN | constant | Mouse button down event. |
GPM_DRAG | constant | Mouse drag event. |
GPM_ENTER | constant | Enter area event. |
GPM_HARD | constant | ? |
GPM_LEAVE | constant | Leave area event. |
GPM_LFT | constant | Left side of area. |
GPM_MAGIC | constant | Constant identifying GPM in . |
GPM_MFLAG | constant | Motion flag. |
GPM_MOVE | constant | Mouse move event. |
GPM_NODE_CTL | constant | Control socket. |
GPM_NODE_DEV | constant | Device socket filename. |
GPM_NODE_DIR | constant | Where to write socket. |
GPM_NODE_DIR_MODE | constant | Mode of socket. |
GPM_NODE_FIFO | constant | FIFO name. |
GPM_NODE_PID | constant | Name of PID file. |
GPM_RGT | constant | Right side of area. |
GPM_SINGLE | constant | Mouse single click event. |
GPM_TOP | constant | Top of area. |
GPM_TRIPLE | constant | Mouse triple click event. |
GPM_UP | constant | Mouse button up event. |
Variables
gpm_current_roi | variable | Internal gpm library variable. Do not use. |
gpm_handler | variable | Internal gpm library variable. Do not use. |
gpm_roi | variable | Internal gpm library variable. Do not use. |
gpm_roi_data | variable | Internal gpm library variable. Do not use. |
gpm_roi_handler | variable | Internal gpm library variable. Do not use. |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
