Icon Class Reference
[Core GUI related classes (widgets)]

#include <icon.h>

List of all members.


Detailed Description

An icon.

Definition at line 34 of file icon.h.


Public Member Functions

 Icon (const std::string &filename)
 Constructor.
 Icon (Image *image)
 Constructor, uses an existing Image.
ImagegetImage () const
 Gets the current Image.
void setImage (Image *image)
 Sets the image to display.
void draw (gcn::Graphics *g)
 Draws the Icon.

Private Attributes

ImagemImage

Constructor & Destructor Documentation

Icon::Icon ( const std::string &  filename  ) 

Constructor.

Definition at line 29 of file icon.cpp.

Icon::Icon ( Image image  ) 

Constructor, uses an existing Image.

Definition at line 37 of file icon.cpp.


Member Function Documentation

Image* Icon::getImage (  )  const [inline]

Gets the current Image.

Definition at line 50 of file icon.h.

void Icon::setImage ( Image image  ) 

Sets the image to display.

Definition at line 43 of file icon.cpp.

void Icon::draw ( gcn::Graphics *  g  ) 

Draws the Icon.

Definition at line 49 of file icon.cpp.


Member Data Documentation

Image* Icon::mImage [private]

Definition at line 63 of file icon.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5