CDisplay Class Reference

Set, edit, and store the current display settings. More...

#include <display.h>

List of all members.

Public Member Functions

void reset ()
 Reset values to default.
Resolution methods
bool fullscreen () const
 
Returns:
true if display is fullscreen, otherwise false

void fullscreen (const bool set)
 
Parameters:
set Use true to set to fullscreen, false to use windows

int width () const
 
Returns:
The current width.

bool width (int x)
 
Parameters:
x The new width.

int height () const
 
Returns:
The current height.

bool height (int y)
 
Parameters:
y The new height.

int depth () const
 
Returns:
The current video depth

bool depth (int d)
 
Parameters:
d The new depth.


Static Public Member Functions

static CDisplayinstance ()
 Get pointer to current display.
Load methods
static bool load (const std::string &filename, const std::string &path)
 Load in the display description from a file.
static bool load (const std::string &filename)
 Load in the display description from a file.
static bool load (CXMLNode &node)
 Load display descriptions from an XML node.


Detailed Description

Set, edit, and store the current display settings.

(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.

Author:
Doug Poston
Version:
1.3
Date:
12/28/2007

Member Function Documentation

CDisplay * CDisplay::instance (  )  [static]

Get pointer to current display.

Note:
We use a singleton since there is only one supported display.
Returns:
CDisplay* for current display.

bool CDisplay::load ( const std::string &  filename,
const std::string &  path 
) [static]

Load in the display description from a file.

Parameters:
filename Name of the XML file containing the Display node.
path Path containing the XML file.
Returns:
true if the load succeeds

bool CDisplay::load ( const std::string &  filename  )  [static]

Load in the display description from a file.

Parameters:
filename Name of the file containing the Display node.
Returns:
true if the load succeeds

bool CDisplay::load ( CXMLNode &  node  )  [static]

Load display descriptions from an XML node.

Parameters:
node XML node
Returns:
true if the load succeeds


The documentation for this class was generated from the following files:
Generated on Fri Dec 28 12:55:07 2007 for template7 by  doxygen 1.5.4