/usr/lib/Wt/examples/hangman/hangman.C is in witty-examples 3.1.10-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | /*
* Copyright (C) 2005 Wim Dumon
*
* See the LICENSE file for terms of use.
*/
#include <Wt/WApplication>
#include "HangmanGame.h"
WApplication *createApplication(const WEnvironment& env)
{
WApplication *app = new WApplication(env);
app->setTitle(L"Hangman");
new HangmanGame(app->root());
/*
* The application style sheet (only for the highscore widget)
*/
WCssDecorationStyle cellStyle;
WBorder cellBorder;
cellBorder.setStyle(WBorder::Solid);
cellBorder.setWidth(WBorder::Explicit, 1);
cellBorder.setColor(WColor(Wt::lightGray));
cellStyle.setBorder(cellBorder);
app->styleSheet().addRule(".highscores * TD", cellStyle);
cellStyle.font().setVariant(WFont::SmallCaps);
app->styleSheet().addRule(".highscoresheader", cellStyle);
cellStyle.font().setVariant(WFont::NormalVariant);
cellStyle.font().setStyle(WFont::Italic);
cellStyle.font().setWeight(WFont::Bold);
app->styleSheet().addRule(".highscoresself", cellStyle);
return app;
}
int main(int argc, char **argv)
{
return WRun(argc, argv, &createApplication);
}
|