#include <ImagesWidget.h>
|
Wt::WImage * | image (int index) const |
|
Definition at line 15 of file ImagesWidget.h.
◆ ImagesWidget()
ImagesWidget::ImagesWidget |
( |
int | maxGuesses | ) |
|
|
explicit |
Definition at line 14 of file ImagesWidget.C.
15{
16 for (int i = 0; i <= maxGuesses; ++i) {
17 std::string fname = "icons/hangman";
18 fname += std::to_string(i) + ".jpg";
19 auto theImage = addNew<Wt::WImage>(fname);
21
22
23
24 theImage->resize(256, 256);
25 theImage->hide();
26 }
27
28 auto hurray = addNew<Wt::WImage>("icons/hangmanhurray.jpg");
29 hurray->hide();
31
34}
◆ currentImage()
int ImagesWidget::currentImage |
( |
| ) |
const |
|
inline |
◆ image()
Wt::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: