diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_simple_8h_source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_simple_8h_source.html Tue Mar 30 16:16:55 2010 +0100 @@ -0,0 +1,78 @@ + + + + +TB9.2 Example Applications: examples/Graphics/WS/Simple/Simple.h Source File + + + + + +

examples/Graphics/WS/Simple/Simple.h

00001 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+00002 // All rights reserved.
+00003 // This component and the accompanying materials are made available
+00004 // under the terms of "Eclipse Public License v1.0"
+00005 // which accompanies this distribution, and is available
+00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
+00007 //
+00008 // Initial Contributors:
+00009 // Nokia Corporation - initial contribution.
+00010 //
+00011 // Contributors:
+00012 //
+00013 // Description:
+00014 //
+00015 
+00016 
+00017 #if !defined(__WSWIN1_H__)
+00018 #define __WSWIN1_H__
+00019 
+00020 #include "Base.h"
+00021 
+00023 //                                              Derived window classes                                                  //
+00025 class CMainWindow : public CWindow
+00026         {
+00027 public:
+00028         CMainWindow (CWsClient* aClient);
+00029         ~CMainWindow ();
+00030         void Draw (const TRect& aRect);
+00031         void HandlePointerEvent (TPointerEvent& aPointerEvent);
+00032         };
+00033 
+00034 class CSmallWindow : public CWindow
+00035         {
+00036 public:
+00037         CSmallWindow (CWsClient* aClient);
+00038         ~CSmallWindow ();
+00039         void Draw (const TRect& aRect);
+00040         void HandlePointerEvent (TPointerEvent& aPointerEvent);
+00041         };
+00042 
+00043 
+00045 //                                              Derived client class                                                    //
+00047 
+00048 class CExampleWsClient : public CWsClient
+00049         {
+00050 public:
+00051         static CExampleWsClient* NewL(const TRect& aRect);
+00052         void HandleKeyEventL(struct TKeyEvent &aKeyEvent);
+00053 private:
+00054         // constructor
+00055         CExampleWsClient (const TRect& aRect);
+00056         void ConstructMainWindowL();
+00057         ~CExampleWsClient ();
+00058         void RunL ();
+00059 private:
+00060         CMainWindow* iMainWindow;       // main window
+00061         CMainWindow* iAnotherWindow;
+00062         CSmallWindow* iSmallWindow;
+00063         const TRect& iRect;
+00064         };
+00065 
+00066 #endif
+
+
Generated by  + +doxygen 1.6.2
+ +