An icon.
More...
#include <icon.h>
An icon.
Definition at line 35 of file icon.h.
◆ Icon() [1/2]
Icon::Icon |
( |
const std::string & |
filename | ) |
|
|
explicit |
Constructor.
- Parameters
-
filename | The file name of the image to display |
Definition at line 29 of file icon.cpp.
◆ Icon() [2/2]
Icon::Icon |
( |
Image * |
image = nullptr | ) |
|
|
explicit |
Constructor, uses an existing Image.
Definition at line 34 of file icon.cpp.
◆ ~Icon()
◆ draw()
void Icon::draw |
( |
gcn::Graphics * |
g | ) |
|
|
override |
◆ getImage()
Image * Icon::getImage |
( |
| ) |
const |
|
inline |
◆ setImage()
void Icon::setImage |
( |
Image * |
image | ) |
|
Sets the image to display.
Definition at line 41 of file icon.cpp.
◆ mImage
The documentation for this class was generated from the following files: