<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_GUIManager - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_GUIManager</h1> <p> Root component. <a href="#description">More...</a></p> <p>Derived from: <a href="CL_Component.html">CL_Component</a> <br> Derived by: <i>none</i> <br>Group: GUI (Framework)</p> <p> #include <ClanLib/gui.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_GUIManager__CL_GUIManager.html">CL_GUIManager</a></p></td><td valign=top><p> GUI Manager Constructor</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_GUIManager__get_focus.html">get_focus</a></p></td><td valign=top><p> Returns the currently focused component.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__get_capture.html">get_capture</a></p></td><td valign=top><p> Returns the currently captured component.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__is_input_enabled.html">is_input_enabled</a></p></td><td valign=top><p> Returns true if input is enabled.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__get_modal_component.html">get_modal_component</a></p></td><td valign=top><p> Return component on top of modal stack or NULL if none</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__get_update_trigger.html">get_update_trigger</a></p></td><td valign=top><p> Returns the event trigger for the gui manager.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__is_shutting_down.html">is_shutting_down</a></p></td><td valign=top><p> Returns true if gui manager is currently shutting down</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_GUIManager__set_focus.html">set_focus</a></p></td><td valign=top><p> Sets the focus component of the gui.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__show.html">show</a></p></td><td valign=top><p> Draws the GUI once.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__run.html">run</a></p></td><td valign=top><p> Runs the GUI message pump continuosly.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__quit.html">quit</a></p></td><td valign=top><p> Break run loop.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__enable_input.html">enable_input</a></p></td><td valign=top><p> Tells the GUI to start accepting input.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__disable_input.html">disable_input</a></p></td><td valign=top><p> Tells the GUI to stop accepting input.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__gui_capture_mouse.html">gui_capture_mouse</a></p></td><td valign=top><p> Sets the GUI in capture mode. [should we move this out of API space? -- mbn]</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GUIManager__gui_release_mouse.html">gui_release_mouse</a></p></td><td valign=top><p> Takes GUI out of capture mode. [should we move this out of API space? -- mbn]</p></td></tr></table> <p><b>Signals:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_GUIManager__sig_focus_changed.html">sig_focus_changed</a></p></td><td valign=top><p> Called when a new component get the focus</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=GUI/Framework! !header=gui.h! <p>The GUI manager component is the 'root component' of any GUI system. It is responsible channeling input and output from the general clanlib display API and into the GUI system.</p> <p>The GUI manager must to be the top-level component in any component tree.</p> <p>Modal dialog interfaces in clanGUI is archived by constructing a GUI manager with a parent component. This will disable the input of the previous GUI, but will keep calling its painting signals.</p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->