Wt examples
3.3.0
|
#include <WordWidget.h>
Public Member Functions | |
WordWidget (Wt::WContainerWidget *parent=0) | |
std::wstring | word () const |
void | init (const std::wstring &word) |
bool | guess (wchar_t c) |
bool | won () |
Private Attributes | |
std::vector< Wt::WText * > | wordLetters_ |
std::wstring | word_ |
unsigned | displayedLetters_ |
Additional Inherited Members | |
![]() | |
virtual void | enableAjax ()=0 |
virtual void | propagateSetEnabled (bool enabled)=0 |
virtual void | render (WFlags< RenderFlag > flags) |
Definition at line 13 of file WordWidget.h.
WordWidget::WordWidget | ( | Wt::WContainerWidget * | parent = 0 | ) |
Definition at line 13 of file WordWidget.C.
bool WordWidget::guess | ( | wchar_t | c | ) |
Definition at line 32 of file WordWidget.C.
void WordWidget::init | ( | const std::wstring & | word | ) |
Definition at line 19 of file WordWidget.C.
bool WordWidget::won | ( | ) |
Definition at line 47 of file WordWidget.C.
|
inline |
Definition at line 18 of file WordWidget.h.
|
private |
Definition at line 29 of file WordWidget.h.
|
private |
Definition at line 27 of file WordWidget.h.
|
private |
Definition at line 26 of file WordWidget.h.