Home | All Classes | Grouped Classes | Index | Search
Top level display class. More...
Derived from:
none
Derived by:
none
Group: Display (Display 2D)
#include <ClanLib/display.h>
Attributes:
Returns the currently selected window. | |
Returns the current width of the window. | |
Returns the current height of the window. | |
Returns true if window is currently running fullscreen. | |
Returns true if window has focus. | |
Returns the pixel buffer for the specified flipping buffer. | |
Returns the amount of flipping buffers being used. | |
Returns the current flipping buffer being used as the front buffer. | |
Returns the current flipping buffer being used as the back buffer. | |
Returns the current clipping rectangle used on the graphic context. | |
Returns the current effective x-axis translation offset. | |
Returns the current effective y-axis translation offset. |
Operations:
Sets the currently selected window. | |
Change window to running fullscreen mode. | |
Change window to running windowed mode. | |
Change window title. | |
Set window position and size. | |
Resize window. | |
Changes the amount of surface buffers used in the flipping system. (2 = double buffer, 3 = triple buffer) | |
Copy the specified rectangle area from back buffer to front buffer. | |
Flip back buffer to front, making changes visible on screen. | |
Begin window 3D rendering mode. | |
End windows 3D rendering mode. | |
Draw a pixel at (x, y) using the specified color. | |
Draw a line from (x1, y1) to (x2, y2) using the specified color. | |
Draw a rectangle using the specified color. | |
Draw a filled rectangle using the specified color. | |
Clears the whole window using the specified color. | |
Set the current clipping rectangle. | |
Push current clipping rectangle to stack. | |
Pop current clipping rectangle from the stack. | |
Sets the translate offset. | |
Push translation offset onto translation stack. | |
Pops the last pushed translation offset from the translation offset stack. |
Signals:
Signal emitted when window is resized. | |
Signal emitted when an area of the window is invalidated. | |
Signal emitted when window lost focus. | |
Signal emitted when window gain focus. |
Detailed description:
The display class provides a static function interface to CL_DisplayWindow and other clanDisplay classes. It uses a selected display window (by default the first created window) to call the equalent functions in CL_DisplayWindow, CL_GraphicContext and such.
The entire point of this is to allow applications with only one window to not pass around a pointer to the display window.