#include <WordWidget.h>
Definition at line 15 of file WordWidget.h.
◆ WordWidget()
WordWidget::WordWidget |
( |
| ) |
|
Definition at line 13 of file WordWidget.C.
13 :
14 WContainerWidget()
15{
16 addStyleClass("wordcontainer");
17}
◆ guess()
bool WordWidget::guess |
( |
wchar_t |
c | ) |
|
Definition at line 32 of file WordWidget.C.
33{
34 bool correct = false;
35
36 for(
unsigned int i = 0; i <
word_.size(); ++i) {
40 correct = true;
41 }
42 }
43
44 return correct;
45}
◆ init()
void WordWidget::init |
( |
const std::wstring & |
word | ) |
|
Definition at line 19 of file WordWidget.C.
20{
23
24 clear();
26 for(
unsigned int i = 0; i <
word_.size(); ++i) {
27 WText *c = this->addWidget(std::make_unique<WText>("-"));
29 }
30}
◆ won()
◆ word()
std::wstring WordWidget::word |
( |
| ) |
const |
|
inline |
◆ displayedLetters_
unsigned WordWidget::displayedLetters_ |
|
private |
◆ word_
std::wstring WordWidget::word_ |
|
private |
◆ wordLetters_
std::vector<WText *> WordWidget::wordLetters_ |
|
private |
The documentation for this class was generated from the following files:
- C:/M/mingw-w64-wt/src/wt-4.6.1/examples/hangman/WordWidget.h
- C:/M/mingw-w64-wt/src/wt-4.6.1/examples/hangman/WordWidget.C