Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GImageList Class Reference

A list of images/icons all the same size. More...

#include <GToolBar.h>

Inheritance diagram for GImageList:

GMemDC GSurface GDeviceContext List of all members.

Public Member Functions

 GImageList (int x, int y, GSurface *pDC=NULL)
 Create the image list.
int TileX ()
 Returns the width of each image.
int TileY ()
 Returns the height of each image.
int GetItems ()
 Gets the number of images in the list.
GRectGetBounds ()
bool Create (int x, int y, int Bits, int LineLen=0, bool KeepData=false)
 Creates the image list.
void Update (int Flags)
void Draw (GSurface *pDest, int x, int y, int Image, int Flags=0)
 Draw an image onto a graphics surface.

Detailed Description

A list of images/icons all the same size.

Currently the image list treats the pixel at (0,0) as the transparent colour key.


Constructor & Destructor Documentation

GImageList::GImageList int  x,
int  y,
GSurface pDC = NULL
 

Create the image list.

Parameters:
x  The width of each image
y  The height of each image
pDC  Initial data for the images


Member Function Documentation

void GImageList::Draw GSurface pDest,
int  x,
int  y,
int  Image,
int  Flags = 0
 

Draw an image onto a graphics surface.

Parameters:
pDest  The output surface
Dx  The x coord to draw the top-left corner
Dy  The y coord to draw the top-left corner
Image  A 0 based index into the list to draw
Flags  Drawing options
See also:
The defines starting at IMGLST_SELECTED in GToolBar.h

GRect * GImageList::GetBounds  ) 
 

Finds the bounds of valid data for each image and returns it in an array valid from 0 to GetItems()-1.

void GImageList::Update int  Flags  )  [virtual]
 

Notifies the image list that it's image data has changed and it should flush any cached info about the images

Reimplemented from GDeviceContext.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:46:59 2005 for Lgi by  doxygen 1.4.1