home *** CD-ROM | disk | FTP | other *** search
- <!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
- <!-- available at http://polyglotman.sourceforge.net/ -->
-
- <html>
- <head>
- <title>"SDL_ActiveEvent"("3") manual page</title>
- </head>
- <body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
- <a href='#toc'>Table of Contents</a><p>
-
- <h2><a name='sect0' href='#toc0'>Name</a></h2>
- SDL_ActiveEvent- Application visibility event structure
- <h2><a name='sect1' href='#toc1'>Structure Definition</a></h2>
- <p>
- <br>
- <pre>CWtypedef struct{
- Uint8 type;
- Uint8 gain;
- Uint8 state;
- } SDL_ActiveEvent;
- </pre><p>
-
- <h2><a name='sect2' href='#toc2'>Structure Data</a></h2>
-
- <dl>
-
- <dt><b>type</b> </dt>
- <dd><b>SDL_ACTIVEEVENT.</b> </dd>
-
- <dt><b>gain</b> </dt>
- <dd>0 if the event is a loss or 1 if
- it is a gain. </dd>
-
- <dt><b>state</b> </dt>
- <dd><b>SDL_APPMOUSEFOCUS</b> if mouse focus was gained or lost,
- <b>SDL_APPINPUTFOCUS</b> if input focus was gained or lost, or <b>SDL_APPACTIVE</b> if
- the application was iconified (<b>gain</b>=0) or restored(<b>gain</b>=1). </dd>
- </dl>
-
- <h2><a name='sect3' href='#toc3'>Description</a></h2>
- <p>
- <b>SDL_ActiveEvent</b>
- is a member of the <i><b>SDL_Event</b></i> union and is used when an event of type <b>SDL_ACTIVEEVENT</b>
- is reported. <p>
- When the mouse leaves or enters the window area a <b>SDL_APPMOUSEFOCUS</b>
- type activation event occurs, if the mouse entered the window then <b>gain</b>
- will be 1, otherwise <b>gain</b> will be 0. A <b>SDL_APPINPUTFOCUS</b> type activation
- event occurs when the application loses or gains keyboard focus. This usually
- occurs when another application is made active. Finally, a <b>SDL_APPACTIVE</b>
- type event occurs when the application is either minimised/iconified (<b>gain</b>=0)
- or restored. <p>
- <blockquote><b>Note: <p>
- This event does not occur when an application window
- is first created. </blockquote>
-
- <h2><a name='sect4' href='#toc4'></b>See Also</a></h2>
- <p>
- <i><b>SDL_Event</b></i>, <i><b>SDL_GetAppState</b></i>
- <!--
-
- <p>
-
- <hr><p>
- <a name='toc'><b>Table of Contents</b></a><p>
- <ul>
- <li><a name='toc0' href='#sect0'>Name</a></li>
- <li><a name='toc1' href='#sect1'>Structure Definition</a></li>
- <li><a name='toc2' href='#sect2'>Structure Data</a></li>
- <li><a name='toc3' href='#sect3'>Description</a></li>
- <li><a name='toc4' href='#sect4'>See Also</a></li>
- </ul>
- </body>
- </html>
-