wGui::CBitmapResourceHandle Class Reference

#include <wg_resource_handle.h>

Inheritance diagram for wGui::CBitmapResourceHandle:

wGui::CResourceHandle wGui::CBitmapFileResourceHandle wGui::CwgBitmapResourceHandle

Public Member Functions

Static Protected Attributes


Detailed Description

CBitmapResourceHandle is a resource handle for bitmaps It will allocate the bitmaps as needed and can be cast as a bitmap

Definition at line 88 of file wg_resource_handle.h.


Constructor & Destructor Documentation

wGui::CBitmapResourceHandle::CBitmapResourceHandle ( TResourceId  resId  )  [inline]

CBitmapResourceHandles must be instantiated with a valid resource ID

Parameters:
resId The ID of the resource which the handle will represent

Definition at line 93 of file wg_resource_handle.h.

wGui::CBitmapResourceHandle::CBitmapResourceHandle ( const CBitmapResourceHandle resHandle  )  [inline]

A copying constructor

Parameters:
resHandle An existing resource handle that will be cloned

Definition at line 97 of file wg_resource_handle.h.


Member Function Documentation

SDL_Surface * wGui::CBitmapResourceHandle::Bitmap ( void   )  const

Gets the handle's bitmap

Returns:
An SDL_Surface pointer (the bitmap)

Definition at line 89 of file wg_resource_handle.cpp.

References m_BitmapMap, and wGui::CResourceHandle::m_ResourceId.

Referenced by wGui::CPicture::Draw(), and wGui::CPopupMenu::Draw().


The documentation for this class was generated from the following files:
Generated on Wed May 16 23:11:28 2007 for wGui by  doxygen 1.5.1