Wt examples  3.7.1
HangmanWidget.h
Go to the documentation of this file.
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2011 Emweb bv, Herent, Belgium
4  *
5  * See the LICENSE file for terms of use.
6  */
7 
8 #ifndef HANGMAN_WIDGET_H_
9 #define HANGMAN_WIDGET_H_
10 
11 #include <vector>
12 
13 #include <Wt/WContainerWidget>
14 
15 class Session;
16 class WordWidget;
17 class ImagesWidget;
18 class LettersWidget;
19 
21 {
22 public:
23  HangmanWidget(const std::string &name, Wt::WContainerWidget *parent = 0);
24 
26 
27 private:
29 
33 
37 
39 
40  std::string name_;
41 
43 
44  void registerGuess(char c);
45 
46  void newGame();
47 };
48 
49 #endif //HANGMAN_WIDGET_H_
Wt::Signal< int > scoreUpdated_
Definition: HangmanWidget.h:38
ImagesWidget * images_
Definition: HangmanWidget.h:31
HangmanWidget(const std::string &name, Wt::WContainerWidget *parent=0)
Definition: HangmanWidget.C:27
Wt::WComboBox * language_
Definition: HangmanWidget.h:35
WordWidget * word_
Definition: HangmanWidget.h:30
Wt::WPushButton * newGameButton_
Definition: HangmanWidget.h:36
LettersWidget * letters_
Definition: HangmanWidget.h:32
WWidget * parent() const
std::string name_
Definition: HangmanWidget.h:40
Wt::WText * statusText_
Definition: HangmanWidget.h:34
Wt::WText * title_
Definition: HangmanWidget.h:28
Wt::Signal< int > & scoreUpdated()
Definition: HangmanWidget.h:25
void registerGuess(char c)
Definition: HangmanWidget.C:74

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13