Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Window Class Reference

Contains data about the game's window and has functions for initializing and controlling the window. More...

#include <Window.h>

List of all members.

Public Methods

 Window ()
 Constructor.

 ~Window ()
 Destructor.

void registerClass (HINSTANCE hInst, const char *ATitle)
 Registers the class with Windows.

BOOL initInstance (HINSTANCE hInst, int nCmdShow, const char *ATitle, const char *WTitle)
 Initializes the window.

const HWND & getHwnd () const
 Returns a reference to hWnd.

const HINSTANCE & get_hInstance () const
 Returns a refrence to hInstance.

void setWindowed (BOOL newWindowed)
 Set whether window is in windowed mode or not.

BOOL getWindowed () const
 Returns TRUE if the window is in windowed mode.

bool toggleWindowed ()
 If the Window is in windowed mode, go to fullscreen, else go back to windowed mode.


Detailed Description

Contains data about the game's window and has functions for initializing and controlling the window.


Constructor & Destructor Documentation

Window::Window  
 

Constructor.

Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

Window::~Window  
 

Destructor.


Member Function Documentation

const HINSTANCE & Window::get_hInstance  
 

Returns a refrence to hInstance.

Returns:
a reference to hInstance

const HWND & Window::getHwnd  
 

Returns a reference to hWnd.

Returns:
a reference to hWnd

BOOL Window::getWindowed  
 

Returns TRUE if the window is in windowed mode.

Returns:
TRUE if the window is in windowed mode

BOOL Window::initInstance HINSTANCE    hInst,
int    nCmdShow,
const char *    ATitle,
const char *    WTitle
 

Initializes the window.

Parameters:
hInst  instance of application
nCmdShow  whether to show the window or not
ATitle  title of the application
WTitle  title of the window
Returns:
true if the operation succeeded

void Window::registerClass HINSTANCE    hInst,
const char *    ATitle
 

Registers the class with Windows.

Parameters:
hInst  instance of application
ATitle  title of the application

void Window::setWindowed BOOL    newWindowed
 

Set whether window is in windowed mode or not.

Parameters:
newWindowed  whether the window is in windowed mode or not

bool Window::toggleWindowed  
 

If the Window is in windowed mode, go to fullscreen, else go back to windowed mode.

Returns:
true on error


The documentation for this class was generated from the following files:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18