CGadgetImageList Class Reference

Kernel-usable class represeting a list of images. More...

#include <dlgmgr.h>

Inheritance diagram for CGadgetImageList:

CCObject SimpleCCObject List of all members.

Public Member Functions

 CGadgetImageList (UINT32 width=0, UINT32 height=0)
 ~CGadgetImageList ()
 Destructor.
UINT32 Add (CDlgResID resID)
 Adds an image to the list.
ListItemFindFirstBitmap (ResourceID *presID) const
 To get the first resourceID stored in this image list object.
ListItemFindNextBitmap (ListItem *pListItem, ResourceID *presID) const
 To get the next resourceID stored in this image list object after the specified item.
UINT32 GetWidth () const
UINT32 GetHeight () const

Private Member Functions

 CC_DECLARE_DYNAMIC (CGadgetImageList)

Private Attributes

List m_BitmapIDList
UINT32 m_width
UINT32 m_height

Classes

class  ResIDListItem

Detailed Description

Kernel-usable class represeting a list of images.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/02/2006

Definition at line 256 of file dlgmgr.h.


Constructor & Destructor Documentation

CGadgetImageList::CGadgetImageList UINT32  width = 0,
UINT32  height = 0
[inline]
 

Definition at line 268 of file dlgmgr.h.

00268 {m_width = width; m_height = height;}

CGadgetImageList::~CGadgetImageList  ) 
 

Destructor.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/Feb/2006

Definition at line 9380 of file dlgmgr.cpp.

09381 {
09382     m_BitmapIDList.DeleteAll();
09383 }


Member Function Documentation

UINT32 CGadgetImageList::Add CDlgResID  resID  ) 
 

Adds an image to the list.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/Feb/2006
Parameters:
resID - resource ID of the image [INPUTS]
Returns:
The index of the image

Definition at line 9397 of file dlgmgr.cpp.

09398 {
09399     m_BitmapIDList.AddTail(new ResIDListItem(resID));
09400     return m_BitmapIDList.GetCount()-1;
09401 }

CGadgetImageList::CC_DECLARE_DYNAMIC CGadgetImageList   )  [private]
 

ListItem * CGadgetImageList::FindFirstBitmap ResourceID presID  )  const
 

To get the first resourceID stored in this image list object.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/Feb/2006
Parameters:
- [INPUTS]
presID - ResourceID of first tiem in list [OUTPUTS]
Returns:
Pointer to context list item for iteration or NULL

Definition at line 9417 of file dlgmgr.cpp.

09418 {
09419     ResIDListItem* pItem = (ResIDListItem*)m_BitmapIDList.GetHead();
09420     if (presID && pItem)
09421         *presID = pItem->m_ResID;
09422 
09423     return (ListItem*)pItem;
09424 }

ListItem * CGadgetImageList::FindNextBitmap ListItem pContextItem,
ResourceID presID
const
 

To get the next resourceID stored in this image list object after the specified item.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/Feb/2006
Parameters:
pContextItem - pointer to current context [INPUTS]
ResourceID - resource ID from list item [OUTPUTS]
Returns:
Pointer to context list item for iteration or NULL

Definition at line 9442 of file dlgmgr.cpp.

09443 {
09444     ResIDListItem* pItem = (ResIDListItem*)m_BitmapIDList.GetNext(pContextItem);        // (Ahem! Maybe there's a better way to do this...)
09445     if (presID && pItem)
09446         *presID = pItem->m_ResID;
09447 
09448     return (ListItem*)pItem;
09449 }

UINT32 CGadgetImageList::GetHeight void   )  const [inline]
 

Definition at line 275 of file dlgmgr.h.

00275 {return m_height;}

UINT32 CGadgetImageList::GetWidth void   )  const [inline]
 

Definition at line 274 of file dlgmgr.h.

00274 {return m_width;}


Member Data Documentation

List CGadgetImageList::m_BitmapIDList [private]
 

Definition at line 278 of file dlgmgr.h.

UINT32 CGadgetImageList::m_height [private]
 

Definition at line 280 of file dlgmgr.h.

UINT32 CGadgetImageList::m_width [private]
 

Definition at line 279 of file dlgmgr.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:23 2007 for Camelot by  doxygen 1.4.4