Sign in Join
FPDoc Onlineexperiment

gpm_fitvaluesM function

In unit gpm

Change coordinates to fit margin.

Declaration

pascal
function gpm_fitvaluesM(var x: LongInt; var y: LongInt; margin: LongInt)
: LongInt

Description

Gpm_FitValuesM changes x and y so they fit in the margin indicated by margin. If margin is -1, then the values are fitted to the screen. The actual mouse pointer is not affected by this function.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.