home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / vopengl / gears / gearapp.h < prev    next >
C/C++ Source or Header  |  1998-06-22  |  1KB  |  50 lines

  1. //    gearapp.h:    Header for gearApp class
  2. //=======================================================================
  3.  
  4. #ifndef gearAPP_H
  5. #define gearAPP_H
  6.  
  7. // Include standard V files as needed
  8.  
  9. #ifdef vDEBUG
  10. #include <v/vdebug.h>
  11. #endif
  12.  
  13. #include <v/vapp.h>
  14. #include <v/vawinfo.h>
  15.  
  16. #include "gearcmdw.h"    // we use gearCommandWindow
  17.  
  18.     class gearApp : public vApp
  19.       {
  20.     friend int AppMain(int, char**);    // allow AppMain access
  21.  
  22.       public:        //---------------------------------------- public
  23.  
  24.     gearApp(char* name, int sdi = 0, int h = 0, int w = 0);
  25.     virtual ~gearApp();
  26.  
  27.     // Routines from vApp that are normally overridden
  28.  
  29.     virtual vWindow* NewAppWin(vWindow* win, char* name, int w, int h,
  30.         vAppWinInfo* winInfo);
  31.  
  32.     virtual void Exit(void);
  33.  
  34.     virtual int CloseAppWin(vWindow*);
  35.  
  36.     virtual void AppCommand(vWindow* win, ItemVal id, ItemVal val, CmdType cType);
  37.  
  38.     virtual void KeyIn(vWindow*, vKey, unsigned int);
  39.  
  40.     // New routines for this particular app
  41.  
  42.       protected:    //--------------------------------------- protected
  43.  
  44.       private:        //--------------------------------------- private
  45.  
  46.     gearCmdWindow* _gearCmdWin;        // Pointer to instance of first window
  47.  
  48.       };
  49. #endif
  50.