About the Window server example code

These examples show how to use the Window Server Client-Side API. Note that these examples create windows directly rather than going through the UI Control Framework, as standard applications would do.

The source files for the examples can be found under: examples\Graphics\WS\. The following files are common to several of them:

  • AppHolder.cpp provides the standard GUI application framework classes. The only command handling provided is a menu with a Close command.

  • Base.cpp provides base classes that use the window server. CWsClient handles the connection to the window server: it is an active object that issues a request for window server events, and handles them in its RunL(). CWindow encapsulates a basic window.

  • project-name .cpp provides most of the code specific to a particular example. Typically, they sub-class CWsClient and CWindow.