Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > eee00533ac83fd7ebbf9846dc6d3b77b > files > 268

Io-language-graphics-and-sound-20080330-6.fc15.i686.rpm


<HTML><HEAD><TITLE>Manpage of glutMenuStatusFunc</TITLE>
</HEAD><BODY>
<H1>glutMenuStatusFunc</H1>
Section: GLUT (3GLUT)<BR>Updated: 3.7<BR><A HREF="#index">Index</A>
<A HREF="">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

glutMenuStatusFunc - sets the global menu status callback. 
<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>

<PRE>

void glutMenuStatusFunc(void (*func)(int status, int x, int y));
void glutMenuStateFunc(void (*func)(int status));
</PRE>

<A NAME="lbAD">&nbsp;</A>
<H2>ARGUMENTS</H2>

<DL COMPACT>
<DT><I>func</I><DD>
The new menu status (or state) callback function.
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>

glutMenuStatusFunc sets the global menu status callback so a GLUT
program can determine when a menu is in use or not. When a menu
status callback is registered, it will be called with the value
GLUT_MENU_IN_USE for its value parameter when pop-up menus are
in use by the user; and the callback will be called with the value
GLUT_MENU_NOT_IN_USE for its status parameter when pop-up
menus are no longer in use. The x and y parameters indicate the location
in window coordinates of the button press that caused the menu to go
into use, or the location where the menu was released (may be outside the
window). The func parameter names the callback function. Other
callbacks continue to operate (except mouse motion callbacks) when
pop-up menus are in use so the menu status callback allows a program to
suspend animation or other tasks when menus are in use. The cascading
and unmapping of sub-menus from an initial pop-up menu does not
generate menu status callbacks. There is a single menu status callback for
GLUT. 

When the menu status callback is called, the current menu will be set to
the initial pop-up menu in both the GLUT_MENU_IN_USE and
GLUT_MENU_NOT_IN_USE cases. The current window will be set to the
window from which the initial menu was popped up from, also in both
cases. 

Passing NULL to glutMenuStatusFunc disables the generation of the
menu status callback. 

glutMenuStateFunc is a deprecated version of the
glutMenuStatusFunc routine. The only difference is
glutMenuStateFunc callback prototype does not deliver the two
additional x and y coordinates. 
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>

glutCreateMenu, glutCreateWindow
<A NAME="lbAG">&nbsp;</A>
<H2>AUTHOR</H2>

Mark J. Kilgard (<A HREF="mailto:mjk@nvidia.com">mjk@nvidia.com</A>)
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNTAX</A><DD>
<DT><A HREF="#lbAD">ARGUMENTS</A><DD>
<DT><A HREF="#lbAE">DESCRIPTION</A><DD>
<DT><A HREF="#lbAF">SEE ALSO</A><DD>
<DT><A HREF="#lbAG">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="">man2html</A>,
using the manual pages.<BR>
Time: 19:05:09 GMT, September 15, 2003
</BODY>
</HTML>