ViewManager Class Reference

#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 DisplayGet (ViewID)
 
static void SetMain (ViewID)
 
static ViewID GetCurrent ()
 
static int GetViewHeight ()
 
static int GetViewWidth ()
 
static std::vector< ViewID > ListViews ()
 

Member Function Documentation

static ViewID New ( const std::string &  name,
int  w,
int  h 
)
static

Creates a new Display with the given w and h in pixels. Its ID is returned.

static void NewMain ( const std::string &  name = "",
int  w = 640,
int  h = 480 
)
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 void Destroy ( ViewID  )
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 Display* Get ( ViewID  )
static

Returns the Display corresponding to the given ID.

static void SetMain ( ViewID  )
static

Sets the given Display as the one to update and draw to.

static ViewID GetCurrent ( )
static

Returns a pointer to the currently set Display.

static int GetViewHeight ( )
static

Gets the dimensions of the currently set Display. If no valid display is set, 0 is returned.

static int GetViewWidth ( )
static

Gets the width of the currently set Display.

static std::vector<ViewID> ListViews ( )
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