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

CScreen Class Reference

#include <cvideo.h>

Inheritance diagram for CScreen:

Inheritance graph
[legend]
Collaboration diagram for CScreen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CScreen (CSurfaceImpl *n_impl)
void set_video_mode (int width, int height, int depth)
void flip ()
void update_rects (CRectList &rects)
void set_fullscreen_mode (int mode)
int get_fullscreen_mode ()

Detailed Description

The CScreen object represents the screen of a display. Like CSurface, it is an interface end of a bridge pattern and provides an interface that is at a higher level of abstraction than the implementation.

Note that although this class isn't a singleton, its creation and access is available only through the CVideoSystem singleton's get_screen() method, which effectively makes it a singleton

In the future, the interface could be expanded so screen #2 can be retrieved by calling something like CVideoSystemManager::get_instance().get_screen(2).

See CVideoSystem::get_screen() for more information.

Definition at line 418 of file cvideo.h.


Constructor & Destructor Documentation

CScreen::CScreen CSurfaceImpl n_impl  )  [inline]
 

Creates a CScreen object with the given CSurfaceImpl implementation object.

Definition at line 430 of file cvideo.h.

References CSurface::impl.


Member Function Documentation

void CScreen::flip  )  [inline]
 

Flips the screen so changes applied to it take effect.

Definition at line 438 of file cvideo.h.

References CSurfaceImpl::flip(), and CSurface::impl.

Here is the call graph for this function:

int CScreen::get_fullscreen_mode  )  [inline]
 

Returns whether the screen is fullscreen or windowed.

Definition at line 450 of file cvideo.h.

void CScreen::set_fullscreen_mode int  mode  )  [inline]
 

Sets whether the screen is in fullscreen mode or windowed.

Definition at line 444 of file cvideo.h.

References CSurface::get_depth(), CSurface::get_height(), CSurface::get_width(), and set_video_mode().

Here is the call graph for this function:

void CScreen::set_video_mode int  width,
int  height,
int  depth
[inline]
 

Sets the video mode of the surface.

Definition at line 433 of file cvideo.h.

References CSurface::impl, and CSurfaceImpl::set_video_mode().

Here is the call graph for this function:

void CScreen::update_rects CRectList rects  )  [inline]
 

Like flip(), but only updates the given rects on screen.

Definition at line 441 of file cvideo.h.

References CSurface::impl, and CSurfaceImpl::update_rects().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Wed Aug 27 11:59:00 2003 for GFW by doxygen 1.3.3