/home/koen/project/wt/public-git/wt/examples/hangman/hangman.C File Reference

#include <Wt/WApplication>
#include "HangmanGame.h"

Go to the source code of this file.

Functions

WApplicationcreateApplication (const WEnvironment &env)
int main (int argc, char **argv)


Function Documentation

WApplication* createApplication ( const WEnvironment env  ) 

Definition at line 9 of file hangman.C.

00010 {
00011   WApplication *app = new WApplication(env);
00012   app->setTitle(L"Hangman");
00013   new HangmanGame(app->root());  
00014 
00015   /*
00016    * The application style sheet (only for the highscore widget)
00017    */
00018   WCssDecorationStyle cellStyle;
00019   WBorder cellBorder;
00020   cellBorder.setStyle(WBorder::Solid);
00021   cellBorder.setWidth(WBorder::Explicit, 1);
00022   cellBorder.setColor(WColor(Wt::lightGray));
00023   cellStyle.setBorder(cellBorder);
00024 
00025   app->styleSheet().addRule(".highscores * TD", cellStyle);
00026 
00027   cellStyle.font().setVariant(WFont::SmallCaps);
00028 
00029   app->styleSheet().addRule(".highscoresheader", cellStyle);
00030 
00031   cellStyle.font().setVariant(WFont::NormalVariant);
00032   cellStyle.font().setStyle(WFont::Italic);
00033   cellStyle.font().setWeight(WFont::Bold);
00034 
00035   app->styleSheet().addRule(".highscoresself", cellStyle);
00036 
00037   return app;
00038 }

int main ( int  argc,
char **  argv 
)

Definition at line 40 of file hangman.C.

00041 {
00042    return WRun(argc, argv, &createApplication);
00043 }


Generated on Mon Mar 9 08:28:56 2009 for Wt by doxygen 1.5.6