GINO Graphics Suite - GINO v9.0  

gSetSegHit

Syntax

[C/C++:]
void gSetSegHit(int nseg, int sens);
[F90:]
subroutine gSetSegHit(nseg, sens)
integer, intent(in) :: nseg,sens

Arguments

nseg
Picture segment or segment group number

> 0, Change sensitivity of segment(s) specified by nseg
= -1, Change sensitivity of all segments
< -1, Change sensitivity of all segments except those specified by nseg
sens
Sensitivity status

= GNONSENSITIVE, Non hit-sensitive (default)
= GSENSITIVE, Hit-sensitive

Description

The routine gSetSegHit() is used to change the hit-sensitivity of picture segments. Only segments that are hit-sensitive may be selected using events 2 and 3 or gEnqSegHit().

When the software emulation of picture segments is used and nseg does not exist an error message is generated. When using this routine in the default hardware segmentation mode, gSetSegMode(GHARDWARE), no error message is generated. However, the device may output a local error message.

Some displays do not permit this segment operation on the currently opened segment.

See Also

gSetSegHit Usage
gWaitForEvent
gEnqSegHit
gSetSegMode