GINO Graphics Suite - GINO v9.0  

gEnqMousePos

Syntax

[C/C++:]
void gEnqMousePos(int env, GPIXEL *point);
[F90:]
subroutine gEnqMousePos(env, point)

integer, intent(in) :: env
type (GPIXEL), intent(out) :: point

Arguments

env
Mouse position environment

GSCREEN Relative to screen or display area
GDRAWINGAREA Relative to current drawing area or device window

point
Mouse position in pixels

Description

The routine gEnqMousePos() enquires the current position of the graphics pointer or mouse in the structure point relative to the top left corner of the specified environment passed in env.

The routine gEnqPosOfPixel() can be used to translate the mouse position relative to the current drawing area or device window (GDRAWINGAREA) to a picture position and the routine gSetMousePos() can be used to set the current mouse position.

See Also

gEnqMousePos Usage
Device Drivers
gSetMousePos
gEnqPosOfPixel