home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / gnu / aplusplus-1.01-src.lha / src / amiga / aplusplus-1.01 / include / aplusplus / intuition / IntuiRoot.h < prev    next >
C/C++ Source or Header  |  1994-05-04  |  1KB  |  40 lines

  1. #ifndef APP_IntuiRoot_H
  2. #define APP_IntuiRoot_H
  3. /******************************************************************************
  4.  **
  5.  **    C++ Class Library for the Amiga© system software.
  6.  **
  7.  **    Copyright (C) 1994 by Armin Vogt  **  EMail: armin@uni-paderborn.de
  8.  **    All Rights Reserved.
  9.  **
  10.  **    $VER: apphome:APlusPlus/intuition/IntuiRoot.h 1.04 (04.05.94) $
  11.  **    
  12.  ******************************************************************************/
  13.  
  14. #include <APlusPlus/intuition/ScreenC.h>
  15. #include <APlusPlus/intuition/IntuiObject.h>
  16.  
  17.  
  18. void APPmain();
  19.  
  20. class IntuiRoot : public ScreenC
  21. {
  22.    friend IntuiObject;
  23.  
  24.    private:
  25.       UWORD iob_count;  // number of currently existing IntuiObjects
  26.         static IntuiRoot *APPIntuiRoot;
  27.         
  28.       IntuiRoot();
  29.       ~IntuiRoot();
  30.  
  31.    public:
  32.       static BOOL APPinitialise(int argc, char *argv[]);    // returns FALSE on failure
  33.       static void APPexit();
  34.       UWORD getIOBCount() { return iob_count; }
  35.         static ScreenC *getRootScreen() { return (ScreenC*)APPIntuiRoot; }
  36. };
  37.  
  38.  
  39. #endif
  40.