SysTutorials

Linux Manual Pages › Section 3

glutentryfunc(3)

glutEntryFunc – Window mouse entry/leave callback.

Library

OpenGLUT – input

Synopsis

In openglut.h Ft void Fn glutEntryFunc void( *callback )( int state )

Parameters

Bf Em
 callback Ef
    Client window-entry hook.

Description

When the mouse enters or exits a window (or sub-window), OpenGLUT can report this transition via the Entry callback. Bf Sy
 state Ef
 is one of  Bf Sy
 GLUT_LEFT Ef
 or Bf Sy
 GLUT_ENTERED Ef
 respective of whether the mouse left or entered the window.

This callback is bound to the Bf Li
 current window Ef
 .

See Also

glutPassiveMotionFunc(3)