MGUI::IMAGELIST Class Reference

Image list for icons, bitmaps, etc. More...

#include <mgui/imagelst.h>

Inheritance diagram for MGUI::IMAGELIST:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 IMAGELIST (const IMAGELIST &rhs)
 IMAGELIST (const COLOR &bgcolor)
 IMAGELIST ()
 ~IMAGELIST ()
int AddIcon (ICONID id, const COLOR &bgcolor, int size=16)
int AddIcon (ICONID id, int size=16)
const MICONSTRUCTFindIcon (ICONID iconid) const
MICONSTRUCTGetIcon (int index) const
IMAGELISToperator= (const IMAGELIST &rhs)

Detailed Description

Image list for icons, bitmaps, etc.


Constructor & Destructor Documentation

MGUI::IMAGELIST::IMAGELIST (  ) 

Default constructor.

MGUI::IMAGELIST::IMAGELIST ( const COLOR bgcolor  )  [explicit]

Construct with alternative background color.

MGUI::IMAGELIST::IMAGELIST ( const IMAGELIST rhs  ) 
MGUI::IMAGELIST::~IMAGELIST (  ) 

Destructor.


Member Function Documentation

int MGUI::IMAGELIST::AddIcon ( ICONID  id,
const COLOR bgcolor,
int  size = 16 
)

Add an icon given an ICONID.

Returns:
Icon index in the image list or < 0 if an error
Parameters:
id Icon ID
bgcolor Color to use for background
size Icon size
int MGUI::IMAGELIST::AddIcon ( ICONID  id,
int  size = 16 
)

Add an icon given an ICONID.

Returns:
Icon index in the image list or < 0 if an error
Parameters:
id Icon ID
size Icon size
const MICONSTRUCT* MGUI::IMAGELIST::FindIcon ( ICONID  iconid  )  const

Find icon in list if exists.

Returns:
Icon pointer or NULL if not in list
MICONSTRUCT* MGUI::IMAGELIST::GetIcon ( int  index  )  const

Get MICONSTRUCT pointer for image list index.

Returns:
Icon pointer.
IMAGELIST& MGUI::IMAGELIST::operator= ( const IMAGELIST rhs  ) 

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:36:09 2012 for TNTsdk 2012 by  doxygen 1.6.1