home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tv20cpp.zip / demos / gadgets.h < prev    next >
C/C++ Source or Header  |  1998-01-19  |  998b  |  58 lines

  1. /*---------------------------------------------------------*/
  2. /*                                                         */
  3. /*   Gadgets.h : Header file for gadgets.cpp               */
  4. /*                                                         */
  5. /*---------------------------------------------------------*/
  6. /*
  7.  *      Turbo Vision - Version 2.0
  8.  *
  9.  *      Copyright (c) 1994 by Borland International
  10.  *      All Rights Reserved.
  11.  *
  12.  */
  13.  
  14. #if !defined( __GADGETS_H )
  15. #define __GADGETS_H
  16.  
  17. #define Uses_TEvent
  18. #define Uses_TRect
  19. #define Uses_TView
  20. #include <tvision/tv.h>
  21.  
  22.  
  23. class THeapView : public TView
  24. {
  25.  
  26. public:
  27.  
  28.     THeapView( TRect& r );
  29.     virtual void update();
  30.     virtual void draw();
  31.     virtual long heapSize();
  32.  
  33. private:
  34.  
  35.     long oldMem, newMem;
  36.     char heapStr[16];
  37.  
  38. };
  39.  
  40.  
  41. class TClockView : public TView
  42. {
  43.  
  44. public:
  45.  
  46.     TClockView( TRect& r );
  47.     virtual void draw();
  48.     virtual void update();
  49.  
  50. private:
  51.  
  52.     char lastTime[9];
  53.     char curTime[9];
  54.  
  55. };
  56.  
  57. #endif      // __GADGETS_H
  58.