GINO Graphics Suite - GINO v9.0  

gDragSeg

Syntax

[C/C++:]
void gDragSeg(int nseg);
[F90:]
subroutine gDragSeg(nseg)

integer, intent(in) :: nseg

Arguments

nseg
Picture segment number or segment group number

> 0, Drag picture segment or segment group nseg
= GALL, Drag all picture segments
< -1, Drag all segments except segment nseg or segment group nseg

Description

The routine gDragSeg() causes the specified picture segment to follow the position of the cursor until a key is pressed. The position of the picture segment anchor and the integer identifier of the key are obtained by calling the routine gGetEventRecord().

Where software emulation of segments is being performed, the cursor is positioned at the segment origin (if possible) and the user can move the cursor to the required position. The segment does not follow the cursor but is erased from its current position and redrawn at the new position when the cursor key is pressed.

See Also

gDragSeg Usage
gGetEventRecord