Wt examples  3.3.3
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 bvba, Heverlee, 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_

Generated on Tue May 27 2014 for the C++ Web Toolkit (Wt) by doxygen 1.8.4