Wt Namespace Reference

A namespace for Wt. More...


Classes

class  WAbstractToggleButton
 Abstract base class for Radio button and Check boxes. More...
class  WAnchor
 A WWidget that represents an HTML anchor. More...
class  WApplication
 A class that represents an instance of a Wt Application, corresponding to a single session. More...
class  WBorder
 Style class for a WWidget border. More...
class  WBreak
 WBreak provides a line break between inline widgets. More...
class  WButtonGroup
 Class for grouping radio buttons logically together. More...
class  WCalendar
 A calendar. More...
class  WCheckBox
 A user control that represents a check box. More...
class  WColor
 Style class for a color. More...
class  WComboBox
 Provides a drop-down combo-box control. More...
class  WCompositeWidget
 WCompositeWidget is the base class for composite widgets. More...
class  WContainerWidget
 A WWidget that may hold (and manage) children. More...
class  WCssDecorationStyle
 Style class that groups all decorative style aspects of a WWidget or a style sheet rule. More...
class  WCssStyleSheet
 A CSS style sheet. More...
class  InvalidDateException
 Exception thrown when an invalid WDate is constructed. More...
class  WDate
 A gregorian calendar date (year/month/day). More...
class  WDatePicker
 A date picker. More...
class  WDateValidator
 A validator for dates. More...
class  WDialog
 A WDialog emulates a modal window. More...
class  WDoubleValidator
 A WDoubleValidator is used to validate floating point user input. More...
class  WEnvironment
 The WEnvironment class captures information on the application environment. More...
class  WMouseEvent
 Mouse event details. More...
class  WKeyEvent
 Keyboard event details. More...
class  WDropEvent
 Drop event details. More...
class  WFileResource
 A Resource which streams data from a local file. More...
class  WFileUpload
 A widget that allows a file to be uploaded. More...
class  WFont
 Style class describing a font. More...
class  WFormWidget
 A WWidget that correspond to an HTML form element. More...
class  WGroupBox
 Group widgets into a frame with a title. More...
class  WIconPair
 A pair of icons, which show one at a time, and represents a binary state.. More...
class  WImage
 WImage shows an image. More...
class  WInPlaceEdit
 WInPlaceEdit provides an in-place-editable text. More...
class  WInteractWidget
 A WWidget that can receive user-interface interaction. More...
class  WIntValidator
 A validator that validates integer user input. More...
class  JSignal
 A signal to relay JavaScript to C++ calls. More...
class  JSlot
 JSlot implements a slot that is only implemented in client side JavaScript code. More...
class  WLabel
 WLabel acts as a label for a WFormWidget. More...
class  WLength
 Class specifying a length with a unit. More...
class  WLineEdit
 WLineEdit Provides a single line edit. More...
class  WMemoryResource
 A Resource which streams data from memory. More...
class  WMenu
 The Menu widget offers a menu of options, which correspond to several tabs in a WStackedWidget. More...
class  WMenuItem
 A WMenuItem represents one item in a WMenu. More...
class  WMessageBox
 WMessageBox provides simple dialog windows. More...
class  WMessageResourceBundle
 The message-resource-bundle of a WApplication manages its localazible messages. More...
class  WObject
 This class is the base class of all Wt objects and widgets. More...
class  WPushButton
 WPushButton represents a push button. More...
class  WRadioButton
 A user control that represents a radio button. More...
class  WRegExpValidator
 A WRegExpValidator is used to validate user input against a regular expression. More...
class  WResource
 An object which can be rendered in the HTTP protocol. More...
class  WScrollArea
 A Widget that adds scrolling capabilities to its content. More...
class  WScrollBar
 A scrollbar attached to a WScrollArea. More...
class  WSelectionBox
 A selection box provides the same functionality as combo box but presents the options in a list that is always visible. More...
class  Signal
 Signal/Slot signal. More...
class  EventSignal
 UI event Signal/Slot signal. More...
class  WSignalMapper
 Utility class to connect multiple senders to a single slot by associating additional information with each sender. More...
class  WStackedWidget
 A container widget that stacks its widgets on top of each other. More...
class  WString
 Wt unicode String class, with support for localization. More...
class  WSuggestionPopup
 A widget which popups to assist in editing a textarea or lineedit. More...
class  WTable
 WTable manages children in a table. More...
class  WTableCell
 A WContainerWidget that represents a Table cell. More...
class  WText
 A Widget that displays text. More...
class  WTextArea
 WTextArea provides a multi-line edit. More...
class  WTimer
 The WTimer class provides timer signals and single-shot timers. More...
class  WTreeNode
 A single node in a tree list. More...
class  WTreeTable
 A table, with a tree list in the first column. More...
class  WTreeTableNode
 WTreeTableNode is a specialization of WTreeNode which allows additional data to be associated with each node. More...
class  WValidationStatus
 A widget that keeps track of the validation of a WFormWidget. More...
class  WValidator
 A WValidator is used to validate user input according to pre-defined rules. More...
class  WViewWidget
 WViewWidget is the abstract base class for an MVC pattern where the View is rendered using a WWidget. More...
class  WStaticModelView
 WStaticModelView implements a view for a non-changing model. More...
class  WVirtualImage
 WVirtualImage is an abstract class intended to show a viewport to a virtually large or even infinite image. More...
class  WWebWidget
 WWebWidget is the base class for widgets directly provided by HTML. More...
class  WWidget
 A WWidget is the abstract base class for any Wt widget. More...

Typedefs

typedef WString WMessage
 Deprecated Alias to WString for the depreacated WMessage classes.

Functions

int WTCONNECTOR_API WRun (int argc, char **argv, Wt::WApplication::ApplicationCreator createApplication)
 Entry point for a Wt application.
WT_API WString operator+ (const WString &lhs, const WString &rhs)
 Concatenate two WStrings.
WT_API WString operator+ (const WString &lhs, const std::wstring rhs)
 Conatenate a WString with a C++ wide string.
WT_API WString operator+ (const WString &lhs, const wchar_t *rhs)
 Conatenate a WString with a C wide string.
WT_API WString operator+ (const WString &lhs, const std::string rhs)
 Conatenate a WStrin with a C++ string.
WT_API WString operator+ (const WString &lhs, const char *rhs)
 Conatenate a WString with a C string.
WT_API WString operator+ (const std::wstring lhs, const WString &rhs)
 Conatenate a C++ wide string with a WString.
WT_API WString operator+ (const wchar_t *lhs, const WString &rhs)
 Conatenate a C wide string with a WString.
WT_API WString operator+ (const std::string lhs, const WString &rhs)
 Conatenate a C++ string with a WString.
WT_API WString operator+ (const char *lhs, const WString &rhs)
 Conatenate a C string with a WString.
WT_API bool operator== (const char *lhs, const WString &rhs)
 Compare a C string with a WString.
WT_API bool operator== (const wchar_t *lhs, const WString &rhs)
 Compare a C wide string with a WString.
WT_API bool operator== (const std::string lhs, const WString &rhs)
 Compare a C++ string with a WString.
WT_API bool operator== (const std::wstring lhs, const WString &rhs)
 Compare a C++ wide string with a WString.
WT_API bool operator!= (const char *lhs, const WString &rhs)
 Compare a C string with a WString.
WT_API bool operator!= (const wchar_t *lhs, const WString &rhs)
 Compare a C wide string with a WString.
WT_API bool operator!= (const std::string lhs, const WString &rhs)
 Compare a C++ string with a WString.
WT_API bool operator!= (const std::wstring lhs, const WString &rhs)
 Compare a C++ wide string with a WString.
WT_API std::wostream & operator<< (std::wostream &lhs, const WString &rhs)
 Output a WString to a C++ wide stream.
WT_API std::ostream & operator<< (std::ostream &lhs, const WString &rhs)
 Output a WString to a C++ stream.
WT_API std::wstring widen (const std::string &s)
 Convert a narrow to a wide string.
WT_API std::string narrow (const std::wstring &s)
 Convert a wide to a narrow string.
WT_API std::wstring fromUTF8 (const std::string &s)
 Decode a UTF8 string a wide string.
WT_API std::string toUTF8 (const std::wstring &s)
 Encode a wide string to UTF8.
template<typename ViewRenderer>
WStaticModelView< ViewRenderer > * makeStaticModel (ViewRenderer f, WContainerWidget *parent=0)
 Wrap a widget into a view with a non-changing model.

Variables

WT_API const WColor white
 Color white.
WT_API const WColor black
 Color black.
WT_API const WColor red
 Color red.
WT_API const WColor darkRed
 Color dark red.
WT_API const WColor green
 Color green.
WT_API const WColor darkGreen
 Color dark green.
WT_API const WColor blue
 Color blue.
WT_API const WColor darkBlue
 Color dark blue.
WT_API const WColor cyan
 Color cyan.
WT_API const WColor darkCyan
 Color dark cyan.
WT_API const WColor magenta
 Color magenta.
WT_API const WColor darkMagenta
 Color dark magenta.
WT_API const WColor yellow
 Color yellow.
WT_API const WColor darkYellow
 Color dark yellow.
WT_API const WColor gray
 Color medium gray.
WT_API const WColor darkGray
 Color dark gray.
WT_API const WColor lightGray
 Color light gray.
WT_API const WColor transparent
 Color transparent.
const WColor white ("white")
 Color white.
const WColor black ("black")
 Color black.
const WColor red ("red")
 Color red.
const WColor darkRed ("maroon")
 Color dark red.
const WColor green ("lime")
 Color green.
const WColor darkGreen ("green")
 Color dark green.
const WColor blue ("blue")
 Color blue.
const WColor darkBlue ("navy")
 Color dark blue.
const WColor cyan ("aqua")
 Color cyan.
const WColor darkCyan ("teal")
 Color dark cyan.
const WColor magenta ("fuchsia")
 Color magenta.
const WColor darkMagenta ("purple")
 Color dark magenta.
const WColor yellow ("yellow")
 Color yellow.
const WColor darkYellow ("olive")
 Color dark yellow.
const WColor gray (0xa0, 0xa0, 0xa4)
 Color medium gray.
const WColor darkGray ("gray")
 Color dark gray.
const WColor lightGray ("silver")
 Color light gray.
const WColor transparent ("transparent")
 Color transparent.


Detailed Description

A namespace for Wt.

Typedef Documentation

typedef WString Wt::WMessage

Deprecated Alias to WString for the depreacated WMessage classes.

WString provides all the functionality of WMessage, but is used more consistently through the interface everywhere wide character support is needed, instead of previously std::wstring.


Function Documentation

int WTCONNECTOR_API Wt::WRun ( int  argc,
char **  argv,
Wt::WApplication::ApplicationCreator  createApplication 
)

Entry point for a Wt application.

This function must be called in the main of your application. The createApplication parameter is a function pointer that creates a Wt application.

std::wstring Wt::widen ( const std::string &  s  ) 

Convert a narrow to a wide string.

Convert a narrow string to a wide string. This method will not perform any code conversion, it simply represents the same string with a same number of wide characters.

See also:
narrow(const std::wstring&), fromUTF8(const std::string& s)

std::string Wt::narrow ( const std::wstring &  s  ) 

Convert a wide to a narrow string.

Convert a wide string to a narrow string. This method will not perform any code conversion, it simply represents (as far as possible) the same string with a same number of narrow characters.

In general this will lead to a loss of information. If you wish to preserve all information, you should us toUTF8() instead.

See also:
widen(const std::string&), toUTF8(const std::wstring& s)

std::wstring Wt::fromUTF8 ( const std::string &  s  ) 

Decode a UTF8 string a wide string.

Decode a UTF8 string to a wide string. In a UTF8 encoded unicode string, some unicode characters are represented in more than one byte. This method will decode to extract the proper unicode characters from the string. The resulting string may thus be shorter (has less characters) than the original, but does not lead to a loss of information.

See also:
toUTF8(const std::string& s), narrow(const std::wstring&)

std::string Wt::toUTF8 ( const std::wstring &  s  ) 

Encode a wide string to UTF8.

Convert a wide string to UTF8. This method will encode the given wide string in UTF8. This may result in a string that is possibly longer (has more characters), but does not lead to a loss of information.

See also:
fromUTF8(const std::string& s), narrow(const std::wstring&)

template<typename ViewRenderer>
WStaticModelView<ViewRenderer>* Wt::makeStaticModel ( ViewRenderer  f,
WContainerWidget *  parent = 0 
)

Wrap a widget into a view with a non-changing model.

The ViewRenderer is called without arguments and must return a newly created widget (WWidget *).

See also:
WStaticModelView


Generated on Sun Jul 1 19:37:18 2007 for Wt by doxygen 1.4.7