#include <ImagesWidget.h>
|
WImage * | image (int index) const |
|
Definition at line 17 of file ImagesWidget.h.
◆ ImagesWidget()
ImagesWidget::ImagesWidget |
( |
int |
maxGuesses | ) |
|
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 WImage *theImage = addWidget(std::make_unique<WImage>(fname));
21
22
23
24 theImage->resize(256, 256);
25 theImage->hide();
26 }
27
28 WImage *hurray = addWidget(std::make_unique<WImage>("icons/hangmanhurray.jpg"));
29 hurray->hide();
31
34}
◆ 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<WImage *> ImagesWidget::images_ |
|
private |
The documentation for this class was generated from the following files: