26#include <guichan/widget.hpp>
35class Icon :
public gcn::Widget
43 explicit Icon(
const std::string &filename);
65 void draw(gcn::Graphics *g)
override;
Image * getImage() const
Gets the current Image.
void draw(gcn::Graphics *g) override
Draws the Icon.
ResourceRef< Image > mImage
void setImage(Image *image)
Sets the image to display.
Defines a class for loading and storing images.
Automatically counting Resource reference.