PLGraphicsIn: PLplot Graphics Input structure
Prev | Chapter 19. The Specialized C API for PLplot | Next

#### PLGraphicsIn: PLplot Graphics Input structure

The PLGraphicsIn structure is used by `plGetCursor` to return information on the current cursor position and key / button state for interactive drivers. The structure contains the following fields:

`type` (`int`)

  Type of event (currently unused?).

`state` (`unsigned int`)

  Key or button mask.

`keysym` (`unsigned int`)

  Key selected.

`button` (`unsigned int`)

  Mouse button selected.

`subwindow` (`PLINT`)

  Subwindow (or subpage / subplot) number.

`string` (`char [PL_MAXKEY]`)

  Translated string.

`pX, pY` (`int`)

  Absolute device coordinates of pointer.

`dX, dY` (`PLFLT`)

  relative device coordinates of pointer.

`wX, wY` (`PLFLT`)

  World coordinates of pointer.

Prev | Up | Next
`pltr2`: Linear interpolation for grid to world mapping using doubly dimensioned coordinate arrays (column dominant, as per normal C 2d arrays) | Home | PLOptionTable: PLplot command line options table structure