#include <ImagesWidget.h>
|
Wt::WImage * | image (int index) const |
|
Definition at line 15 of file ImagesWidget.h.
◆ ImagesWidget()
ImagesWidget::ImagesWidget |
( |
int |
maxGuesses, |
|
|
Wt::WContainerWidget * |
parent = 0 |
|
) |
| |
Definition at line 15 of file ImagesWidget.C.
16 : WContainerWidget(parent)
18 for (
int i = 0; i <= maxGuesses; ++i) {
19 std::string fname =
"icons/hangman";
20 fname += boost::lexical_cast<std::string>(i) +
".jpg";
21 WImage *theImage =
new WImage(fname,
this);
26 theImage->resize(256, 256);
30 WImage *hurray =
new WImage(
"icons/hangmanhurray.jpg",
this);
◆ currentImage()
int ImagesWidget::currentImage |
( |
| ) |
const |
|
inline |
◆ image()
WImage * ImagesWidget::image |
( |
int |
index | ) |
const |
|
private |
◆ showImage()
void ImagesWidget::showImage |
( |
int |
index | ) |
|
◆ HURRAY
const int ImagesWidget::HURRAY = -1 |
|
static |
◆ image_
◆ images_
std::vector<Wt::WImage *> ImagesWidget::images_ |
|
private |
The documentation for this class was generated from the following files: