<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_DisplayWindow - 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_DisplayWindow</h1> <p> Toplevel window class. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <a href="CL_OpenGLWindow.html">CL_OpenGLWindow</a> <br>Group: Display (Display 2D)</p> <p> #include <ClanLib/display.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_DisplayWindow__CL_DisplayWindow.html">CL_DisplayWindow</a></p></td><td valign=top><p> Constructs a window.</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DisplayWindow__get_width.html">get_width</a></p></td><td valign=top><p> Returns the current width of the window.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__get_height.html">get_height</a></p></td><td valign=top><p> Returns the current height of the window.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__is_fullscreen.html">is_fullscreen</a></p></td><td valign=top><p> Returns true if window is currently running fullscreen.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__has_focus.html">has_focus</a></p></td><td valign=top><p> Returns true if window has focus.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__get_buffer.html">get_buffer</a></p></td><td valign=top><p> Returns the pixel buffer for the specified flipping buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__get_buffer_count.html">get_buffer_count</a></p></td><td valign=top><p> Returns the amount of flipping buffers being used.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__get_front_buffer.html">get_front_buffer</a></p></td><td valign=top><p> Returns the current flipping buffer being used as the front buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__get_back_buffer.html">get_back_buffer</a></p></td><td valign=top><p> Returns the current flipping buffer being used as the back buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__get_gc.html">get_gc</a></p></td><td valign=top><p> Returns the graphic context of the current back buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__get_ic.html">get_ic</a></p></td><td valign=top><p> Returns the input context of this window.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DisplayWindow__operator =.html">operator =</a></p></td><td valign=top><p> Copy assignment operator.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__set_fullscreen.html">set_fullscreen</a></p></td><td valign=top><p> Change window to running fullscreen mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__set_windowed.html">set_windowed</a></p></td><td valign=top><p> Change window to running windowed mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__set_title.html">set_title</a></p></td><td valign=top><p> Change window title.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__set_position.html">set_position</a></p></td><td valign=top><p> Set window position and size.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__set_size.html">set_size</a></p></td><td valign=top><p> Resize window.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__set_buffer_count.html">set_buffer_count</a></p></td><td valign=top><p> Changes the amount of pixel buffers used in the flipping system.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__update.html">update</a></p></td><td valign=top><p> Copy the specified rectangle area from back buffer to front buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__flip.html">flip</a></p></td><td valign=top><p> Flip back buffer to front, making changes visible on screen.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__set_cursor.html">set_cursor</a></p></td><td valign=top><p> Sets the mouse cursor shape.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__show_cursor.html">show_cursor</a></p></td><td valign=top><p> Shows the mouse cursor.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__hide_cursor.html">hide_cursor</a></p></td><td valign=top><p> Hides the mouse cursor.</p></td></tr></table> <p><b>Signals:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DisplayWindow__sig_lost_focus.html">sig_lost_focus</a></p></td><td valign=top><p> Signal emitted when window lost focus.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__sig_got_focus.html">sig_got_focus</a></p></td><td valign=top><p> Signal emitted when window gain focus.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__sig_resize.html">sig_resize</a></p></td><td valign=top><p> Signal emitted when window is resized.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__sig_paint.html">sig_paint</a></p></td><td valign=top><p> Signal emitted when an area of the window is invalidated.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayWindow__sig_window_close.html">sig_window_close</a></p></td><td valign=top><p> Signal emitted when window is closed.</p></td></tr></table> <p><b>Implementation:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DisplayWindow__impl.html">impl</a></p></td><td valign=top><p></p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Display/Display 2D! !header=display.h! <p>CL_DisplayWindow represents a window in your windowing system (Windows, X11). You need to create at least one display window in order to draw graphics in ClanLib.</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 -->