#include <WordWidget.h>
Definition at line 13 of file WordWidget.h.
◆ WordWidget()
WordWidget::WordWidget |
( |
| ) |
|
Definition at line 11 of file WordWidget.C.
12{
13 addStyleClass("wordcontainer");
14}
◆ guess()
bool WordWidget::guess |
( |
char | c | ) |
|
Definition at line 29 of file WordWidget.C.
30{
31 bool correct = false;
32
33 for (std::size_t i = 0; i <
word_.size(); ++i) {
37 correct = true;
38 }
39 }
40
41 return correct;
42}
◆ init()
void WordWidget::init |
( |
const std::string & | word | ) |
|
Definition at line 16 of file WordWidget.C.
17{
20
21 clear();
23 for (WT_MAYBE_UNUSED
const char ch :
word_) {
24 auto c = addNew<Wt::WText>("-");
26 }
27}
◆ won()
◆ word()
std::string WordWidget::word |
( |
| ) |
const |
|
inline |
◆ displayedLetters_
unsigned WordWidget::displayedLetters_ = 0 |
|
private |
◆ word_
std::string WordWidget::word_ |
|
private |
◆ wordLetters_
std::vector<Wt::WText*> WordWidget::wordLetters_ |
|
private |
The documentation for this class was generated from the following files: