#include <ViewManager.h>
Description
The module that manages all Displays.
Static Functions | |
static ViewID | New (const std::string &name, int w, int h) |
static void | NewMain (const std::string &name="", int w=640, int h=480) |
static void | Destroy (ViewID) |
static Display * | Get (ViewID) |
static void | SetMain (ViewID) |
static ViewID | GetCurrent () |
static int | GetViewHeight () |
static int | GetViewWidth () |
static std::vector< ViewID > | ListViews () |
Member Function Documentation
|
static |
Creates a new Display with the given w and h in pixels. Its ID is returned.
|
static |
Convenience function for creating and immediately setting the new display as the current display to use. The graphics resultion is also set to match the display's dimensions.
|
static |
Destroys the specified display.
If this display was the main display and another display exists, one of the existing displays will be set as the current display. It is not specified which of the remaining displays is set to be the main one when this occurs.
|
static |
Sets the given Display as the one to update and draw to.
|
static |
Returns a pointer to the currently set Display.
|
static |
Gets the dimensions of the currently set Display. If no valid display is set, 0 is returned.
|
static |
Gets the width of the currently set Display.
|
static |
Returns a list of all currently created Displays.
The documentation for this class was generated from the following file:
- /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Modules/ViewManager.h