Sophie

Sophie

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

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


<HTML><HEAD><TITLE>Manpage of glutButtonBoxFunc</TITLE>
</HEAD><BODY>
<H1>glutButtonBoxFunc</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>

glutButtonBoxFunc - sets the dial &amp; button box button callback for the current window. 
<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>

<PRE>

void glutButtonBoxFunc(void (*func)(int button, int state));
</PRE>

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

<DL COMPACT>
<DT><I>func</I><DD>
The new button box callback function. 
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>

glutButtonBoxFunc sets the dial &amp; button box button callback for the
current window. The dial &amp; button box button callback for a window is
called when the window has dial &amp; button box input focus (normally,
when the mouse is in the window) and the user generates dial &amp; button
box button presses. The button parameter will be the button number
(starting at one). The number of available dial &amp; button box buttons can
be determined with
glutDeviceGet(GLUT_NUM_BUTTON_BOX_BUTTONS). The state is
either GLUT_UP or GLUT_DOWN indicating whether the callback was due
to a release or press respectively. 

Registering a dial &amp; button box button callback when a dial &amp; button
box device is not available is ineffectual and not an error. In this case, no
dial &amp; button box button callbacks will be generated. 

Passing NULL to glutButtonBoxFunc disables the generation of dial &amp;
button box button callbacks. When a new window is created, no dial &amp;
button box button callback is initially registered. 
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>

glutDialsFunc, glutDeviceGet, glutSpaceballButtonFunc, glutTabletButtonFunc
<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>